Merge branch 'fix/hda' into topic/hda
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 Aug 2011 13:02:36 +0000 (15:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Aug 2011 13:02:36 +0000 (15:02 +0200)
Conflicts:
sound/pci/hda/patch_realtek.c

1  2 
sound/pci/hda/patch_realtek.c

@@@ -581,9 -568,9 +581,9 @@@ static void alc_hp_automute(struct hda_
        spec->jack_present =
                detect_jacks(codec, ARRAY_SIZE(spec->autocfg.hp_pins),
                             spec->autocfg.hp_pins);
 -      update_speakers(codec);
+       if (!spec->automute)
+               return;
 +      call_update_speakers(codec);
  }
  
  /* standard line-out-automute helper */
@@@ -594,9 -581,9 +594,9 @@@ static void alc_line_automute(struct hd
        spec->line_jack_present =
                detect_jacks(codec, ARRAY_SIZE(spec->autocfg.line_out_pins),
                             spec->autocfg.line_out_pins);
 -      update_speakers(codec);
+       if (!spec->automute || !spec->detect_line)
+               return;
 +      call_update_speakers(codec);
  }
  
  #define get_connection_index(codec, mux, nid) \