GNOME Bugzilla – Bug 610458
[alsasink] need to specify device for digital output, despite having a setting for that
Last modified: 2014-11-26 15:11:04 UTC
I have an integrated sound card (AMD HD audio, hda_intel driver) that behaves a bit strangely with ALSA, but this sounds intentional. There are two devices in /dev/snd: one corresponds to the analog output, and the other to the digital output. There is also a checkbox, that I can make appear in gnome-volume-control.gstreamer, that switches betwen analog and digital output. Depending on this checkbox, regular ALSA applications (such as xine or mpg321) use the correct output without any configuration. With GStreamer, though, this is not the case: gst-launch-0.10 filesrc location=blah.mp3 ! mad ! audioconvert ! audioresample ! alsasink → no sound in digital output. I have to specify the hardware device by hand: gst-launch-0.10 filesrc location=blah.mp3 ! mad ! audioconvert ! audioresample ! alsasink device="hw:0,1" → works fine.
By default alsasink uses the "default" device. You have to configure it to be the device you want
(In reply to comment #1) > By default alsasink uses the "default" device. You have to configure it to be > the device you want Yes, and when configuring it, pure ALSA applications take it into account, while GStreamer doesn’t.
could you attach your asoundrc and/or the output of aplay -l and aplay -L ?
Due to various problems with it (including this one), I’ve disabled this sound card to use my old PCI one instead. I’ll try again in a few days. I don’t think PulseAudio is affected, FWIW.
Not sure what to do with this, or what the actual issue is? But I think after 3.5 years we can probably close this. If it's still an issue, someone will file a new bug about it.