From: Takashi Iwai Date: Tue, 23 Aug 2011 13:02:36 +0000 (+0200) Subject: Merge branch 'fix/hda' into topic/hda X-Git-Tag: firefly_0821_release~3680^2~4182^2~73 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5fa9b1511216282e27e048defae78c0f44c148d1;p=firefly-linux-kernel-4.4.55.git Merge branch 'fix/hda' into topic/hda Conflicts: sound/pci/hda/patch_realtek.c --- 5fa9b1511216282e27e048defae78c0f44c148d1 diff --cc sound/pci/hda/patch_realtek.c index e0ecf5a5b097,7cabd7317163..c3e5af955620 --- a/sound/pci/hda/patch_realtek.c +++ b/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); + if (!spec->automute) + return; - update_speakers(codec); + 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); + if (!spec->automute || !spec->detect_line) + return; - update_speakers(codec); + call_update_speakers(codec); } #define get_connection_index(codec, mux, nid) \