ASoC: mediatek: mt8186: Unify mt8186-mt6366 machine drivers
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 16 Apr 2024 07:14:05 +0000 (09:14 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 16 Apr 2024 11:00:04 +0000 (20:00 +0900)
commit6ed619b348bf0a490e70dea7a330cf44dc81c16d
tree50559ef044e34e146fe0f308c32914b8479374ce
parent1d2a6b3b5189b6c3e51f29e050aa9b2337b774e8
ASoC: mediatek: mt8186: Unify mt8186-mt6366 machine drivers

Copy the few differences from mt8186-mt6166-da7219-max98357 in the
mt8186-mt6366-rt1019-rt5682s driver to greatly reduce code duplication;
since now the driver is meant to support MT8186 with the MT6366 PMIC
codec and various combinations of I2S codecs, rename the driver to
mt8186-mt6366 for consistency with MT8195 and MT8188, and rename
the configuration option to SND_SOC_MT8186_MT6366.

Since right now there is no machine using the da7219-max98357 yet, the
snd_soc_dapm_route array was omitted as it's now possible to specify
the audio routing in device trees instead.

While at it, also add the missing sentinel comment to the last entry
of the of_device_id array.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240416071410.75620-14-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/Kconfig
sound/soc/mediatek/mt8186/Makefile
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c [deleted file]
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c [deleted file]
sound/soc/mediatek/mt8186/mt8186-mt6366.c [new file with mode: 0644]