diff options
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 0a5085537034..26d348b47867 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -3935,7 +3935,8 @@ void snd_hda_bus_reset_codecs(struct hda_bus *bus) | |||
3935 | 3935 | ||
3936 | list_for_each_codec(codec, bus) { | 3936 | list_for_each_codec(codec, bus) { |
3937 | /* FIXME: maybe a better way needed for forced reset */ | 3937 | /* FIXME: maybe a better way needed for forced reset */ |
3938 | cancel_delayed_work_sync(&codec->jackpoll_work); | 3938 | if (current_work() != &codec->jackpoll_work.work) |
3939 | cancel_delayed_work_sync(&codec->jackpoll_work); | ||
3939 | #ifdef CONFIG_PM | 3940 | #ifdef CONFIG_PM |
3940 | if (hda_codec_is_power_on(codec)) { | 3941 | if (hda_codec_is_power_on(codec)) { |
3941 | hda_call_codec_suspend(codec); | 3942 | hda_call_codec_suspend(codec); |