diff mbox

[2/4] ASoC: rt298: Add DMI match for Geminilake reference platform

Message ID 1486638844-17975-3-git-send-email-subhransu.s.prusty@intel.com (mailing list archive)
State Accepted
Commit 06a99ddd2049e2697de32a9435c4d5c5b5c78360
Headers show

Commit Message

Subhransu S. Prusty Feb. 9, 2017, 11:14 a.m. UTC
From: Vinod Koul <vinod.koul@intel.com>

Geminilake reference platform also uses combo jack for audio connector
so we need to set codec pdata to use this based on DMI match for this
board.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
---
 sound/soc/codecs/rt298.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox

Patch

diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c
index 7150a407ffd9..d9e96e65e1c4 100644
--- a/sound/soc/codecs/rt298.c
+++ b/sound/soc/codecs/rt298.c
@@ -1163,6 +1163,13 @@  static int rt298_resume(struct snd_soc_codec *codec)
 			DMI_MATCH(DMI_PRODUCT_NAME, "Broxton P")
 		}
 	},
+	{
+		.ident = "Intel Gemini Lake",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corp"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Geminilake")
+		}
+	},
 	{ }
 };