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:
Pavel Hofman 2021-10-01 10:00:28 +02:00 committed by Jaroslav Kysela
parent 68473a41c6
commit e2b167c490

View file

@ -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);
}
}
}