ALSA: hda - Add power on/off counter
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Nov 2009 08:34:25 +0000 (09:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Nov 2009 08:37:08 +0000 (09:37 +0100)
commita2f6309e8392e2c14c04594fca8b4876c8c9bc36
tree78db71701660196181768b898bcc80db8bc10009
parent8f217a226cfa7b960b8a6c00cef6b4de2c5dd030
ALSA: hda - Add power on/off counter

Added the power on/off counter and expose via sysfs files.
The sysfs files, power_on_acct and power_off_acct, are created under
each codec hwdep sysfs directory (e.g. /sys/class/sound/hwC0D0).
The files show the msec length of the codec power-on and power-off,
respectively.

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