]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: bytcht_es8316: Add quirk for the Nanote UMPC-01
authorHans de Goede <hdegoede@redhat.com>
Tue, 25 Oct 2022 14:09:42 +0000 (16:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:00 +0000 (11:23 +0100)
[ Upstream commit aa2b5f268383f04e199b02507223101f174360ad ]

The Nanote UMPC-01 mini laptop has stereo speakers, while the default
bytcht_es8316 settings assume a mono speaker setup. Add a quirk for this.

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

index ed332177b0f9dbe9651aecab01b2af8ced99649a..57d6d0b48068c0a7adeb8afd4097bd5bfc98c8b2 100644 (file)
@@ -446,6 +446,13 @@ static const struct dmi_system_id byt_cht_es8316_quirk_table[] = {
                                        | BYT_CHT_ES8316_INTMIC_IN2_MAP
                                        | BYT_CHT_ES8316_JD_INVERTED),
        },
+       {       /* Nanote UMPC-01 */
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "RWC CO.,LTD"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "UMPC-01"),
+               },
+               .driver_data = (void *)BYT_CHT_ES8316_INTMIC_IN1_MAP,
+       },
        {       /* Teclast X98 Plus II */
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),