]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcr_rt5651: Set card long_name based on quirks
authorHans de Goede <hdegoede@redhat.com>
Fri, 18 May 2018 19:35:06 +0000 (21:35 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 31 May 2018 10:28:57 +0000 (11:28 +0100)
commit72771aad640bbc55cca6bdff835832927c71d2fe
treea2c325b74fa8765bb154af3b833c009986f0fe6a
parent80e481d363e5d495c79090d1ee6dea47ed3a8bf1
ASoC: Intel: bytcr_rt5651: Set card long_name based on quirks

Many X86 devices using a BYT SoC + RT5651 codec are cheap devices with
generic DMI strings, causing snd_soc_set_dmi_name() to fail to set a
long_name, making it impossible for userspace to have a correct UCM
profile which knowns which input is connected to the internal mic,
which input is connected to the hsmic (for correct jack-based switching)
and which inputs are unused.

Our quirks already specify which inputs the internal and headset mic
are connected to.

This commit sets a long_name based on the quirks so that userspace can
have UCM profiles doing the right thing based on the long_name.

Note that if we ever encounter the need for a special UCM profile for
some device we can add a quirk to set a specific long_name for the
device,

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5651.c