projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5fdbea
)
udev: Use SOUND_CLASS instead of SOUND_FORM_FACTOR when checking for modem
author
Daniel T Chen
<crimsun@ubuntu.com>
Tue, 5 Jan 2010 02:53:36 +0000
(21:53 -0500)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 5 Jan 2010 19:00:22 +0000
(20:00 +0100)
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
patch
|
blob
|
history
diff --git
a/src/modules/module-udev-detect.c
b/src/modules/module-udev-detect.c
index
a12f7c9
..
f17695b
100644
(file)
--- a/
src/modules/module-udev-detect.c
+++ b/
src/modules/module-udev-detect.c
@@
-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;