aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-06-03 11:26:13 +0200
committerTakashi Iwai <tiwai@suse.de>2013-06-03 11:27:11 +0200
commitfa09c12e5195e3085ec6a94e8fde4417e5c67318 (patch)
treebe7829c0412fd7c2082427a6ca0a03a8c6c2468b
parent42213cb83037cbebca37b3088542eaf73814cc18 (diff)
downloadhda-emu-fa09c12e5195e3085ec6a94e8fde4417e5c67318.tar.gz
Do explicit power up/down while dumping the proc
Otherwise the power-up sequence is hidden during the proc output is taken when power_save option is set. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--hda-emu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hda-emu.c b/hda-emu.c
index 88824f5..4754bde 100644
--- a/hda-emu.c
+++ b/hda-emu.c
@@ -289,11 +289,13 @@ void hda_log_dump_proc(unsigned int nid, const char *file)
buf.printing = 0;
else
buf.printing = 1;
+ snd_hda_power_up(_codec);
/* don't show verbs */
saved_level = hda_log_level_set(HDA_LOG_KERN);
snd_iprintf_dumper = log_dump_proc_file;
card.proc->func(card.proc, &buf);
hda_log_level_set(saved_level);
+ snd_hda_power_down(_codec);
if (file)
fclose(buf.fp);
}