diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-01-07 15:42:48 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-12 11:43:56 +0400 |
commit | fce52a3bb15bf3db63cbde496f212edf5e6d366e (patch) | |
tree | 4d2a8da2c6500a2aff7af99fd938f4fb4b055949 /sound/pci/hda/patch_realtek.c | |
parent | 76a19c69d9c971d652e263799536412ec7f8dcf3 (diff) | |
download | linux-fce52a3bb15bf3db63cbde496f212edf5e6d366e.tar.xz |
ALSA: hda - Add snd_hda_gen_free() and snd_hda_gen_check_power_status()
Just to remove duplicated codes.
Also fixed EXPORT_SYMBOL() in hda_generic.c.
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 | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index fee21625e509..bcb258bca99d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -808,14 +808,6 @@ static int alc_init(struct hda_codec *codec) return 0; } -#ifdef CONFIG_PM -static int alc_check_power_status(struct hda_codec *codec, hda_nid_t nid) -{ - struct alc_spec *spec = codec->spec; - return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid); -} -#endif - static inline void alc_shutup(struct hda_codec *codec) { struct alc_spec *spec = codec->spec; @@ -876,10 +868,8 @@ static const struct hda_codec_ops alc_patch_ops = { .unsol_event = snd_hda_jack_unsol_event, #ifdef CONFIG_PM .resume = alc_resume, -#endif -#ifdef CONFIG_PM .suspend = alc_suspend, - .check_power_status = alc_check_power_status, + .check_power_status = snd_hda_gen_check_power_status, #endif .reboot_notify = alc_shutup, }; |