<div dir="ltr"><div><div><div><div><div><div><div>Hi all,<br></div>I'm using gstreamer with a WM8741 codec on an Atmel AT91SAM9G20 processor running Linux kernel 2.6.38.<br></div>When playing sound with gst-launch using playbin i get this error :<br>
<br>wm8741-codec 0-001b: wm8741_set_dai_fmt:    Format=0, Clock Inv=0<br>wm8741-codec 0-001b: wm8741_hw_params:    bit size param = 10<br>atmel_ssc_dai: sample size 32is too large for I2S<br>asoc: interface atmel-ssc-dai.0 hw params failed<br>
<br></div>This is because the atmel ssc dai only support a max bit depth of 16bit and it seems that gstreamer send 32bit samples.<br><br></div>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.<br>
<br></div>Currently I worked around the problem by setting an asound.conf file (here below) but I would like to find a more gracefull solution... and one wich not force to resample everything.<br><br></div>Thanks for help!<br>
</div>mike<br><div><div><div><br>here is the asound.conf, I don't like this solution because this also resample everything at 48khz.<br>pcm.!default {<br>type plug<br>slave.pcm {<br>type asym<br>playback.pcm {<br>type dmix<br>
ipc_key 10001<br>slave {<br>pcm {<br>type hw<br>card DAISY16<br>}<br>format S16_LE<br>rate 48000<br>channels 2<br>period_size 512<br>buffer_size 8192<br>}<br>}<br>capture.pcm {<br>type hw<br>card DAISY16<br>}<br>}<br>}<br>
</div></div></div></div>