]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ALSA: hda: intel-dsp-config: add JasperLake support
authorBrent Lu <brent.lu@intel.com>
Thu, 13 Jan 2022 10:52:19 +0000 (18:52 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Jan 2022 12:20:54 +0000 (13:20 +0100)
Add rules to select SOF driver for Jasper Lake systems if digital
microphone is present or the system is a Chromebook.

Signed-off-by: Brent Lu <brent.lu@intel.com>
Link: https://lore.kernel.org/r/20220113105220.1114694-2-brent.lu@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/intel-dsp-config.c

index c26229ed642fdf1d05be494e6c2b82c6d11fe3f5..3a3026fa4a17393c8a0e969c3029c30287c450b5 100644 (file)
@@ -309,13 +309,30 @@ static const struct config_entry config_table[] = {
        },
 #endif
 
-/* JasperLake */
+/* Jasper Lake */
 #if IS_ENABLED(CONFIG_SND_SOC_SOF_JASPERLAKE)
+       {
+               .flags = FLAG_SOF,
+               .device = 0x4dc8,
+               .dmi_table = (const struct dmi_system_id []) {
+                       {
+                               .ident = "Google Chromebooks",
+                               .matches = {
+                                       DMI_MATCH(DMI_SYS_VENDOR, "Google"),
+                               }
+                       },
+                       {}
+               }
+       },
        {
                .flags = FLAG_SOF,
                .device = 0x4dc8,
                .codec_hid = "ESSX8336",
        },
+       {
+               .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC,
+               .device = 0x4dc8,
+       },
 #endif
 
 /* Tigerlake */