]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: Intel: bytcr_wm5102: Add BYT_WM5102_IN_MAP quirk
authorHans de Goede <hdegoede@redhat.com>
Wed, 25 Oct 2023 14:35:13 +0000 (16:35 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 25 Oct 2023 16:21:14 +0000 (17:21 +0100)
commit8619fd0e9026c10841e162ec403f4223fe1f3846
tree0ada3cd9db2f026905e9a83d75fa589019be503d
parentc556d202bef1b74dbfa0369bf221ccd83dfa7a59
ASoC: Intel: bytcr_wm5102: Add BYT_WM5102_IN_MAP quirk

Unlike all designs supported sofar the Lenovo Yoga Tab 3 YT3-X90 does not
have its internal microphone (intmic) on IN3L with the headset microphone
on IN1L. Instead this tablet has the intmic on IN1L and the hsmic on IN2L.

Add a BYT_WM5102_IN_MAP quirk mechanism to allow selecting between
different input maps and add support for both setups with the current
settings being the default map.

The new INTMIC_IN1L_HSMIC_IN2L map is enabled by default on CHT because
the Lenovo Yoga Tab 3 YT3-X90 model is the only Cherry Trail design
currently supported. If different CHT designs turn up which need different
input maps we can add DMI quirks to select a different map later.

The userspace UCM profile also needs to know about this so
extend the components string with this info too.

Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20231025143513.291753-5-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_wm5102.c