diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-02-06 12:03:59 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-02-18 15:39:13 +0100 |
commit | 786ad214c72226fa5bd4ebf18aeb4c6b54d3ba80 (patch) | |
tree | 5ea2ef50b98307b68b87f1e879392d2f4ca4a4be /hw/usb/hcd-xhci.c | |
parent | c348e481759057c925cce4bf54336f1518b8c702 (diff) | |
download | qemu-786ad214c72226fa5bd4ebf18aeb4c6b54d3ba80.zip qemu-786ad214c72226fa5bd4ebf18aeb4c6b54d3ba80.tar.gz qemu-786ad214c72226fa5bd4ebf18aeb4c6b54d3ba80.tar.bz2 |
xhci iso: fix time calculation
Frameid specifies frames not microframes, so we
need to shift it to get the microframe index.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-xhci.c')
-rw-r--r-- | hw/usb/hcd-xhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 8d9cfe8..706cdc7 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -1974,8 +1974,8 @@ static void xhci_calc_iso_kick(XHCIState *xhci, XHCITransfer *xfer, xfer->mfindex_kick = asap; } } else { - xfer->mfindex_kick = (xfer->trbs[0].control >> TRB_TR_FRAMEID_SHIFT) - & TRB_TR_FRAMEID_MASK; + xfer->mfindex_kick = ((xfer->trbs[0].control >> TRB_TR_FRAMEID_SHIFT) + & TRB_TR_FRAMEID_MASK) << 3; xfer->mfindex_kick |= mfindex & ~0x3fff; if (xfer->mfindex_kick < mfindex) { xfer->mfindex_kick += 0x4000; |