ASoC: Intel: bytcr_rt5640: quirk for Acer Aspire SWS-012
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 16 Aug 2016 23:28:22 +0000 (18:28 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 17 Aug 2016 09:32:11 +0000 (10:32 +0100)
Baytrail-CR platform needing SSP0-AIF1 routing
Also fix SSP0 while we are at it.

Suggested-by: Andrei Lavreniyuk <andy.lavr@gmail.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c

index 254881594c36037056a71616e08e75a993b41a24..bff77a1f27fca127cd2a2ae0a5177915b7d1a65f 100644 (file)
@@ -378,6 +378,17 @@ 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, "Acer"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "Aspire SW5-012"),
+               },
+               .driver_data = (unsigned long *)(BYT_RT5640_IN1_MAP |
+                                                BYT_RT5640_MCLK_EN |
+                                                BYT_RT5640_SSP0_AIF1),
+
+       },
        {}
 };
 
@@ -527,7 +538,7 @@ static int byt_rt5640_codec_fixup(struct snd_soc_pcm_runtime *rtd,
        if ((byt_rt5640_quirk & BYT_RT5640_SSP0_AIF1) ||
                (byt_rt5640_quirk & BYT_RT5640_SSP0_AIF2)) {
 
-               /* set SSP2 to 16-bit */
+               /* set SSP0 to 16-bit */
                params_set_format(params, SNDRV_PCM_FORMAT_S16_LE);
 
                /*