]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00231778 MX6 ESAI: Adjust channel support capability of cpu/codec dai
authorLionel Xu <Lionel.Xu@freescale.com>
Wed, 31 Oct 2012 08:40:37 +0000 (16:40 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:39 +0000 (08:35 +0200)
To adjust the channel support capability, codec dai does not support mono
playback and record, while esai dai does, thus making the whole audio
codec only support stereo and above channel playback/record.

Signed-off-by: Lionel Xu <R63889@freescale.com>
sound/soc/codecs/cs42888.c
sound/soc/imx/imx-esai.c

index ce240834b2e12ebfb7b68f7059fe8e142fb665a0..698ff4b5982680965619518a0244fb705239080e 100644 (file)
@@ -793,7 +793,7 @@ struct snd_soc_dai_driver cs42888_dai[] = {
        .name = "CS42888",
        .playback = {
                .stream_name = "Playback",
-               .channels_min = 1,
+               .channels_min = 2,
                .channels_max = 8,
                .rates = (SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 |
                        SNDRV_PCM_RATE_192000),
@@ -801,7 +801,7 @@ struct snd_soc_dai_driver cs42888_dai[] = {
        },
        .capture = {
                .stream_name = "Capture",
-               .channels_min = 1,
+               .channels_min = 2,
                .channels_max = 4,
                .rates = (SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 |
                        SNDRV_PCM_RATE_192000),
@@ -813,7 +813,7 @@ struct snd_soc_dai_driver cs42888_dai[] = {
                .name = "CS42888_ASRC",
                .playback = {
                        .stream_name = "Playback",
-                       .channels_min = 1,
+                       .channels_min = 2,
                        .channels_max = 8,
                        .rates = SNDRV_PCM_RATE_8000_192000,
                        .formats = CS42888_FORMATS,
index 359cb2a4aea0120e47e5b317142c853342c5f937..8951a81f6824fc1f8053c98924db2fc361f904a9 100644 (file)
@@ -579,7 +579,7 @@ static struct snd_soc_dai_driver imx_esai_dai = {
         .suspend = imx_esai_suspend,
         .resume = imx_esai_resume,
         .playback = {
-                     .channels_min = 2,
+                     .channels_min = 1,
                      .channels_max = 12,
                      .rates = IMX_ESAI_RATES,
                      .formats = IMX_ESAI_FORMATS,