mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
ALSA: hda - Show D3cold state in proc files
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ce63f3ba25
commit
167d2d55bf
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user