forked from pool/pulseaudio
463388cda5
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=b45128f7b3bb89343a5750f38f143738
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 8c7148a4eaecd687a004b0611748452fd4b41e92 Mon Sep 17 00:00:00 2001
|
|
From: Daniel T Chen <crimsun@ubuntu.com>
|
|
Date: Mon, 4 Jan 2010 21:53:36 -0500
|
|
Subject: [PATCH] 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 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c
|
|
index b8568b2..3cf3e58 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;
|
|
--
|
|
1.6.0.2
|
|
|