From b98b9e0e777a64507f5d02cd3acfb01317f27072 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Mon, 21 Jun 2021 21:39:28 +0300 Subject: [PATCH] bluez5: deal with old libusb versions --- spa/plugins/bluez5/backend-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index cd8ae3473..5dac1be13 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -478,7 +478,7 @@ static bool check_usb_altsetting_6(struct impl *backend, uint16_t vendor_id, uin for (iep = 0; iep < idesc->bNumEndpoints; ++iep) { const struct libusb_endpoint_descriptor *ep = &idesc->endpoint[iep]; - if ((ep->bmAttributes & 0x3) == LIBUSB_ENDPOINT_TRANSFER_TYPE_ISOCHRONOUS) { + if ((ep->bmAttributes & 0x3) == 0x1 /* isochronous */) { ok = true; goto done; }