diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-08-15 21:23:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-08-15 21:23:41 +0000 |
commit | 1398804b467ce1057db65d1628b1b9e79e099c4b (patch) | |
tree | d794c9d25c0ee162ab6965bc32b067e7afbfd43d /usb.c | |
parent | 59f18f9a4b3bce15226c2270f27b357e386da992 (diff) | |
download | ldetect-1398804b467ce1057db65d1628b1b9e79e099c4b.tar ldetect-1398804b467ce1057db65d1628b1b9e79e099c4b.tar.gz ldetect-1398804b467ce1057db65d1628b1b9e79e099c4b.tar.bz2 ldetect-1398804b467ce1057db65d1628b1b9e79e099c4b.tar.xz ldetect-1398804b467ce1057db65d1628b1b9e79e099c4b.zip |
usb audio devices can use new alsa modules snd-usb-audio
Diffstat (limited to 'usb.c')
-rw-r--r-- | usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -67,6 +67,9 @@ extern struct pciusb_entries usb_probe(void) { int class_, sub, prot = 0; if (sscanf(buf, "I: If#=%*2d Alt=%*2d #EPs=%*2d Cls=%02x(%*5c) Sub=%02x Prot=%02x", &class_, &sub, &prot) == 3) { e->class_ = (class_ * 0x100 + sub) * 0x100 + prot; + if (e->class_ == (0x1*0x100+ 0x01)) /* USB_AUDIO_CLASS*0x100 + USB_SUBCLASS_AUDIO_CONTROL*/ + e->module = "snd-usb-audio"; + } else { fprintf(stderr, "%s %d: unknown ``I'' line\n", proc_usb_path, line); } |