]> Git Repo - linux.git/commitdiff
ASoC: rt5645: Add platform-data for Asus T101HA
authorHans de Goede <[email protected]>
Mon, 8 Jun 2020 20:46:34 +0000 (22:46 +0200)
committerMark Brown <[email protected]>
Tue, 9 Jun 2020 14:46:19 +0000 (15:46 +0100)
The Asus T101HA uses the default jack-detect mode 3, but instead of
using an analog microphone it is using a DMIC on dmic-data-pin 1,
like the Asus T100HA. Note unlike the T100HA its jack-detect is not
inverted.

Add a DMI quirk with the correct settings for this model.

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]>
sound/soc/codecs/rt5645.c

index 6ba1849a77b086860b0b445b57450c6977858347..e2e1d5b03b38114b5c8d1bb90e64fa68fb75345c 100644 (file)
@@ -3625,6 +3625,12 @@ static const struct rt5645_platform_data asus_t100ha_platform_data = {
        .inv_jd1_1 = true,
 };
 
+static const struct rt5645_platform_data asus_t101ha_platform_data = {
+       .dmic1_data_pin = RT5645_DMIC_DATA_IN2N,
+       .dmic2_data_pin = RT5645_DMIC2_DISABLE,
+       .jd_mode = 3,
+};
+
 static const struct rt5645_platform_data lenovo_ideapad_miix_310_pdata = {
        .jd_mode = 3,
        .in2_diff = true,
@@ -3708,6 +3714,14 @@ static const struct dmi_system_id dmi_platform_data[] = {
                },
                .driver_data = (void *)&asus_t100ha_platform_data,
        },
+       {
+               .ident = "ASUS T101HA",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "T101HA"),
+               },
+               .driver_data = (void *)&asus_t101ha_platform_data,
+       },
        {
                .ident = "MINIX Z83-4",
                .matches = {
This page took 0.0643089999999999 seconds and 4 git commands to generate.