mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
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:
parent
c5fdbeab85
commit
d3c71c92ce
1 changed files with 1 additions and 1 deletions
|
|
@ -366,7 +366,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue