From 8c7148a4eaecd687a004b0611748452fd4b41e92 Mon Sep 17 00:00:00 2001 From: Daniel T Chen Date: Mon, 4 Jan 2010 21:53:36 -0500 Subject: 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. --- src/modules/module-udev-detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/module-udev-detect.c') 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; -- cgit