]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
cht-bsw-rt5672: Add Lenovo Miix 2 10 specific configuration
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Jun 2020 17:44:18 +0000 (19:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 28 Jun 2020 20:02:17 +0000 (22:02 +0200)
By default the cht-bsw-rt5672 config lets the user figure out if a device
has a Mono spaker or Stereo speakers and which DMIC input is used.

Since this is not very user-friendly we do regex matches on the DMI derived
longname to automaticaly select the right options (and to only advertise
those options).

This commit adds support for automatically selecting the right options
on the Lenovo Miix 2 10 tablet. Since this is the first device for which
we do longname matching using a DMIC on DMIC1, this also fixes a fixme :)

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/cht-bsw-rt5672/HiFi.conf

index dc8ddd5ed45ff4ab47a6887c8cb352ce9e47d0b0..94de7dbb1504cb9d8e02b0a15d74daf8de85b967 100644 (file)
@@ -11,7 +11,7 @@ If.cfg-dmic1 {
        Condition {
                Type RegexMatch
                String "${CardLongName}"
-               Regex "(SoMeThInK1)" # fixme!
+               Regex "(LENOVO.*LenovoMiix210)"
        }
        True {
                Define.MonoSpeaker ""