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

Some x86 WM5102 designs don't use the SPK pins for speaker output
instead they use the HPOUT2L + HPOUT2R for the speakers.

Add an BYT_WM5102_OUT_MAP quirk mechanism to allow selecting
between 2 output maps, one for the speakers on the SPK output pins
and one for the speakers on the HPOUT2 pins.

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

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

While at it also drop the unused "Line Out" route.

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-4-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_wm5102.c