summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-01-18 12:18:24 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-20 13:58:31 +0000
commitb4badd4960c9937fcbdcab2a57f0dd7e4ad45c8e (patch)
treefb50231c2e82654c61c02e2c724ddd45c6b2abe5 /sound
parent7df6f2551f2255f55adab7338a3a1e6594a12f63 (diff)
downloadlinux-3.10-b4badd4960c9937fcbdcab2a57f0dd7e4ad45c8e.tar.gz
linux-3.10-b4badd4960c9937fcbdcab2a57f0dd7e4ad45c8e.tar.bz2
linux-3.10-b4badd4960c9937fcbdcab2a57f0dd7e4ad45c8e.zip
ASoC: omap-mcpdm: Set 24msbits constraint
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/omap/omap-mcpdm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c
index 0e25df4fa9e..39705561131 100644
--- a/sound/soc/omap/omap-mcpdm.c
+++ b/sound/soc/omap/omap-mcpdm.c
@@ -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,
};