aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-07-17 17:10:21 +0200
committerTakashi Iwai <tiwai@suse.de>2007-07-17 17:10:21 +0200
commit03ce83e65c3d7d0ca916beadf1ee2183105fa232 (patch)
treeef86610bda2abe1210c4b11d7827b5aeb75c9c19
parentfb8ed26dea16e315a036191e9641e549983b7ef6 (diff)
downloadsalsa-lib-03ce83e65c3d7d0ca916beadf1ee2183105fa232.tar.gz
Output hw_params and sw_params in snd_pcm_dump().
-rw-r--r--src/pcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pcm.c b/src/pcm.c
index 603cd01..5d7d312 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -533,6 +533,10 @@ int snd_pcm_dump(snd_pcm_t *pcm, snd_output_t *out)
snd_output_printf(out,
"Hardware PCM card %d '%s' device %d subdevice %d\n",
pcm->card, name, pcm->device, pcm->subdevice);
+ if (pcm->setup) {
+ snd_output_printf(out, "Its setup is:\n");
+ snd_pcm_dump_setup(pcm, out);
+ }
free(name);
return 0;
}