]> asedeno.scripts.mit.edu Git - linux.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)
commit64484ccee7af53f08cca2ee3853cb8e18914d8b2
treea2c325b74fa8765bb154af3b833c009986f0fe6a
parent983333c0f6c4c6b4dab1257d14d16c31912d7561
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