From: youling257 Date: Wed, 4 Jan 2017 21:44:53 +0000 (-0600) Subject: ASoC: Intel: bytcr_rt5640: quirks for Insyde devices X-Git-Tag: v4.11-rc1~100^2~8^2~13^2~67 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=571800487837263e914ef68681e4ad6a57d49c7f;p=karo-tx-linux.git ASoC: Intel: bytcr_rt5640: quirks for Insyde devices There are literally dozens of Insyde devices with a different name but with the same audio routing. Use a generic quirk to match on vendor name only to avoid recurring edits of the same thing. Signed-off-by: youling257 Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 507a86a5eafe..613e5286555a 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -386,6 +386,16 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { BYT_RT5640_MCLK_EN | BYT_RT5640_SSP0_AIF1), + }, + { + .callback = byt_rt5640_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), + }, + .driver_data = (unsigned long *)(BYT_RT5640_IN3_MAP | + BYT_RT5640_MCLK_EN | + BYT_RT5640_SSP0_AIF1), + }, {} };