diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-08-22 16:40:24 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-08-22 16:48:17 +0200 |
commit | 8a5354140a86b6d4057793a9ed28d29ac8ce6ba6 (patch) | |
tree | c8f8dc2e4ff1df1c47db26b61083c4379c0886a9 /sound/pci/hda/patch_realtek.c | |
parent | f9933487468c760b8cd9b4e9f7ec4e494f711a0a (diff) | |
download | linux-8a5354140a86b6d4057793a9ed28d29ac8ce6ba6.tar.gz linux-8a5354140a86b6d4057793a9ed28d29ac8ce6ba6.tar.bz2 linux-8a5354140a86b6d4057793a9ed28d29ac8ce6ba6.zip |
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>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 4f81dd44c837..ce99cc955326 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -2053,8 +2053,6 @@ static int alc_init(struct hda_codec *codec) alc_apply_fixup(codec, ALC_FIXUP_ACT_INIT); - snd_hda_jack_report_sync(codec); - hda_call_check_power_status(codec, 0x01); return 0; } |