From: Takashi Iwai Date: Wed, 6 Jun 2012 10:17:20 +0000 (+0200) Subject: ALSA: hda - Show D3cold state in proc files X-Git-Tag: firefly_0821_release~3680^2~1845^2~123^2~37 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=167d2d55bfb4628169a57e3adbb1e5b097dca0f5;p=firefly-linux-kernel-4.4.55.git ALSA: hda - Show D3cold state in proc files Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index fb9ef132f13b..1dd9dbeeef6e 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"; }