diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2016-08-16 19:28:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-17 05:32:11 -0400 |
commit | 8f98307d023810669391555e370a8c2a8e2af9b6 (patch) | |
tree | 9d4c606a734bfc4c1e5c49a23f7567ae694476b0 /sound/soc/intel/boards | |
parent | cac17731df11e076850c46f50a17266181a10b7c (diff) |
ASoC: Intel: bytcr_rt5640: quirk for Acer Aspire SWS-012
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>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r-- | sound/soc/intel/boards/bytcr_rt5640.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 254881594c36..bff77a1f27fc 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c | |||
@@ -378,6 +378,17 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { | |||
378 | BYT_RT5640_MCLK_EN | | 378 | BYT_RT5640_MCLK_EN | |
379 | BYT_RT5640_SSP0_AIF1), | 379 | BYT_RT5640_SSP0_AIF1), |
380 | }, | 380 | }, |
381 | { | ||
382 | .callback = byt_rt5640_quirk_cb, | ||
383 | .matches = { | ||
384 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), | ||
385 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire SW5-012"), | ||
386 | }, | ||
387 | .driver_data = (unsigned long *)(BYT_RT5640_IN1_MAP | | ||
388 | BYT_RT5640_MCLK_EN | | ||
389 | BYT_RT5640_SSP0_AIF1), | ||
390 | |||
391 | }, | ||
381 | {} | 392 | {} |
382 | }; | 393 | }; |
383 | 394 | ||
@@ -527,7 +538,7 @@ static int byt_rt5640_codec_fixup(struct snd_soc_pcm_runtime *rtd, | |||
527 | if ((byt_rt5640_quirk & BYT_RT5640_SSP0_AIF1) || | 538 | if ((byt_rt5640_quirk & BYT_RT5640_SSP0_AIF1) || |
528 | (byt_rt5640_quirk & BYT_RT5640_SSP0_AIF2)) { | 539 | (byt_rt5640_quirk & BYT_RT5640_SSP0_AIF2)) { |
529 | 540 | ||
530 | /* set SSP2 to 16-bit */ | 541 | /* set SSP0 to 16-bit */ |
531 | params_set_format(params, SNDRV_PCM_FORMAT_S16_LE); | 542 | params_set_format(params, SNDRV_PCM_FORMAT_S16_LE); |
532 | 543 | ||
533 | /* | 544 | /* |