jzcodec: Fix supported formats.
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 14 Mar 2010 17:49:30 +0000 (17:49 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Sun, 14 Mar 2010 17:49:30 +0000 (17:49 +0000)
SVN-Revision: 20210

target/linux/xburst/files-2.6.32/sound/soc/codecs/jzcodec.c

index ce5aaf18772d3ce3ea996fa48413132f04903807..fced0176fc1f64797091fbb5df6f05962e623ea4 100644 (file)
@@ -267,14 +267,17 @@ struct snd_soc_dai jz_codec_dai = {
                .channels_min = 2,
                .channels_max = 2,
                .rates = SNDRV_PCM_RATE_8000_44100,
-               .formats = SNDRV_PCM_FORMAT_S18_3LE,
+               .formats = SNDRV_PCM_FMTBIT_S18_3LE |
+                          SNDRV_PCM_FMTBIT_S16_LE |
+                          SNDRV_PCM_FMTBIT_S8,
        },
        .capture = {
                .stream_name = "Capture",
                .channels_min = 2,
                .channels_max = 2,
                .rates = SNDRV_PCM_RATE_8000_44100,
-               .formats = SNDRV_PCM_FORMAT_S16_LE,
+               .formats = SNDRV_PCM_FMTBIT_S16_LE |
+                          SNDRV_PCM_FMTBIT_S8,
        },
        .ops = &jz_codec_dai_ops,
        .symmetric_rates = 1,