alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: omap-mcpdm: Set constraint for 24 msb
@ 2012-01-14 16:16 Peter Ujfalusi
  2012-01-15 11:22 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Ujfalusi @ 2012-01-14 16:16 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel

OMAP McPDM supports 24 msb in the 32 bit sample.
Make sure that applications get this information.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 sound/soc/omap/omap-mcpdm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c
index 0e25df4..50d758a 100644
--- a/sound/soc/omap/omap-mcpdm.c
+++ b/sound/soc/omap/omap-mcpdm.c
@@ -265,6 +265,8 @@ static int omap_mcpdm_dai_startup(struct snd_pcm_substream *substream,
 
 	mutex_lock(&mcpdm->mutex);
 
+	snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24);
+
 	if (!dai->active) {
 		/* Enable watch dog for ES above ES 1.0 to avoid saturation */
 		if (omap_rev() != OMAP4430_REV_ES1_0) {
-- 
1.7.8.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: omap-mcpdm: Set constraint for 24 msb
  2012-01-14 16:16 [PATCH] ASoC: omap-mcpdm: Set constraint for 24 msb Peter Ujfalusi
@ 2012-01-15 11:22 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-01-15 11:22 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: alsa-devel, Liam Girdwood

On Sat, Jan 14, 2012 at 05:16:43PM +0100, Peter Ujfalusi wrote:
> OMAP McPDM supports 24 msb in the 32 bit sample.
> Make sure that applications get this information.

This is actually a pretty widespread configuration for hardware - I'd
guess most devices that support 32 bit DAI formats don't actually use
all 32 bits.  If this is really useful to applications we should add a
framework feature letting drivers just set a number rather than adding
code individual drivers, I'll send a patch shortly adding a feature for
this.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-15 11:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-14 16:16 [PATCH] ASoC: omap-mcpdm: Set constraint for 24 msb Peter Ujfalusi
2012-01-15 11:22 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).