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:
parent
3557aa50ce
commit
76eaf53752
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user