Browse Source

MLK-9764-1: mxc: asrc: Only limit even channels for ASRC version 1

The hardware ASRC version 1, used on i.MX35, has a limitation that even
pair can only process even channel data. However, after using version 2,
it actually can support odd number of channels now. So we drop the check
for non-v1 versions.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
imx_3.10.53_1.1.0_ga
Shengjiu Wang 6 years ago
parent
commit
b42ceda412
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      drivers/mxc/asrc/mxc_asrc.c

+ 2
- 1
drivers/mxc/asrc/mxc_asrc.c View File

@ -1636,7 +1636,8 @@ static int asrc_write_proc_attr(struct file *file, const char __user *buffer,
if (na + nb + nc > total) {
dev_err(asrc->dev, "don't surpass %d for total\n", total);
return -EINVAL;
} else if (na % 2 != 0 || nb % 2 != 0 || nc % 2 != 0) {
} else if (asrc->channel_bits < 4 &&
(na % 2 != 0 || nb % 2 != 0 || nc % 2 != 0)) {
dev_err(asrc->dev, "please set an even number for each pair\n");
return -EINVAL;
} else if (na < 0 || nb < 0 || nc < 0) {


Loading…
Cancel
Save