From 199bd2683240e682c4cb252b995824f0b667d2a8 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 6 Jun 2012 12:17:20 +0200 Subject: [PATCH] --- yaml --- r: 316117 b: refs/heads/master c: 167d2d55bfb4628169a57e3adbb1e5b097dca0f5 h: refs/heads/master i: 316115: 45427c7c0f29c336d94b7fca8fc3ccf801812f0a v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_proc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index d6abbf63a437..0a446ad661a2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ce63f3ba256a48023b425a4a6792f8da03d00948 +refs/heads/master: 167d2d55bfb4628169a57e3adbb1e5b097dca0f5 diff --git a/trunk/sound/pci/hda/hda_proc.c b/trunk/sound/pci/hda/hda_proc.c index fb9ef132f13b..1dd9dbeeef6e 100644 --- a/trunk/sound/pci/hda/hda_proc.c +++ b/trunk/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"; }