diff options
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index c99425ab2e70..d6341f3fef01 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
@@ -611,11 +611,23 @@ static int conexant_build_controls(struct hda_codec *codec) | |||
611 | return 0; | 611 | return 0; |
612 | } | 612 | } |
613 | 613 | ||
614 | #ifdef CONFIG_SND_HDA_POWER_SAVE | ||
615 | static int conexant_suspend(struct hda_codec *codec, pm_message_t state) | ||
616 | { | ||
617 | snd_hda_shutup_pins(codec); | ||
618 | return 0; | ||
619 | } | ||
620 | #endif | ||
621 | |||
614 | static struct hda_codec_ops conexant_patch_ops = { | 622 | static struct hda_codec_ops conexant_patch_ops = { |
615 | .build_controls = conexant_build_controls, | 623 | .build_controls = conexant_build_controls, |
616 | .build_pcms = conexant_build_pcms, | 624 | .build_pcms = conexant_build_pcms, |
617 | .init = conexant_init, | 625 | .init = conexant_init, |
618 | .free = conexant_free, | 626 | .free = conexant_free, |
627 | #ifdef CONFIG_SND_HDA_POWER_SAVE | ||
628 | .suspend = conexant_suspend, | ||
629 | #endif | ||
630 | .reboot_notify = snd_hda_shutup_pins, | ||
619 | }; | 631 | }; |
620 | 632 | ||
621 | #ifdef CONFIG_SND_HDA_INPUT_BEEP | 633 | #ifdef CONFIG_SND_HDA_INPUT_BEEP |