diff mbox series

[SRU,OEM-5.10,5/6] UBUNTU: SAUCE: ASoC: Intel: sof_sdw: set proper flags for Dell TGL-H SKU 0A5E

Message ID 20210115020421.6534-6-hui.wang@canonical.com
State New
Headers show
Series alsa/sdw: support soundwire audio for TGL-H machines | expand

Commit Message

Hui Wang Jan. 15, 2021, 2:04 a.m. UTC
From: Libin Yang <libin.yang@intel.com>

BugLink: https://bugs.launchpad.net/bugs/1911830

Add flag "SOF_RT711_JD_SRC_JD2" and flag "SOF_RT715_DAI_ID_FIX"
to the Dell TGL-H based SKU "0A5E".

Signed-off-by: Libin Yang <libin.yang@intel.com>
(cherry picked from commit a0cbd7bf112eccbc81c2d94261607e5f4f678378
git://github.com/thesofproject/linux.git topic/sof-dev)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
 sound/soc/intel/boards/sof_sdw.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index b29946eb4355..d0064b15d0e1 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -57,6 +57,15 @@  static const struct dmi_system_id sof_sdw_quirk_table[] = {
 		.driver_data = (void *)(SOF_RT711_JD_SRC_JD2 |
 					SOF_RT715_DAI_ID_FIX),
 	},
+	{
+		.callback = sof_sdw_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "0A5E")
+		},
+		.driver_data = (void *)(SOF_RT711_JD_SRC_JD2 |
+					SOF_RT715_DAI_ID_FIX),
+	},
 	{
 		.callback = sof_sdw_quirk_cb,
 		.matches = {