Re: [Linux-uvc-devel] [UVC] [Linux-UVC] put_unaligned_le32

2010-09-12 Thread Laurent Pinchart
Hi,

On Monday 30 August 2010 19:53:13 Palmax Maverick wrote:
 Hello,
 
 I'm trying to understand uvc_set_video_ctrl (
 http://lxr.linux.no/linux+v2.6.35/drivers/media/video/uvc/uvc_video.c#L209
 ), that its a function for sending and receiving controls.
 
 I don't know why do you use put_unaligned_le32 for dwMaxVideoFrameSize
 and dwMaxPayloadTransferSize (these parameters are explained at the
 table 4-47 of UVC especification pdf).

Because the fields are not aligned to a 32-bit boundary in memory. Platforms 
that can't handle unaligned access (such as ARM) need the put_unaligned_le32 
macro.

-- 
Regards,

Laurent Pinchart
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel


[Linux-uvc-devel] [UVC] [Linux-UVC] put_unaligned_le32

2010-08-30 Thread Palmax Maverick
Hello,


I'm trying to understand uvc_set_video_ctrl (
http://lxr.linux.no/linux+v2.6.35/drivers/media/video/uvc/uvc_video.c#L209
), that its a function for sending and receiving controls.

I don't know why do you use put_unaligned_le32 for dwMaxVideoFrameSize
and dwMaxPayloadTransferSize (these parameters are explained at the
table 4-47 of UVC especification pdf).


Thanks for your help
Palmax
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel