projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce63f3b
)
ALSA: hda - Show D3cold state in proc files
author
Takashi Iwai
<tiwai@suse.de>
Wed, 6 Jun 2012 10:17:20 +0000
(12:17 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 6 Jun 2012 10:17:45 +0000
(12:17 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_proc.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_proc.c
b/sound/pci/hda/hda_proc.c
index fb9ef132f13b0ec3b521719dbb65ba022e0812a2..1dd9dbeeef6e686cbce1055a9075e846ba89ea63 100644
(file)
--- a/
sound/pci/hda/hda_proc.c
+++ b/
sound/pci/hda/hda_proc.c
@@
-426,10
+426,10
@@
static void print_digital_conv(struct snd_info_buffer *buffer,
static const char *get_pwr_state(u32 state)
{
- static const char * const buf[
4
] = {
- "D0", "D1", "D2", "D3"
+ static const char * const buf[] = {
+ "D0", "D1", "D2", "D3"
, "D3cold"
};
- if (state <
4
)
+ if (state <
ARRAY_SIZE(buf)
)
return buf[state];
return "UNKNOWN";
}