[PATCH] alsaloop: Adding openctl_elem debug log
When debugging what ctl elem was found and opened (if any) a debug log is helpful.
Signed-off-by: Pavel Hofman pavel.hofman@ivitera.com --- alsaloop/pcmjob.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/alsaloop/pcmjob.c b/alsaloop/pcmjob.c index 8b72af4..845ab82 100644 --- a/alsaloop/pcmjob.c +++ b/alsaloop/pcmjob.c @@ -1191,6 +1191,11 @@ static void openctl_elem(struct loopback_handle *lhandle, if (err < 0) { snd_ctl_elem_value_free(*elem); *elem = NULL; + } else { + if (verbose) + snd_output_printf(lhandle->loopback->output, + "Opened PCM element %s of %s, device %d, subdevice %d\n", + name, snd_ctl_name(lhandle->ctl), device, subdevice); } } }
On 01. 10. 21 10:00, Pavel Hofman wrote:
When debugging what ctl elem was found and opened (if any) a debug log is helpful.
Signed-off-by: Pavel Hofman pavel.hofman@ivitera.com
alsaloop/pcmjob.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/alsaloop/pcmjob.c b/alsaloop/pcmjob.c index 8b72af4..845ab82 100644 --- a/alsaloop/pcmjob.c +++ b/alsaloop/pcmjob.c @@ -1191,6 +1191,11 @@ static void openctl_elem(struct loopback_handle *lhandle, if (err < 0) { snd_ctl_elem_value_free(*elem); *elem = NULL;
} else {
if (verbose)
snd_output_printf(lhandle->loopback->output,
"Opened PCM element %s of %s, device %d, subdevice %d\n",
} } }name, snd_ctl_name(lhandle->ctl), device, subdevice);
Applied. Thank you.
Jaroslav
participants (2)
-
Jaroslav Kysela
-
Pavel Hofman