Skip to content

Commit c26d838

Browse files
plbossartbroonie
authored andcommitted
ASoC: codecs: rt5670: add jack detection quirk for Dell Venue 5585
Jack is not detected by default, using jdmode=3 works fine Signed-off-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent ea746a2 commit c26d838

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sound/soc/codecs/rt5670.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,6 +2851,17 @@ static const struct dmi_system_id dmi_platform_intel_bytcht_jdmode2[] = {
28512851
{}
28522852
};
28532853

2854+
static const struct dmi_system_id dmi_platform_intel_bytcht_jdmode3[] = {
2855+
{
2856+
.ident = "Dell Venue 8 Pro 5855",
2857+
.matches = {
2858+
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
2859+
DMI_MATCH(DMI_PRODUCT_NAME, "Venue 8 Pro 5855"),
2860+
},
2861+
},
2862+
{}
2863+
};
2864+
28542865
static int rt5670_i2c_probe(struct i2c_client *i2c,
28552866
const struct i2c_device_id *id)
28562867
{
@@ -2880,6 +2891,11 @@ static int rt5670_i2c_probe(struct i2c_client *i2c,
28802891
rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_IN2P;
28812892
rt5670->pdata.dev_gpio = true;
28822893
rt5670->pdata.jd_mode = 2;
2894+
} else if (dmi_check_system(dmi_platform_intel_bytcht_jdmode3)) {
2895+
rt5670->pdata.dmic_en = true;
2896+
rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_IN2P;
2897+
rt5670->pdata.dev_gpio = true;
2898+
rt5670->pdata.jd_mode = 3;
28832899
}
28842900

28852901
rt5670->regmap = devm_regmap_init_i2c(i2c, &rt5670_regmap);

0 commit comments

Comments
 (0)