[pulseaudio-tickets] [Bug 79911] incoherent muting of GStreamer channels (mutes master, headphone and speaker, but unmutes only master)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 5 00:34:47 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=79911

--- Comment #23 from Raymond <superquad.vortex2 at gmail.com> ---
You need to log e->alsa_name and value of b for
snd_mixer_selem_set_playback_switch_all in 



http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/alsa-mixer.c


static int element_set_switch(pa_alsa_element *e, snd_mixer_t *m, bool b) {
    snd_mixer_elem_t *me;
    snd_mixer_selem_id_t *sid;
    int r;

    pa_assert(m);
    pa_assert(e);

    SELEM_INIT(sid, e->alsa_name);
    if (!(me = snd_mixer_find_selem(m, sid))) {
        pa_log_warn("Element %s seems to have disappeared.", e->alsa_name);
        return -1;
    }



    if (e->direction == PA_ALSA_DIRECTION_OUTPUT)
        r = snd_mixer_selem_set_playback_switch_all(me, b);
    else
        r = snd_mixer_selem_set_capture_switch_all(me, b);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20141105/b61e509a/attachment.html>


More information about the pulseaudio-bugs mailing list