OSDN Git Service

ASoC: mediatek: mt8192: support rt1015p_rt5682s
authorJiaxin Yu <jiaxin.yu@mediatek.com>
Fri, 8 Apr 2022 06:05:52 +0000 (14:05 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 8 Apr 2022 11:09:51 +0000 (12:09 +0100)
commit6181ab31824f7b5f2ac3ee33aed583b8bb7513f0
tree94c9e43b04b6fe00f7d80c62e0b9da8477fbf282
parentf8910fb4985a00c0a1e6932dc5bda6181c549b76
ASoC: mediatek: mt8192: support rt1015p_rt5682s

Add support for using the rt5682s codec together with rt1015p on
mt8192-mt6359 machines. All configurations are shared with the rt5682
codec variant, so simply select the SND_SOC_RT5682S config to ensure the
codec is present and set the correct card name. The codec will be linked
to by pointing to it in the headset-codec property in the devicetree.

While at it, also create macros for the names of the different codec
variants supported by this driver, as well as rename occurrences of
rt1015p_rt5682 to rt1015p_rt5682x, since they are shared between rt5682
and rt5682s.

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-5-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/Kconfig
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c