]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: Intel: bytcr_rt5640: Add new swapped-speakers quirk
authorHans de Goede <hdegoede@redhat.com>
Sun, 17 Dec 2023 21:32:21 +0000 (22:32 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 18 Dec 2023 14:03:20 +0000 (14:03 +0000)
commitb1b6131bca35a55a69fadc39d51577968fa2ee97
tree2159b5ec632b312c395df9bc3d57f08c8e497db1
parent99c7bb44f5749373bc01b73af02b50b69bcbf43d
ASoC: Intel: bytcr_rt5640: Add new swapped-speakers quirk

Some BYTCR x86 tablets with a rt5640 codec have the left and right channels
of their speakers swapped.

Add a new BYT_RT5640_SWAPPED_SPEAKERS quirk for this which sets
cfg-spk:swapped in the components string to let userspace know
about the swapping so that the UCM profile can configure the mixer
to correct this.

Enable this new quirk on the Medion Lifetab S10346 which has its
speakers swapped.

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