mirror of
https://github.com/openharmony/third_party_alsa-utils.git
synced 2026-07-19 12:42:03 -04: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:
committed by
Jaroslav Kysela
parent
68473a41c6
commit
e2b167c490
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user