diff options
-rw-r--r-- | ldetect.spec | 7 | ||||
-rw-r--r-- | pciusb.c | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ldetect.spec b/ldetect.spec index 2b4aac7..17d1407 100644 --- a/ldetect.spec +++ b/ldetect.spec @@ -1,6 +1,6 @@ Name: ldetect Version: 0.4.6 -Release: 5mdk +Release: 6mdk Summary: Light hardware detection library Source: %name.tar.bz2 Group: System/Libraries @@ -49,6 +49,11 @@ rm -rf $RPM_BUILD_ROOT %_libdir/* %changelog +* Thu Sep 5 2002 Pixel <pixel@mandrakesoft.com> 0.4.6-6mdk +- fix ugly case for snd-usb-audio which should have made titi think that +something was broken. Really fixing the right way (this fixes automatic +detection of unknown usb controllers) + * Thu Aug 29 2002 Pixel <pixel@mandrakesoft.com> 0.4.6-5mdk - fix getting the Product name in usb (occurs when there is no entry in usbtable) @@ -122,8 +122,8 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu p = buf + offset + 1; q = strchr(p, '\t'); } - if (!e->module || (e->module && strcmp(e->module, "snd-usb-audio"))) - e->module = strcmp(p, "unknown") ? strndup(p,q-p-1) : NULL; + if (strncmp(p, "unknown", q-p-1)) + e->module = strndup(p,q-p-1); ifree(e->text); /* usb.c set it so that we display something when usbtable doesn't refer that hw*/ e->text = strndup(q+2, strlen(q)-4); |