Skip to content

Commit c7cb471

Browse files
mchehabbroonie
authored andcommitted
ASoC: Intel: sof_es8336: Add a quirk for Huawei Matebook D15
Based on experimental tests, Huawei Matebook D15 actually uses both gpio0 and gpio1: the first one controls the speaker, while the other one controls the headphone. Also, the headset is mapped as MIC1, instead of MIC2. So, add a quirk for it. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/d678aef9fc9a07aced611aa7cb8c9b800c649e5a.1649357263.git.mchehab@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7c7bb2a commit c7cb471

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

sound/soc/intel/boards/sof_es8336.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,15 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = {
304304
},
305305
.driver_data = (void *)(SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK)
306306
},
307+
{
308+
.callback = sof_es8336_quirk_cb,
309+
.matches = {
310+
DMI_MATCH(DMI_SYS_VENDOR, "HUAWEI"),
311+
DMI_MATCH(DMI_BOARD_NAME, "BOHB-WAX9-PCB-B2"),
312+
},
313+
.driver_data = (void *)(SOF_ES8336_HEADPHONE_GPIO |
314+
SOC_ES8336_HEADSET_MIC1)
315+
},
307316
{}
308317
};
309318

0 commit comments

Comments
 (0)