projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f732c23
)
udev: make sure we get events only for sound devices
author
Lennart Poettering
<lennart@poettering.net>
Wed, 13 Jan 2010 18:41:44 +0000
(19:41 +0100)
committer
Colin Guthrie
<cguthrie@mandriva.org>
Tue, 9 Feb 2010 22:32:14 +0000
(22:32 +0000)
src/modules/module-udev-detect.c
patch
|
blob
|
history
diff --git
a/src/modules/module-udev-detect.c
b/src/modules/module-udev-detect.c
index
dfd13ee
..
9b1fdb0
100644
(file)
--- a/
src/modules/module-udev-detect.c
+++ b/
src/modules/module-udev-detect.c
@@
-639,6
+639,11
@@
int pa__init(pa_module *m) {
goto fail;
}
+ if (udev_monitor_filter_add_match_subsystem_devtype(u->monitor, "sound", NULL) < 0) {
+ pa_log("Failed to subscribe to sound devices.");
+ goto fail;
+ }
+
errno = 0;
if (udev_monitor_enable_receiving(u->monitor) < 0) {
pa_log("Failed to enable monitor: %s", pa_cstrerror(errno));