Skip to content

Commit

Permalink
ALSA: hda/generic - Check power state cap at updating the widget power
Browse files Browse the repository at this point in the history
The new widget power-saving tries to apply the power change no matter
whether the node has a power cap or not.  It's bad (although most of
codecs chip just ignore it).  Check the capability properly
beforehand.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Apr 9, 2015
1 parent 9efe273 commit 2206dc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,8 @@ static hda_nid_t path_power_update(struct hda_codec *codec,

for (i = 0; i < path->depth; i++) {
nid = path->path[i];
if (!(get_wcaps(codec, nid) & AC_WCAP_POWER))
continue;
if (nid == codec->core.afg)
continue;
if (!allow_powerdown || is_active_nid_for_any(codec, nid))
Expand Down

0 comments on commit 2206dc9

Please sign in to comment.