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 */
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) \