[PATCH] alsaloop: Adding openctl_elem debug log
Pavel Hofman
pavel.hofman at ivitera.com
Fri Oct 1 10:00:28 CEST 2021
When debugging what ctl elem was found and opened (if any) a debug log is
helpful.
Signed-off-by: Pavel Hofman <pavel.hofman at 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);
}
}
}
--
2.25.1
More information about the Alsa-devel
mailing list