diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-11-02 09:00:37 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-11-02 09:00:37 +0100 |
commit | bc88c9e923819b02f8cfaec1bb80d7e5530c0ac5 (patch) | |
tree | 1731a322d153ee18017822a8fd66295a0ec7a4e2 /sound/pci/hda/hda_local.h | |
parent | ALSA: hda - Disable 64bit address for Creative HDA controllers (diff) | |
parent | ALSA: maestro3: Fix Allegro mute until master volume/mute is touched (diff) | |
download | linux-bc88c9e923819b02f8cfaec1bb80d7e5530c0ac5.tar.xz linux-bc88c9e923819b02f8cfaec1bb80d7e5530c0ac5.zip |
Merge branch 'for-next' into for-linus
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, |