Skip to content

Commit d6755a5

Browse files
jwrdegoedebroonie
authored andcommitted
ASoC: rt5645: Add DMI quirk for inverted jack-detect on MeeGoPad T8
The MeeGoPad T8 uses the standard rt5645 jd_mode=3 setting for jack-detect, but the used jack connector outputs an inverted jack-detect signal. Add a DMI quirk for this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://msgid.link/r/20240211212736.179605-2-hdegoede@redhat.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 551539a commit d6755a5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

sound/soc/codecs/rt5645.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3693,6 +3693,11 @@ static const struct rt5645_platform_data jd_mode3_monospk_platform_data = {
36933693
.mono_speaker = true,
36943694
};
36953695

3696+
static const struct rt5645_platform_data jd_mode3_inv_data = {
3697+
.jd_mode = 3,
3698+
.inv_jd1_1 = true,
3699+
};
3700+
36963701
static const struct rt5645_platform_data jd_mode3_platform_data = {
36973702
.jd_mode = 3,
36983703
};
@@ -3882,6 +3887,16 @@ static const struct dmi_system_id dmi_platform_data[] = {
38823887
},
38833888
.driver_data = (void *)&intel_braswell_platform_data,
38843889
},
3890+
{
3891+
.ident = "Meegopad T08",
3892+
.matches = {
3893+
DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
3894+
DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
3895+
DMI_MATCH(DMI_BOARD_NAME, "T3 MRD"),
3896+
DMI_MATCH(DMI_BOARD_VERSION, "V1.1"),
3897+
},
3898+
.driver_data = (void *)&jd_mode3_inv_data,
3899+
},
38853900
{ }
38863901
};
38873902

0 commit comments

Comments
 (0)