Commit bf46241b authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: Intel: bytct_rt5640: change default capture settings

Most Baytrail-CR devices use analog differential microphones,
modify capture default to avoid DMI quirks. Keep digital mics
for all other configurations.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 64e84305
...@@ -57,9 +57,7 @@ struct byt_rt5640_private { ...@@ -57,9 +57,7 @@ struct byt_rt5640_private {
struct clk *mclk; struct clk *mclk;
}; };
static unsigned long byt_rt5640_quirk = BYT_RT5640_DMIC1_MAP | static unsigned long byt_rt5640_quirk = BYT_RT5640_MCLK_EN;
BYT_RT5640_DMIC_EN |
BYT_RT5640_MCLK_EN;
static void log_quirks(struct device *dev) static void log_quirks(struct device *dev)
{ {
...@@ -787,6 +785,13 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev) ...@@ -787,6 +785,13 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev)
/* no BIOS indications, assume SSP0-AIF2 connection */ /* no BIOS indications, assume SSP0-AIF2 connection */
byt_rt5640_quirk |= BYT_RT5640_SSP0_AIF2; byt_rt5640_quirk |= BYT_RT5640_SSP0_AIF2;
} }
/* change defaults for Baytrail-CR capture */
byt_rt5640_quirk |= BYT_RT5640_IN1_MAP;
byt_rt5640_quirk |= BYT_RT5640_DIFF_MIC;
} else {
byt_rt5640_quirk |= (BYT_RT5640_DMIC1_MAP |
BYT_RT5640_DMIC_EN);
} }
/* check quirks before creating card */ /* check quirks before creating card */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment