aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-11-11 03:34:25 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-11 03:37:08 -0500
commita2f6309e8392e2c14c04594fca8b4876c8c9bc36 (patch)
tree78db71701660196181768b898bcc80db8bc10009 /sound/pci/hda/hda_local.h
parent8f217a226cfa7b960b8a6c00cef6b4de2c5dd030 (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.h9
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);
437static inline int snd_hda_create_hwdep(struct hda_codec *codec) { return 0; } 437static 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
441int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec);
442#else
443static 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
441int snd_hda_hwdep_add_sysfs(struct hda_codec *codec); 450int snd_hda_hwdep_add_sysfs(struct hda_codec *codec);
442#else 451#else