mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
ALSA: hda/realtek - Avoid bogus HP-pin assignment
When the headphone pin is assigned as primary output to line_out_pins[], the automatic HP-pin assignment by ASSID must be suppressed. Otherwise a wrong pin might be assigned to the headphone and breaks the auto-mute. Reference: https://bugzilla.novell.com/show_bug.cgi?id=716104 Signed-off-by: Takashi Iwai <tiwai@suse.de> Cc: <stable@kernel.org>
This commit is contained in:
parent
6656b15d67
commit
5fe6e0151d
1 changed files with 3 additions and 1 deletions
|
@ -1321,7 +1321,9 @@ do_sku:
|
||||||
* 15 : 1 --> enable the function "Mute internal speaker
|
* 15 : 1 --> enable the function "Mute internal speaker
|
||||||
* when the external headphone out jack is plugged"
|
* when the external headphone out jack is plugged"
|
||||||
*/
|
*/
|
||||||
if (!spec->autocfg.hp_pins[0]) {
|
if (!spec->autocfg.hp_pins[0] &&
|
||||||
|
!(spec->autocfg.line_out_pins[0] &&
|
||||||
|
spec->autocfg.line_out_type == AUTO_PIN_HP_OUT)) {
|
||||||
hda_nid_t nid;
|
hda_nid_t nid;
|
||||||
tmp = (ass >> 11) & 0x3; /* HP to chassis */
|
tmp = (ass >> 11) & 0x3; /* HP to chassis */
|
||||||
if (tmp == 0)
|
if (tmp == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue