[pulseaudio-tickets] [Bug 70865] analog-output-speaker not working anymore when headphone is plugged

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 30 08:07:23 CET 2013


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

--- Comment #10 from Raymond <superquad.vortex2 at gmail.com> ---
As pulseaudio did not have any conf file to use "PCM Playback Switch"


better to name the playback switch to Front instead of PCM when the mute is at
pin complex of Line Out


/* give some appropriate ctl name prefix for the given line out channel */
static const char *get_line_out_pfx(struct hda_codec *codec, int ch,
                    int *index, int ctl_type)
{
    struct hda_gen_spec *spec = codec->spec;
    struct auto_pin_cfg *cfg = &spec->autocfg;
+    struct nid_path *path;
+    hda_nid_t nid;
+
+    if (ctl_type == NID_PATH_MUTE_CTL) {
+        path = snd_hda_get_path_from_idx(codec, spec->out_paths[ch]);
+        nid = path->ctls[ctl_type] & 0x3f;
+        if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_PIN)
+            return channel_name[ch];
+    }

-- 
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/20131030/2bb70add/attachment.html>


More information about the pulseaudio-bugs mailing list