summaryrefslogtreecommitdiffstats
path: root/src/modules/module-udev-detect.c
diff options
context:
space:
mode:
authorDaniel T Chen <crimsun@ubuntu.com>2010-01-04 21:53:36 -0500
committerLennart Poettering <lennart@poettering.net>2010-01-15 01:34:55 +0100
commit8c7148a4eaecd687a004b0611748452fd4b41e92 (patch)
tree4cf01770294647eae7366a8e78fc761b10a22ed6 /src/modules/module-udev-detect.c
parenta2418effe7c4bc54390939ccd07dd6227e6cdfa5 (diff)
udev: Use SOUND_CLASS instead of SOUND_FORM_FACTOR when checking for modem
The fact whether an ALSA card is a modem is stored in the SOUND_CLASS, not the SOUND_FORM_FACTOR property. So read it from there. Patch from Whoopie.
Diffstat (limited to 'src/modules/module-udev-detect.c')
-rw-r--r--src/modules/module-udev-detect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c
index b8568b28..3cf3e58c 100644
--- a/src/modules/module-udev-detect.c
+++ b/src/modules/module-udev-detect.c
@@ -426,7 +426,7 @@ static void process_device(struct userdata *u, struct udev_device *dev) {
return;
}
- if ((ff = udev_device_get_property_value(dev, "SOUND_FORM_FACTOR")) &&
+ if ((ff = udev_device_get_property_value(dev, "SOUND_CLASS")) &&
pa_streq(ff, "modem")) {
pa_log_debug("Ignoring %s, because it is a modem.", udev_device_get_devpath(dev));
return;