libusb10.c (7bdc064b0b644d15bd9614d9e7db5c4279736d75) | libusb10.c (a0c93fa361cfa5930db3c2143172d1a2095b4b3e) |
---|---|
1/* $FreeBSD$ */ 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1389 unchanged lines hidden (view full) --- 1398 default: 1399 goto failure; 1400 } 1401 1402 buffsize = libusb10_get_buffsize(pdev, uxfer); 1403 maxframe = libusb10_get_maxframe(pdev, uxfer); 1404 1405 /* make sure the transfer is opened */ | 1/* $FreeBSD$ */ 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1389 unchanged lines hidden (view full) --- 1398 default: 1399 goto failure; 1400 } 1401 1402 buffsize = libusb10_get_buffsize(pdev, uxfer); 1403 maxframe = libusb10_get_maxframe(pdev, uxfer); 1404 1405 /* make sure the transfer is opened */ |
1406 err = libusb20_tr_open(pxfer0, buffsize, maxframe, endpoint); | 1406 err = libusb20_tr_open_stream(pxfer0, buffsize, maxframe, 1407 endpoint, sxfer->stream_id); |
1407 if (err && (err != LIBUSB20_ERROR_BUSY)) { 1408 goto failure; 1409 } 1410 libusb20_tr_start(pxfer0); 1411 return; 1412 1413failure: 1414 libusb10_complete_transfer(pxfer0, sxfer, LIBUSB_TRANSFER_ERROR); --- 241 unchanged lines hidden --- | 1408 if (err && (err != LIBUSB20_ERROR_BUSY)) { 1409 goto failure; 1410 } 1411 libusb20_tr_start(pxfer0); 1412 return; 1413 1414failure: 1415 libusb10_complete_transfer(pxfer0, sxfer, LIBUSB_TRANSFER_ERROR); --- 241 unchanged lines hidden --- |