[PATCH] udev-detect: warn when a sound card is busy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux