mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:35:42 +01:00
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> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
68473a41c6
commit
e2b167c490
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue