From: Caesar Wang Date: Fri, 6 Nov 2015 11:38:16 +0000 (+0800) Subject: ASoC: rockchip-rt5645: Allow more sample rates X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a3b070da98e43037e35b9ad02eb0fff1a57e318;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: rockchip-rt5645: Allow more sample rates The RT5645 audio codec support sample rates from 8 to 96 kHz as the dai claim. Signed-off-by: Caesar Wang Signed-off-by: Mark Brown --- diff --git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c index 68c62e4c2316..440a8026346a 100644 --- a/sound/soc/rockchip/rockchip_rt5645.c +++ b/sound/soc/rockchip/rockchip_rt5645.c @@ -79,11 +79,17 @@ static int rk_aif1_hw_params(struct snd_pcm_substream *substream, switch (params_rate(params)) { case 8000: case 16000: + case 24000: + case 32000: case 48000: + case 64000: case 96000: mclk = 12288000; break; + case 11025: + case 22050: case 44100: + case 88200: mclk = 11289600; break; default: