After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 139658 - [alsasrc] probes inexistant playback device on capture only card
[alsasrc] probes inexistant playback device on capture only card
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.8.2
Assigned To: Ronald Bultje
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-10 13:49 UTC by Stephane Loeuillet
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Stephane Loeuillet 2004-04-10 13:49:39 UTC
got 2 alsa "cards" : nforce 2 (onboard, card 0) and bt878 (tv card, card 1)

alsa works well with both cards

when using gst-recorder, using alsasrc as audio source, it probes the following
device name and fails :

ALSA lib pcm_hw.c:1057:(snd_pcm_hw_open) open /dev/snd/pcmC1D0p failed: Aucun
fichier ou répertoire de ce type

the problem is that card 1 (bt878) has no playback /dev/snd entry
it has 2 capture dev ( pcmC1D0c and pcmC1D1c, first digital and second analog)

i don't know how alsa capabilities are probed for now (alsa-lib doing it himself
 or gstreamer having it's own code)

so, device=hw:1,0 or hw:1,1 depending on what audio input we want for bt878

<BBB> osssrc checks the element type
<BBB> by going through all pads in our padlist
<BBB> if we contain a source pad, it opens using RDONLY
<BBB> if we contain a sinkpad, WRONLY
<BBB> if we contain none, it tries the mixer
<BBB> alsa should do the same
Comment 1 Ronald Bultje 2004-04-29 00:39:49 UTC
Fixed in CVS.