]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mt8192: refactor for I2S3 DAI link of speaker
authorJiaxin Yu <jiaxin.yu@mediatek.com>
Fri, 8 Apr 2022 06:05:50 +0000 (14:05 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 8 Apr 2022 11:09:49 +0000 (12:09 +0100)
commit151f372ab4baa455f3c1c6a2edf3ff4e8159c603
treeb97bcfcb1f43ec1803ef07c8f0906fe5ce54a71f
parent532d4f434416ea8559955d2650a616f807a72071
ASoC: mediatek: mt8192: refactor for I2S3 DAI link of speaker

As part of the refactoring to allow the same machine driver to be used for
the rt1015(p) and rt5682(s) codecs on the MT8192 platform, parse the
rt1015(p) codecs from the speaker-codecs property in the devicetree and
wire them to the I2S3 backend, instead of hardcoding the links and
selecting through the compatible.

Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220408060552.26607-3-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c