diff options
-rw-r--r-- | sound/pci/hda/patch_via.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 31a95cca015d..bab6c04932aa 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -449,6 +449,15 @@ static int via_suspend(struct hda_codec *codec) | |||
449 | 449 | ||
450 | return 0; | 450 | return 0; |
451 | } | 451 | } |
452 | |||
453 | static int via_resume(struct hda_codec *codec) | ||
454 | { | ||
455 | /* some delay here to make jack detection working (bko#98921) */ | ||
456 | msleep(10); | ||
457 | codec->patch_ops.init(codec); | ||
458 | regcache_sync(codec->core.regmap); | ||
459 | return 0; | ||
460 | } | ||
452 | #endif | 461 | #endif |
453 | 462 | ||
454 | #ifdef CONFIG_PM | 463 | #ifdef CONFIG_PM |
@@ -475,6 +484,7 @@ static const struct hda_codec_ops via_patch_ops = { | |||
475 | .stream_pm = snd_hda_gen_stream_pm, | 484 | .stream_pm = snd_hda_gen_stream_pm, |
476 | #ifdef CONFIG_PM | 485 | #ifdef CONFIG_PM |
477 | .suspend = via_suspend, | 486 | .suspend = via_suspend, |
487 | .resume = via_resume, | ||
478 | .check_power_status = via_check_power_status, | 488 | .check_power_status = via_check_power_status, |
479 | #endif | 489 | #endif |
480 | }; | 490 | }; |