]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: bytcr_rt5640: Add quirk for MPMAN MPWIN895CL tablet
authorHans de Goede <hdegoede@redhat.com>
Sun, 5 Apr 2020 13:37:26 +0000 (15:37 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Apr 2020 14:03:28 +0000 (15:03 +0100)
The MPMAN MPWIN895CL tablet almost fully works with out default settings.
The only problem is that it has only 1 speaker so any sounds only playing
on the right channel get lost.

Add a quirk for this model using the default settings + MONO_SPEAKER.

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/20200405133726.24154-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c

index 33fb8ea4e5cb5c15fda730bb15408e9eb9bd81c7..08f4ae964b02ad77afa3f42a1fe249a457a791c4 100644 (file)
@@ -591,6 +591,17 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
                                        BYT_RT5640_SSP0_AIF1 |
                                        BYT_RT5640_MCLK_EN),
        },
+       {
+               /* MPMAN MPWIN895CL */
+               .matches = {
+                       DMI_EXACT_MATCH(DMI_SYS_VENDOR, "MPMAN"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
+               },
+               .driver_data = (void *)(BYTCR_INPUT_DEFAULTS |
+                                       BYT_RT5640_MONO_SPEAKER |
+                                       BYT_RT5640_SSP0_AIF1 |
+                                       BYT_RT5640_MCLK_EN),
+       },
        {       /* MSI S100 tablet */
                .matches = {
                        DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Micro-Star International Co., Ltd."),