diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-13 19:41:44 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2010-02-09 22:32:14 +0000 |
commit | ce7bd05ca50c946ea6b3ec9a9dcb9bfd7e90ac5e (patch) | |
tree | 573c365e07390c0df943f65d1e08016de753fceb /src/modules/module-udev-detect.c | |
parent | f732c23d9504e16b4412755fc11e692e2f4dbacc (diff) |
udev: make sure we get events only for sound devices
Diffstat (limited to 'src/modules/module-udev-detect.c')
-rw-r--r-- | src/modules/module-udev-detect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c index dfd13ee2..9b1fdb0e 100644 --- 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)); |