]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ALSA: hda - Handle BOTH jack port as a fixed output
authorTakashi Iwai <tiwai@suse.de>
Mon, 7 Jan 2013 17:21:47 +0000 (18:21 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:44:13 +0000 (08:44 +0100)
When the default config value shows the connection AC_JACK_PORT_BOTH,
it's better to handle it as a speaker pin.  This makes the behavior
consistent in snd_hda_get_pin_label() and snd_hda_parse_pin_defcfg().

There are only few old machines showing this attribute, and all of
them are actually fixed speaker pins, as far as I know.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c

index 44c81d34544d503169625f54acfa99fe3dcc0ae9..6a01c012a0ae352792862d5a033a0393f77fbc4f 100644 (file)
@@ -156,7 +156,8 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
 
                /* workaround for buggy BIOS setups */
                if (dev == AC_JACK_LINE_OUT) {
-                       if (conn == AC_JACK_PORT_FIXED)
+                       if (conn == AC_JACK_PORT_FIXED ||
+                           conn == AC_JACK_PORT_BOTH)
                                dev = AC_JACK_SPEAKER;
                }