[gstreamer-bugs] [Bug 525833] [halaudiosrc] unable to get mic USB working with gnome-sound-properties

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Apr 5 05:00:24 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=525833

  GStreamer | gst-plugins-good | Ver: 0.10.x

Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
            Summary|Unable to get mic USB       |[halaudiosrc] unable to get
                   |working with gnome-sound-   |mic USB working with gnome-
                   |properties                  |sound-properties
   Target Milestone|HEAD                        |0.10.8




------- Comment #8 from Tim-Philipp Müller  2008-04-05 12:00 UTC -------
Right, this is caused by this code snippet in hal.c:

    if (device == 0) {
      /* handle default device specially to use
       * dmix, dsnoop, and softvol if appropriate */
      string = g_strdup_printf ("%s device=default:%d", element, card);
    } else {
      string =
          g_strdup_printf ("%s device=plughw:%d,%d", element, card, device);
    }


>From bug #329106: "An additional change I've integrated is to use the
"default:X" PCM/capture device instead of "plughw:X,Y" if device 0 is
requested. This avoids the problem that dmix/dsnoop set-up by alsa-lib get
ignored."

It seems to me that this makes a lot of assumptions about the exact alsa setup,
and is generally dodgy. DMix should be advertised as an option alongside direct
hardware access instead of things being changed under the hood here. We can't
assume that there's a default device set up or that it points to dmix.

Anyway, I think the best quick-fix/hack is to only change the device string in
the above way for playback devices, but not for capture devices:

 2008-04-05  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/hal/hal.c: (gst_hal_get_alsa_element):
          Don't munge device string to 'default:x' for capture devices.
          Fixes #525833.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=525833.




More information about the Gstreamer-bugs mailing list