diff options
author | Caesar Wang <wxt@rock-chips.com> | 2015-11-06 12:38:15 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-16 11:10:24 +0100 |
commit | a4ebd38042cf479a6917f09fbb1cf1f093dcf60d (patch) | |
tree | 1e8b95d752892cc9a2f29ef5017cd37940048e52 /sound/soc/rockchip | |
parent | ASoC: rockchip: i2s: change bclk and lrck according to sample rates (diff) | |
download | linux-a4ebd38042cf479a6917f09fbb1cf1f093dcf60d.tar.xz linux-a4ebd38042cf479a6917f09fbb1cf1f093dcf60d.zip |
ASoC: rockchip-max98090: Allow more sample rates
The MAX98090 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>
Diffstat (limited to 'sound/soc/rockchip')
-rw-r--r-- | sound/soc/rockchip/rockchip_max98090.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c index 26567b10393a..543610282cdb 100644 --- a/sound/soc/rockchip/rockchip_max98090.c +++ b/sound/soc/rockchip/rockchip_max98090.c @@ -80,11 +80,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: |