VirtualBox

Ignore:
Timestamp:
Sep 15, 2014 7:25:29 AM (10 years ago)
Author:
vboxsync
Message:

Main/USB: Fix darwin assertion on Macbooks with USB 3.0 (Superspeed) ports and devices, introduce new device speed enum value for USB 3.0 devices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/iokit.cpp

    r51578 r52743  
    973973                uint8_t bSpeed;
    974974                AssertBreak(darwinDictGetU8(PropsRef,  CFSTR(kUSBDevicePropertySpeed),  &bSpeed));
    975                 Assert(bSpeed <= 2);
    976                 pCur->enmSpeed = bSpeed == 2 ? USBDEVICESPEED_HIGH
     975                Assert(bSpeed <= 3);
     976                pCur->enmSpeed = bSpeed == 3 ? USBDEVICESPEED_SUPER
     977                               : bSpeed == 2 ? USBDEVICESPEED_HIGH
    977978                               : bSpeed == 1 ? USBDEVICESPEED_FULL
    978979                               : bSpeed == 0 ? USBDEVICESPEED_LOW
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette