| From 84c3c97ae7b80c34fc5756d67d38c1e0679453bc Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Tue, 16 Feb 2021 22:35:55 +0100 |
| Subject: ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet |
| |
| From: Hans de Goede <hdegoede@redhat.com> |
| |
| [ Upstream commit c58947af08aedbdee0fce5ea6e6bf3e488ae0e2c ] |
| |
| The Acer One S1002 tablet is using an analog mic on IN1 and has |
| its jack-detect connected to JD2_IN4N, instead of using the default |
| IN3 for its internal mic and JD1_IN4P for jack-detect. |
| |
| Note it is also using AIF2 instead of AIF1 which is somewhat unusual, |
| this is correctly advertised in the ACPI CHAN package, so the speakers |
| do work without the quirk. |
| |
| Add a quirk for the mic and jack-detect settings. |
| |
| Signed-off-by: Hans de Goede <hdegoede@redhat.com> |
| Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> |
| Link: https://lore.kernel.org/r/20210216213555.36555-5-hdegoede@redhat.com |
| Signed-off-by: Mark Brown <broonie@kernel.org> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| sound/soc/intel/boards/bytcr_rt5640.c | 13 +++++++++++++ |
| 1 file changed, 13 insertions(+) |
| |
| diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c |
| index ba8ea651a22e..f00d4e417b6c 100644 |
| --- a/sound/soc/intel/boards/bytcr_rt5640.c |
| +++ b/sound/soc/intel/boards/bytcr_rt5640.c |
| @@ -402,6 +402,19 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { |
| BYT_RT5640_SSP0_AIF1 | |
| BYT_RT5640_MCLK_EN), |
| }, |
| + { /* Acer One 10 S1002 */ |
| + .matches = { |
| + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| + DMI_MATCH(DMI_PRODUCT_NAME, "One S1002"), |
| + }, |
| + .driver_data = (void *)(BYT_RT5640_IN1_MAP | |
| + BYT_RT5640_JD_SRC_JD2_IN4N | |
| + BYT_RT5640_OVCD_TH_2000UA | |
| + BYT_RT5640_OVCD_SF_0P75 | |
| + BYT_RT5640_DIFF_MIC | |
| + BYT_RT5640_SSP0_AIF2 | |
| + BYT_RT5640_MCLK_EN), |
| + }, |
| { |
| .matches = { |
| DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| -- |
| 2.30.1 |
| |