]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
ASoC: davinci-mcasp: Add support for 1-channel
authorMisael Lopez Cruz <misael.lopez@ti.com>
Thu, 18 Jul 2013 19:08:52 +0000 (14:08 -0500)
committerMisael Lopez Cruz <misael.lopez@ti.com>
Mon, 22 Jul 2013 20:04:16 +0000 (15:04 -0500)
McASP doesn't support 1-slot TDM mode needed for mono, however mono
can still be achieved by using 2-slots (or more) and transferring data
only in one slot.

Change-Id: Ic8420cf2d6cc1ee9b9c163ab592cfa347a679340
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
sound/soc/davinci/davinci-mcasp.c

index 99cdd6034c43d5385b7d831a633de4171d1bb87b..5d9af6c7ddfaa81962c95eee043906608a9a64ab 100644 (file)
@@ -1081,13 +1081,13 @@ static struct snd_soc_dai_driver davinci_mcasp_dai[] = {
        {
                .name           = "davinci-mcasp.0",
                .playback       = {
-                       .channels_min   = 2,
+                       .channels_min   = 1,
                        .channels_max   = 32 * 16,
                        .rates          = DAVINCI_MCASP_RATES,
                        .formats        = DAVINCI_MCASP_PCM_FMTS,
                },
                .capture        = {
-                       .channels_min   = 2,
+                       .channels_min   = 1,
                        .channels_max   = 32 * 16,
                        .rates          = DAVINCI_MCASP_RATES,
                        .formats        = DAVINCI_MCASP_PCM_FMTS,