[gst-devel] Problems with USB speakers

Rodrigo Castro rodrigo.castro at mezzano.com.br
Thu Jun 21 16:37:34 CEST 2007


Peteris Krisjanis wrote:
> 2007/6/21, Rodrigo Castro <rodrigo.castro at mezzano.com.br>:
>> The point is that I want to use this card 1 as the default device, what
>> I do by configuring /etc/asound.conf. However, the applications that
>> relies on gstreamer don't set the device attribute (in order to use the
>> default one, I suppose), so it ends up not working anyway for me. For
>> this reason, without the default attribute, what I need is that
>> gstreamer works as fine as it did with plughw.
>
> I am using asoundconf to set default sound card, asoundconf to list
> them and asoundconf set-default-card to set.
>
> While no very easy way for common user, it works for me.

Based on plughw, it seems I found a configuration (asound.conf) that 
works with gstreamer. Really good suggestion, thanks ;-)

It's something like that:

pcm.onboard       { type plug; slave.pcm "hw:0" }
ctl.onboard       { type hw; card 0 }

pcm.usb  { type plug; slave.pcm "hw:1" }
ctl.usb  { type hw; card 1 }

pcm.!default pcm.usb
ctl.!default ctl.usb

It's still strange that gstreamer doesn't work when type is hw for USB 
speakers (like suggested on alsa site [1]), but at least we have a 
workaround now. Is there any limitation using that way rather than "type 
hw"? By the way, is that a bug? Should we file a bug in gstreamer bugzilla?

[1] http://alsa.opensrc.org/index.php/Hotplugging_USB_audio_devices_(Howto)

Thanks,
Rodrigo




More information about the gstreamer-devel mailing list