summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-06-06 12:17:20 +0200
committerTakashi Iwai <tiwai@suse.de>2012-06-06 12:17:45 +0200
commit167d2d55bfb4628169a57e3adbb1e5b097dca0f5 (patch)
tree76c8278deddef67437178c336e920fb801bcd229
parentce63f3ba256a48023b425a4a6792f8da03d00948 (diff)
downloadop-kernel-dev-167d2d55bfb4628169a57e3adbb1e5b097dca0f5.zip
op-kernel-dev-167d2d55bfb4628169a57e3adbb1e5b097dca0f5.tar.gz
ALSA: hda - Show D3cold state in proc files
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/hda_proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
index fb9ef13..1dd9dbe 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,
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";
}
OpenPOWER on IntegriCloud