[pulseaudio-discuss] [PATCH] udev-detect: warn when a sound card is busy
Tanu Kaskinen
tanuk at iki.fi
Wed Jun 27 18:18:13 UTC 2018
Having a warning in the syslog should make it a bit easier to debug
situations where some other program is hogging the sound card.
---
src/modules/module-udev-detect.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c
index d119f96ae..4598a3d13 100644
--- a/src/modules/module-udev-detect.c
+++ b/src/modules/module-udev-detect.c
@@ -308,7 +308,9 @@ static void verify_access(struct userdata *u, struct device *d) {
* inotify and can then recheck. */
busy = is_card_busy(path_get_card_id(d->path));
- pa_log_debug("%s is busy: %s", d->path, pa_yes_no(busy));
+
+ if (busy)
+ pa_log_warn(_("Can't use sound card %s, because some other program is using it."), d->card_name);
if (!busy) {
--
2.17.0
More information about the pulseaudio-discuss
mailing list