]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcr_rt5651: Add BYT_RT5651_HP_LR_SWAPPED quirk
authorHans de Goede <hdegoede@redhat.com>
Sun, 24 Jun 2018 14:06:33 +0000 (16:06 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jun 2018 11:11:29 +0000 (12:11 +0100)
commit678af4ac97e8d2c162468b2844de1df571d11564
treea64e4209d7673e0840b927683c4d49001d573ec0
parentcc705446bb2882af58a96d9a2a8d576db0fad87b
ASoC: Intel: bytcr_rt5651: Add BYT_RT5651_HP_LR_SWAPPED quirk

One some models (Chuwi Vi8 Plus, Chuwi Hi8 Pro) the headphone output has
left and right swapped. This can be fixed in with special mixer settings
in the UCM profile, bit this requires these devices loading a different
UCM profile.

This commit adds a BYT_RT5651_HP_LR_SWAPPED quirk for this and postfixes
the longname with "-hp-swapped" if set, so that a different UCM profile
will be loaded.

We can safely do this without causing regressions (UCM profile not found
due to the longname change) as the UCM profiles are not in upstream
alsa-lib yet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5651.c