[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [0/7] USB UVC updates
From: |
Brad Hards |
Subject: |
Re: [Qemu-devel] [0/7] USB UVC updates |
Date: |
Mon, 6 Jun 2011 19:45:47 +1000 |
User-agent: |
KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.2; x86_64; ; ) |
On Mon, 6 Jun 2011 07:32:32 PM Natalia Portillo wrote:
> I see it ok, have you tested nothing broken? (specially with the &s patch)
It doesn't work for me (before or after). The descriptor part (which I've now
implemented) works OK (i.e. the guest can dump it), cheese runs in the guest
but doesn't show images. luvcview opens but won't capture data. So I have more
work to do.
> I should take more care with 's's in typos next time
I don't think this is the biggest problem :-)
> > The next change I propose to make is to rework the descriptors
> > and add constants / defines for magic numbers.
>
> Yeah, there are a couple of magic numbers that can be added.
> Please note that most of the constants used in the descriptors should go
> in usb.h
I was planning to do the ones that are specific to usb-uvc.c in that file, and
only (potentially) shared things like the interface descriptor stuff in usb.h
> Also take special care with the descriptors, the minimal change can break
> it very easily. The ideal solution would be to make the descriptors be
> dynamic depending on the host webcam capabilities.
I believe that part of the descriptor change may be associated with not
reading data. I could easily have introduced a problem. I haven't finished
debugging it, but I never see transactions to EP 2 (the isoc data endpoint).
> Bad thing the USB IF put the resolutions and formats in the descriptor,
> instead of in a query command.
Indeed, but like everything in USB device space, its designed down to minimise
cost on (real) hardware.
Thanks.
Brad
- [Qemu-devel] [0/7] USB UVC updates, Brad Hards, 2011/06/02
- [Qemu-devel] [PATCH 1/7] usb: Turn off debug output by default., Brad Hards, 2011/06/02
- [Qemu-devel] [PATCH 2/7] usb-uvc: compile fix, Brad Hards, 2011/06/02
- [Qemu-devel] [PATCH 4/7] usb-uvc: fix some spelling issues., Brad Hards, 2011/06/02
- [Qemu-devel] [PATCH 3/7] usb-uvc: Fix all checkpatch style issues., Brad Hards, 2011/06/02
- [Qemu-devel] [PATCH 5/7] usb-uvc: Add spaces around &, Brad Hards, 2011/06/02
- [Qemu-devel] [PATCH 6/7] usb-uvc: Fix a couple of typos, Brad Hards, 2011/06/02
- [Qemu-devel] [PATCH 7/7] usb-uvc: Use qemu_malloc(), Brad Hards, 2011/06/02
- Re: [Qemu-devel] [0/7] USB UVC updates, Natalia Portillo, 2011/06/06
- Re: [Qemu-devel] [0/7] USB UVC updates,
Brad Hards <=