diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2015-05-27 14:15:58 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:23:23 -0500 |
commit | ca1a653e3f0c36414c761eac4abeefd65332f5c1 (patch) | |
tree | 4c3bb544451f4e7f2457bcd735bb023c60043df6 /sound | |
parent | 8aac765c7824021facd7c3ab5bf777d76d8bd9fe (diff) |
MLK-10880: ASoC: fsl_asrc: the limitation for rate is not accurate.
The limitation is for the case that output sampling rate is between 8kHz
and 30kHz.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/fsl_asrc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 154b874c70ea..98c068d73674 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -287,7 +287,8 @@ static int fsl_asrc_config_pair(struct fsl_asrc_pair *pair, bool p2p_in, bool p2 return -EINVAL; } - if (outrate/inrate > 24 || inrate/outrate > 8) { + if ((outrate > 8000 && outrate < 30000) && + (outrate/inrate > 24 || inrate/outrate > 8)) { pair_err("exceed supported ratio range [1/24, 8] for \ inrate/outrate: %d/%d\n", inrate, outrate); return -EINVAL; |