Make sure the vendor class quirk only matches the vendor specific

class, else multiple pcm devices can appear on certain USB audio
devices.

MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2012-10-26 12:41:01 +00:00
parent 3557aa50ce
commit 76eaf53752

View File

@ -618,7 +618,8 @@ uaudio_probe(device_t dev)
/* lookup non-standard device */
if (uaa->info.bInterfaceClass != UICLASS_AUDIO) {
if (usb_test_quirk(uaa, UQ_AU_VENDOR_CLASS) == 0)
if (uaa->info.bInterfaceClass != UICLASS_VENDOR ||
usb_test_quirk(uaa, UQ_AU_VENDOR_CLASS) == 0)
return (ENXIO);
}