]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda - Refactor pm notification in hda_codec.c
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Nov 2013 11:41:20 +0000 (12:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Nov 2013 12:42:38 +0000 (13:42 +0100)
commita40e0a880b34d95f583552be7fd3905b6b4e6891
treecc07451d034f4b0200b34eb4d1c9ed3dcd93f331
parentf0639272d6c8e4706ea6d1b0dbc6eb83eaaff412
ALSA: hda - Refactor pm notification in hda_codec.c

No functional change.

- codec->pm_down_notified flag is renamed to codec->pm_up_notified
  flag (and takes the reversed meaning), which is managed solely in
  hda_call_pm_notify() now.

- The explicit call of hda_call_pm_notify() is moved into
  hda_keep_power_on().

- Removed a redundant call of hda_call_pm_notify() in
  snd_hda_power_up(), as it's called in hda_call_codec_resume()
  anyway.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h