From: Pierre-Louis Bossart Date: Wed, 4 Jan 2017 21:44:52 +0000 (-0600) Subject: ASoC: Intel: bytcr-rt5640: fix settings in internal clock mode X-Git-Tag: v4.9.41~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f0dfa11cc0da608fc513f53b50efebb9827f371;p=platform%2Fkernel%2Flinux-amlogic.git ASoC: Intel: bytcr-rt5640: fix settings in internal clock mode [ Upstream commit 60448b077ed93d227e6c117a9e87db76ff0c1911 ] Frequency value of zero did not make sense, use same 24.576MHz setting and only change the clock source in idle mode Suggested-by: Bard Liao Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index d5873eeae1aa..bd19fad2d91b 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -142,7 +142,7 @@ static int platform_clock_control(struct snd_soc_dapm_widget *w, * for Jack detection and button press */ ret = snd_soc_dai_set_sysclk(codec_dai, RT5640_SCLK_S_RCCLK, - 0, + 48000 * 512, SND_SOC_CLOCK_IN); if (!ret) { if ((byt_rt5640_quirk & BYT_RT5640_MCLK_EN) && priv->mclk)