Skip to content

Commit a1dec9d

Browse files
jwrdegoedebroonie
authored andcommitted
ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech MICA-071 tablet
The Advantech MICA-071 tablet deviates from the defaults for a non CR Bay Trail based tablet in several ways: 1. It uses an analog MIC on IN3 rather then using DMIC1 2. It only has 1 speaker 3. It needs the OVCD current threshold to be set to 1500uA instead of the default 2000uA to reliable differentiate between headphones vs headsets Add a quirk with these settings for this tablet. Signed-off-by: Hans de Goede <[email protected]> Acked-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7374023 commit a1dec9d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

sound/soc/intel/boards/bytcr_rt5640.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,21 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
570570
BYT_RT5640_SSP0_AIF1 |
571571
BYT_RT5640_MCLK_EN),
572572
},
573+
{
574+
/* Advantech MICA-071 */
575+
.matches = {
576+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Advantech"),
577+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MICA-071"),
578+
},
579+
/* OVCD Th = 1500uA to reliable detect head-phones vs -set */
580+
.driver_data = (void *)(BYT_RT5640_IN3_MAP |
581+
BYT_RT5640_JD_SRC_JD2_IN4N |
582+
BYT_RT5640_OVCD_TH_1500UA |
583+
BYT_RT5640_OVCD_SF_0P75 |
584+
BYT_RT5640_MONO_SPEAKER |
585+
BYT_RT5640_DIFF_MIC |
586+
BYT_RT5640_MCLK_EN),
587+
},
573588
{
574589
.matches = {
575590
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ARCHOS"),

0 commit comments

Comments
 (0)