ASoC: rockchip-rt5645: Allow more sample rates
authorCaesar Wang <wxt@rock-chips.com>
Fri, 6 Nov 2015 11:38:16 +0000 (19:38 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 10:10:24 +0000 (10:10 +0000)
The RT5645 audio codec support sample rates from 8 to 96 kHz
as the dai claim.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_rt5645.c

index 68c62e4c23168a1e9e8656956ee9b83584892d18..440a8026346a3ed4004ed744f9600049c1c82a12 100644 (file)
@@ -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: