diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-11 03:34:25 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-11 03:37:08 -0500 |
commit | a2f6309e8392e2c14c04594fca8b4876c8c9bc36 (patch) | |
tree | 78db71701660196181768b898bcc80db8bc10009 /sound/pci/hda/hda_local.h | |
parent | 8f217a226cfa7b960b8a6c00cef6b4de2c5dd030 (diff) |
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>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 461e0c15c77a..015fbac914b3 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -437,6 +437,15 @@ int snd_hda_create_hwdep(struct hda_codec *codec); | |||
437 | static inline int snd_hda_create_hwdep(struct hda_codec *codec) { return 0; } | 437 | static inline int snd_hda_create_hwdep(struct hda_codec *codec) { return 0; } |
438 | #endif | 438 | #endif |
439 | 439 | ||
440 | #ifdef CONFIG_SND_HDA_POWER_SAVE | ||
441 | int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec); | ||
442 | #else | ||
443 | static inline int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec) | ||
444 | { | ||
445 | return 0; | ||
446 | } | ||
447 | #endif | ||
448 | |||
440 | #ifdef CONFIG_SND_HDA_RECONFIG | 449 | #ifdef CONFIG_SND_HDA_RECONFIG |
441 | int snd_hda_hwdep_add_sysfs(struct hda_codec *codec); | 450 | int snd_hda_hwdep_add_sysfs(struct hda_codec *codec); |
442 | #else | 451 | #else |