ASoC: omap-mcpdm: Set 24msbits constraint
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 18 Jan 2012 11:18:24 +0000 (12:18 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:58:31 +0000 (13:58 +0000)
McPDM internal FIFO is 24 bit wide. From the 32 bit sample
8 bit is discarded. Let application know about this
via msbits constraint.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-mcpdm.c

index 0e25df4fa9e5cf20e380582a36082e23596d2f0b..39705561131a6c10f4a62a486a31208ccbe075a4 100644 (file)
@@ -419,12 +419,14 @@ static struct snd_soc_dai_driver omap_mcpdm_dai = {
                .channels_max = 5,
                .rates = OMAP_MCPDM_RATES,
                .formats = OMAP_MCPDM_FORMATS,
+               .sig_bits = 24,
        },
        .capture = {
                .channels_min = 1,
                .channels_max = 3,
                .rates = OMAP_MCPDM_RATES,
                .formats = OMAP_MCPDM_FORMATS,
+               .sig_bits = 24,
        },
        .ops = &omap_mcpdm_dai_ops,
 };