alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/3] ASoC: rt5670: Add quirk for Thinkpad 8 tablet
@ 2018-08-21 11:43 Hans de Goede
  2018-08-21 11:43 ` [PATCH v2 2/3] ASoC: Intel: common: " Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Hans de Goede @ 2018-08-21 11:43 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Bard Liao, Oder Chiou
  Cc: Hans de Goede, alsa-devel, Pierre-Louis Bossart

The Thinkpad 8 needs a quirk for jack-detect and the internal mic to
work correctly.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 sound/soc/codecs/rt5670.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 732ef928b25d..455fe7cff700 100644
--- a/sound/soc/codecs/rt5670.c
+++ b/sound/soc/codecs/rt5670.c
@@ -2875,6 +2875,18 @@ static const struct dmi_system_id dmi_platform_intel_quirks[] = {
 						 RT5670_DEV_GPIO |
 						 RT5670_JD_MODE1),
 	},
+	{
+		.callback = rt5670_quirk_cb,
+		.ident = "Lenovo Thinkpad Tablet 8",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad 8"),
+		},
+		.driver_data = (unsigned long *)(RT5670_DMIC_EN |
+						 RT5670_DMIC2_INR |
+						 RT5670_DEV_GPIO |
+						 RT5670_JD_MODE1),
+	},
 	{
 		.callback = rt5670_quirk_cb,
 		.ident = "Lenovo Thinkpad Tablet 10",
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-28 20:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-21 11:43 [PATCH v2 1/3] ASoC: rt5670: Add quirk for Thinkpad 8 tablet Hans de Goede
2018-08-21 11:43 ` [PATCH v2 2/3] ASoC: Intel: common: " Hans de Goede
2018-08-28 20:29   ` Applied "ASoC: Intel: common: Add quirk for Thinkpad 8 tablet" to the asoc tree Mark Brown
2018-08-21 11:43 ` [PATCH v2 3/3] ASoC: Intel: cht-bsw-rt5672: Add key-mappings for the headset buttons Hans de Goede
2018-08-28 20:29   ` Applied "ASoC: Intel: cht-bsw-rt5672: Add key-mappings for the headset buttons" to the asoc tree Mark Brown
2018-08-28 20:29 ` Applied "ASoC: rt5670: Add quirk for Thinkpad 8 tablet" " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).