diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-10-08 11:48:06 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-08 20:09:36 +0300 |
commit | 70b4891cc889d359d3b1f3b8ec6f10c5800ecc70 (patch) | |
tree | 59fa5f672a67af0c7c73624e288c206eb732da43 /sound/pci/hda/hda_local.h | |
parent | 1b5e6167c27e1d3be33155baf9660768ac74aae0 (diff) | |
download | linux-70b4891cc889d359d3b1f3b8ec6f10c5800ecc70.tar.xz |
ALSA: hda: make use of core codec fns
Now that we have introduced the core fns we should make hda use these
helpers
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 4a21c2199e02..d0e066e4c985 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h @@ -681,12 +681,7 @@ static inline bool snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) { - unsigned int state = snd_hda_codec_read(codec, nid, 0, - AC_VERB_GET_POWER_STATE, 0); - if (state & AC_PWRST_ERROR) - return true; - state = (state >> 4) & 0x0f; - return (state == target_state); + return snd_hdac_check_power_state(&codec->core, nid, target_state); } unsigned int snd_hda_codec_eapd_power_filter(struct hda_codec *codec, |