diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-06-06 06:17:20 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-06-06 06:17:45 -0400 |
commit | 167d2d55bfb4628169a57e3adbb1e5b097dca0f5 (patch) | |
tree | 76c8278deddef67437178c336e920fb801bcd229 /sound/pci/hda/hda_proc.c | |
parent | ce63f3ba256a48023b425a4a6792f8da03d00948 (diff) |
ALSA: hda - Show D3cold state in proc files
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_proc.c')
-rw-r--r-- | sound/pci/hda/hda_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index fb9ef132f13..1dd9dbeeef6 100644 --- 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, | |||
426 | 426 | ||
427 | static const char *get_pwr_state(u32 state) | 427 | static const char *get_pwr_state(u32 state) |
428 | { | 428 | { |
429 | static const char * const buf[4] = { | 429 | static const char * const buf[] = { |
430 | "D0", "D1", "D2", "D3" | 430 | "D0", "D1", "D2", "D3", "D3cold" |
431 | }; | 431 | }; |
432 | if (state < 4) | 432 | if (state < ARRAY_SIZE(buf)) |
433 | return buf[state]; | 433 | return buf[state]; |
434 | return "UNKNOWN"; | 434 | return "UNKNOWN"; |
435 | } | 435 | } |