[d-kernel] [PATCH 1/6] ASoC: Intel: sof_es8336: add more DMI info for pa-enable lookup quirk for CNL-LP models

nickel на altlinux.org nickel на altlinux.org
Вт Авг 2 20:21:35 MSK 2022


From: Nikolai Kostrigin <nickel at altlinux.org>

Add ICL Si1516 (closes: #42621);
Add HIPER TeachBook HTHLP-04R.

Signed-off-by: Nikolai Kostrigin <nickel at altlinux.org>
Co-developed-by: Vasiliy Kovalev <kovalev at altlinux.org>
Signed-off-by: Vasiliy Kovalev <kovalev at altlinux.org>
---
 sound/soc/intel/boards/sof_es8336.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
index 373b8e7f72323..0eb8ab0081463 100644
--- a/sound/soc/intel/boards/sof_es8336.c
+++ b/sound/soc/intel/boards/sof_es8336.c
@@ -270,6 +270,16 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = {
 		.driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
 					SOF_ES8336_TGL_GPIO_QUIRK)
 	},
+	{
+		.callback = sof_es8336_quirk_cb,
+		.ident = "pa-enable ACPI deviant",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ICL"),
+			DMI_MATCH(DMI_BOARD_NAME, "Si16"),
+		},
+		.driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
+					SOF_ES8336_TGL_GPIO_QUIRK)
+	},
 	{
 		.callback = sof_es8336_quirk_cb,
 		.matches = {
@@ -280,6 +290,17 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = {
 					SOF_ES8336_TGL_GPIO_QUIRK |
 					SOF_ES8336_ENABLE_DMIC)
 	},
+	{
+		.callback = sof_es8336_quirk_cb,
+		.ident = "pa-enable ACPI deviant",
+		.matches = {
+			/* market name: HIPER TeachBook HTHLP-04R */
+			DMI_MATCH(DMI_SYS_VENDOR, "mtech"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "MTL1578"),
+		},
+		.driver_data = (void *)(SOF_ES8336_SSP_CODEC(0) |
+					SOF_ES8336_TGL_GPIO_QUIRK)
+	},
 	{}
 };
 
-- 
2.33.3



Подробная информация о списке рассылки devel-kernel