Gstreamer bit depth output

Sebastian Dröge slomo at circular-chaos.org
Sun Jun 30 05:39:37 PDT 2013


On So, 2013-06-30 at 01:47 +0200, Michael Lathion wrote:
> Hi all,
> 
> I'm using gstreamer with a WM8741 codec on an Atmel AT91SAM9G20
> processor running Linux kernel 2.6.38.
> 
> When playing sound with gst-launch using playbin i get this error :
> 
> wm8741-codec 0-001b: wm8741_set_dai_fmt:    Format=0, Clock Inv=0
> wm8741-codec 0-001b: wm8741_hw_params:    bit size param = 10
> atmel_ssc_dai: sample size 32is too large for I2S
> asoc: interface atmel-ssc-dai.0 hw params failed
> 
> 
> This is because the atmel ssc dai only support a max bit depth of
> 16bit and it seems that gstreamer send 32bit samples.
> 
> 
> How can i force gstreamer (more precisely playbin) to output only
> 16bit samples? I can't construct specific pipeline because I'm using
> rygel (wich use playbin) for dlna streaming.

The ALSA driver for your hardware should only report to support 16 bit
samples then. Apparently it currently claims to support anything, and
GStreamer believes that... so your driver has to be fixed.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130630/02f17ebd/attachment.pgp>


More information about the gstreamer-devel mailing list