]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commit8f250e7009d71e6f3f3aeb95a540c36fc9c03398
treea64e4209d7673e0840b927683c4d49001d573ec0
parent8e69cd640097fa7af53fb476dbd3597608f32b10
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