diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-09-21 11:57:06 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-09-21 12:00:03 +0400 |
commit | 9e5341b92d1d2dde11691b394721b45b36416bef (patch) | |
tree | 987a81df30cec229d2af12f87c4b572ded04095d /sound/pci/hda/hda_codec.c | |
parent | 9396d3174b761685d6fefb1103e66b96a2e5db6d (diff) | |
download | linux-9e5341b92d1d2dde11691b394721b45b36416bef.tar.xz |
ALSA: hda - Introduce hda_call_check_power_status() helper
Replace the explicit ifdef check and call of check_power_status ops with
a new helper function, hda_call_check_power_status().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index e15a75751f57..053f827d2c2c 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -2228,10 +2228,7 @@ int snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol, change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx, HDA_AMP_MUTE, *valp ? 0 : HDA_AMP_MUTE); -#ifdef CONFIG_SND_HDA_POWER_SAVE - if (codec->patch_ops.check_power_status) - codec->patch_ops.check_power_status(codec, nid); -#endif + hda_call_check_power_status(codec, nid); snd_hda_power_down(codec); return change; } |