X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/fd3677b9606851f5f29bcd663fd37137eb84abd3..506d4b4a864a1d02ba0114afdad4654bf60da316:/src/am7xxx.c diff --git a/src/am7xxx.c b/src/am7xxx.c index 8087f89..aaab4f4 100644 --- a/src/am7xxx.c +++ b/src/am7xxx.c @@ -77,6 +77,16 @@ static struct am7xxx_usb_device_descriptor supported_devices[] = { .product_id = 0xc101, }, { + .name = "Acer C112", + .vendor_id = 0x1de1, + .product_id = 0x5501, + }, + { + .name ="Aiptek PocketCinema T25", + .vendor_id = 0x08ca, + .product_id = 0x2144, + }, + { .name = "Philips/Sagemcom PicoPix 1020", .vendor_id = 0x21e7, .product_id = 0x000e, @@ -294,7 +304,7 @@ static int send_data(am7xxx_device *dev, uint8_t *buffer, unsigned int len) trace_dump_buffer(dev->ctx, "sending -->", buffer, len); - ret = libusb_bulk_transfer(dev->usb_device, 1, buffer, len, &transferred, 0); + ret = libusb_bulk_transfer(dev->usb_device, 0x1, buffer, len, &transferred, 0); if (ret != 0 || (unsigned int)transferred != len) { error(dev->ctx, "ret: %d\ttransferred: %d (expected %u)\n", ret, transferred, len); @@ -542,7 +552,7 @@ static int scan_devices(am7xxx_context *ctx, scan_op op, goto out; } - libusb_set_configuration((*dev)->usb_device, 1); + libusb_set_configuration((*dev)->usb_device, 2); libusb_claim_interface((*dev)->usb_device, 0); goto out; }