ASoC: mxs-pcm: Set SNDRV_PCM_INFO_HALF_DUPLEX
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 20 Apr 2013 17:29:01 +0000 (19:29 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Apr 2013 10:27:18 +0000 (11:27 +0100)
The MXS SAIF is only half-duplex so set the SNDRV_PCM_INFO_HALF_DUPLEX flag for
the PCM in order to prevent playback and capture from running at the same time.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mxs/mxs-pcm.c

index 7bceb16d0fd95f8c18ea4da0a66cf8bdb377a9ac..907cdb1f989df89e4319f1de94fb576b814c2bc2 100644 (file)
@@ -43,7 +43,8 @@ static struct snd_pcm_hardware snd_mxs_hardware = {
                                  SNDRV_PCM_INFO_MMAP_VALID |
                                  SNDRV_PCM_INFO_PAUSE |
                                  SNDRV_PCM_INFO_RESUME |
-                                 SNDRV_PCM_INFO_INTERLEAVED,
+                                 SNDRV_PCM_INFO_INTERLEAVED |
+                                 SNDRV_PCM_INFO_HALF_DUPLEX,
        .formats                = SNDRV_PCM_FMTBIT_S16_LE |
                                  SNDRV_PCM_FMTBIT_S20_3LE |
                                  SNDRV_PCM_FMTBIT_S24_LE,