]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00216976 ESAI: add support for 4,6channel p2p
authorChen Liangjun <b36089@freescale.com>
Fri, 13 Jul 2012 06:11:19 +0000 (14:11 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:00 +0000 (08:35 +0200)
Add support for 4, 6 channels p2p playback in ESAI.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
sound/soc/imx/imx-cs42888.c

index 5a22939b8cc01334514567ef6ea47efe9935629f..128c9959a25f279f86a8fb8e6b1353f7be2c2198 100644 (file)
@@ -138,7 +138,7 @@ static int config_asrc(struct snd_pcm_substream *substream,
                        || !asrc_func)
                return -EINVAL;
 
-       if (channel != 2)
+       if ((channel != 2) && (channel != 4) && (channel != 6))
                return -EINVAL;
 
        ret = asrc_req_pair(channel, &asrc_esai_data.asrc_index);