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

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to