提交 167d2d55 编写于 作者: T Takashi Iwai

ALSA: hda - Show D3cold state in proc files

Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 ce63f3ba
......@@ -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";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册