Hi Erik and others. Hans De Goede reply to my libv4l fix for own gscpa branche:
".... Erm, this patch is clearly wrong, let me guess, you are trying to
solve
problems with skype ..., or ? ...."
I verify this bug again. Problem is about value returned from VIDIOC_TRY_FMT
ioctl.
If user program (v4l library in this case) set pixelformat for example to YU12
(in v4l2_format struct)
and call VIDIOC_TRY_FMT ioctl, own driver always set the pixelformat to BA81
pixel format
and return this value to user space!
But these behaviour is not correct! Driver can change only image sizes
in VIDIOC_TRY_FMT ctl, or not? In other cases driver have to return error
value, or?
I gather from czech translation these article: http://lwn.net/Articles/227533/
So, if driver can change pixel format in VIDIOC_TRY_FMT ctl, bug is in libv4l,
if can't, bug is in own driver.
If is bug in own driver, in attachment is patch for solve this problem ;-)
Btw Erik, file gspca.c is your work, or it is download from gspca framework?
Regards, Lukas
try_fmt.patch
Description: Binary data
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ M560x-driver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel
