summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/zr364xx.c
AgeCommit message (Collapse)Author
2008-08-18zr364xx: handle video exclusive open internalyAntoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Count the users and do not use video_exclusive_open() anymore. Priority: normal Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2008-08-18zr364xx: remove BKLAntoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Remove the Big Kernel Lock from zr364xx driver after pushdown. Now using an internal locking mecanism on open(). Priority: normal Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2008-07-30v4l: move BKL down to the driver level.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The BKL is now moved from the video_open function in v4l2-dev.c to the various drivers. It seems about a third of the drivers already has a lock of some sort protecting the open(), another third uses video_exclusive_open (yuck!) and the last third required adding the BKL in their open function. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-26v4l2-dev: remove unused type and type2 field from video_deviceHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The type and type2 fields were unused and so could be removed. Instead add a vfl_type field that contains the type of the video device. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-21Remove obsolete owner field from video_device struct.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> According to an old comment this should have been removed in 2.6.15. Better late than never... Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-21videodev: move all ioctl callbacks to a new v4l2_ioctl_ops structHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> All ioctl callbacks are now stored in a new v4l2_ioctl_ops struct. Drivers fill in a const struct v4l2_ioctl_ops and video_device just contains a const pointer to it. This ensures a clean separation between the const ops struct and the non-const video_device struct. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-20videodev: move some functions from v4l2-dev.h to v4l2-common.h or v4l2-ioctl.hHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The functions in a header should not belong to another module. The prio functions belong to v4l2-common.c, so move them to v4l2-common.h. The ioctl functions belong to v4l2-ioctl.c, so create a new v4l2-ioctl.h header and move those functions to it. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-08v4l-dvb: remove support for kernels < 2.6.16Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Phase 4 removes the compatibility support for kernels < 2.6.16. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-05-28videodev: renamed the vidioc_*_fmt_* callbacksHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The naming for the callbacks that handle the VIDIOC_ENUM_FMT and VIDIOC_S/G/TRY_FMT ioctls was very confusing. Renamed it to match the v4l2_buf_type name. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-04-15Sync some small differences from kernel treeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-27[PATCH] static memoryDouglas Schilling Landgraf
From: Douglas Schilling Landgraf <dougsland@gmail.com> - Static memory is always initialized with 0. - Replaced in some cases C99 comments for /* */ Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
2008-01-25zr364xx: add support for Creative DiVi CAM 516Antoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2008-01-25zr364xx: add support for Pentax Optio 50Antoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2007-10-29zr364: make file_operations constDouglas Schilling Landgraf
From: Douglas Schilling Landgraf <dougsland@gmail.com> zr364: make file_operations const Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
2007-06-25zr364xx: add support for Trust Powerc@m 970ZAntoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Add Trust Powerc@m 970Z (0x06d6:0x003b) to the list of supported devices. Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2007-05-20zr364xx: fix return valuesroyale@royale
From: Akinobu Mita <akinobu.mita@gmail.com> This patch fixes several return value related problems in zr364xx. - return -ENOMEM instead of -ENODEV on out of memory - zr364xx checks video_register_device() error only when its return value is -1. But video_register_device() doesn't always return -1 on error. - If usb_register() returns error, module_init() wrongly returns 1: retval = usb_register(&zr364xx_driver) < 0; ... return retval; And it allows the module to be loaded. Because sys_init_module() doesn't see positive return value as error. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2007-03-07zr364xx: Use kernel's byte-swapping functionTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Some code to swap bytes wasn't using the swab16() function that the kernel provides for this. Make use of it, which results in more efficient code. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Antoine Jacquet <royale@zerezo.com>
2007-03-05Fix compilation issue with zr364xx when V4L1 is disabledAntoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Add a missing header to fix compilation issue in the zr364xx driver when CONFIG_VIDEO_V4L1 and CONFIG_VIDEO_V4L1_COMPAT are not set. Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2007-02-27Update zr364xx V4L2 driverMauro Carvalho Chehab
From: Antoine Jacquet <royale@zerezo.com> I did some change on the zr364xx driver following your comments: * I replaced hardcoded values for initialization methods, unfortunately I don't have nicer names to give for now. * I removed the DBG() on all ioctl2 functions and used the .debug var instead. * Following a comment on linux-usb-devel I misunderstood, I added an endianness test which was an error, so I removed it (the order of the bytes in the JPEG header should not depend on endianness). Signed-off-by: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-19compat: Fix compat stuff for usbvision and zr364xxTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> compat.h was missing from usbvideo-i2c.c and zr364xx.c zr364xx.c needed the struct semaphore -> struct mutex compat check. Added an old i2c id to compat.h. These could be added to the Hg copy of linux/i2c-id.h instead? There's just this one so far. zr364xx needs 2.6.15 because of vm_insert_page(), so add to versions.txt Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-02-19zr364xx: Automatic whitespace cleanupTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> File wasn't passed through whitespace script when it was checked in. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-02-18USB: add zr364xx V4L2 driverMauro Carvalho Chehab
From: Antoine Jacquet <royale@zerezo.com> This patch adds a V4L2 driver giving support for USB webcams based on the zr364xx chipsets. Signed-off-by: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>