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.
This commit is contained in:
Daniel T Chen 2010-01-04 21:53:36 -05:00 committed by Lennart Poettering
parent c5fdbeab85
commit d3c71c92ce

View file

@ -366,7 +366,7 @@ static void process_device(struct userdata *u, struct udev_device *dev) {
return; 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_streq(ff, "modem")) {
pa_log_debug("Ignoring %s, because it is a modem.", udev_device_get_devpath(dev)); pa_log_debug("Ignoring %s, because it is a modem.", udev_device_get_devpath(dev));
return; return;