ALSA: hda - Call snd_hda_jack_report_sync() generically in hda_codec.c
Instead of calling the jack sync in the init callback of each codec, call it generically at initialization and resume. By calling it at the last of resume sequence, a possible race between the jack sync and the unsol event enablement in the current code will be closed, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -4418,8 +4418,6 @@ static int stac92xx_init(struct hda_codec *codec)
|
||||
stac_toggle_power_map(codec, nid, 0);
|
||||
}
|
||||
|
||||
snd_hda_jack_report_sync(codec);
|
||||
|
||||
/* sync mute LED */
|
||||
if (spec->gpio_led) {
|
||||
if (spec->vmaster_mute.hook)
|
||||
|
Reference in New Issue
Block a user