aboutsummaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2011-03-22[media] s5p-fimc: Prevent oops when i2c adapter is not availableSylwester Nawrocki1-1/+1
Prevent invalid pointer dereference on error path. Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] s5p-fimc: fix ISR and buffer handling for fimc-captureSungchun Kang2-58/+45
In some cases fimc H/W did not stop although there were no output buffers available. So the capture deactivation interrupt routine is modified and the state of ST_CAPT_RUN is cleared only in the LAST-IRQ call. After LAST-IRQ is generated, H/W pointer will be skipped by 1 frame. (reference by user manual) So, S/W pointer should be increased too. Reviewed-by Jonghun Han <[email protected]> Signed-off-by: Sungchun Kang <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] Force xc5000 firmware loading for NetUP Dual DVB-T/C CI RF cardAbylay Ospan1-1/+4
Two xc5000 tuners connected to same i2c bus. Experiments shows that situation when one tuner is not initialized while other is tuned to channel causes TS errors. Signed-off-by: Abylay Ospan <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] Fix CI code for NetUP Dual DVB-T/C CI RF cardAbylay Ospan1-4/+10
CI reset takes several seconds on some CAM, so there is no need to lock mutex all that time. Also we need not to preserve CI's reset bits in CIBUSCTRL register, they are handled automatically by FPGA. Set it to 0 explicitly in order to not reset wrong CAM. Signed-off-by: Abylay Ospan <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] stv0367: implement uncorrected blocks counterAbylay Ospan1-1/+19
Signed-off-by: Abylay Ospan <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] stv0367: change default value for AGC registerAbylay Ospan1-2/+2
Signed-off-by: Abylay Ospan <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] cx23885: Altera FPGA CI interface reworkedAbylay Ospan1-9/+9
It decreases I2C traffic. Signed-off-by: Abylay Ospan <[email protected]> Signed-off-by: Igor M. Liplianin <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] cpia2: Fix some gcc 4.6 warnings when debug is disabledMauro Carvalho Chehab1-20/+14
cpia2_core.c:529:14: warning: variable 'dir' set but not used [-Wunused-but-set-variable] cpia2_core.c:526:5: warning: variable 'block_index' set but not used [-Wunused-but-set-variable] Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] several drivers: Fix a few gcc 4.6 warningsMauro Carvalho Chehab3-9/+0
au0828-dvb.c:99:6: warning: variable 'ptr' set but not used [-Wunused-but-set-variable] au0828-video.c:1180:25: warning: variable 'maxheight' set but not used [-Wunused-but-set-variable] au0828-video.c:1180:15: warning: variable 'maxwidth' set but not used [-Wunused-but-set-variable] bttv-input.c:196:16: warning: variable 'current_jiffies' set but not used [-Wunused-but-set-variable] Those variables are not used at all, so just remove them. Cc: Steven Toth <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] altera-ci.h: add missing inlineHans Verkuil1-1/+1
Functions defined in a header should be static inline. This prevents compile warnings like: 'altera_ci_tuner_reset' defined but not used (Actually appeared in the media backwards compatibility build). Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] cx88-alsa: fix compiler warningHans Verkuil1-1/+1
drivers/media/video/cx88/cx88-alsa.c: In function 'cx88_audio_initdev': drivers/media/video/cx88/cx88-alsa.c:881:20: warning: 'core' may be used uninitialized in this function The compiler doesn't understand that snd_cx88_create fills in the core pointer. So just initialize it to NULL. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] fmdrv_common.c: fix compiler warningHans Verkuil1-2/+2
drivers/media/radio/wl128x/fmdrv_common.c: In function 'recv_tasklet': drivers/media/radio/wl128x/fmdrv_common.c:274:4: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int' The result of sizeof() should be printed with %zu. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] altera-ci.c: fix compiler warningsHans Verkuil1-4/+4
drivers/media/video/cx23885/altera-ci.c: In function 'altera_hw_filt_init': drivers/media/video/cx23885/altera-ci.c:671:2: warning: cast from pointer to integer of different size drivers/media/video/cx23885/altera-ci.c: In function 'altera_ci_init': drivers/media/video/cx23885/altera-ci.c:739:2: warning: cast from pointer to integer of different size Use %p instead of 0x%x to print addresses. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] stv0367.c: fix compiler warningHans Verkuil1-1/+1
drivers/media/dvb/frontends/stv0367.c: In function 'stv0367ter_lock_algo': drivers/media/dvb/frontends/stv0367.c:1315:2: warning: cast from pointer to integer of different size Use %p to print addresses instead of 0x%x. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] tuner-xc2028.c: fix compile warningHans Verkuil1-2/+2
drivers/media/common/tuners/tuner-xc2028.c: In function 'generic_set_freq': drivers/media/common/tuners/tuner-xc2028.c:936:15: warning: comparison between 'enum tuner_mode' and 'enum v4l2_tuner_type' Argument type was enum tuner_mode, but should have been enum v4l2_tuner_type. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] omap3isp: Add set performance callback in isp platform dataLaurent Pinchart2-15/+7
Replace the omap_pm_set_min_bus_tput() with a callback to board code. This makes the omap3isp driver compilable as a module, and lets board code manage OMAP PM details depending on board requirements. Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] omap3isp: Kconfig and MakefileLaurent Pinchart3-0/+28
Add the OMAP3 ISP driver to the kernel build system. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] omap3isp: StatisticsDavid Cohen7-0/+2741
The OMAP3 ISP statistics entities compute histogram and H3A statistics information from capture images. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: David Cohen <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Vimarsh Zutshi <[email protected]> Signed-off-by: Tuukka Toivonen <[email protected]> Signed-off-by: Sergio Aguirre <[email protected]> Signed-off-by: Antti Koskipaa <[email protected]> Signed-off-by: Ivan T. Ivanov <[email protected]> Signed-off-by: RaniSuneela <[email protected]> Signed-off-by: Atanas Filipov <[email protected]> Signed-off-by: Gjorgji Rosikopulos <[email protected]> Signed-off-by: Hiroshi DOYU <[email protected]> Signed-off-by: Nayden Kanchev <[email protected]> Signed-off-by: Phil Carmody <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: Dominic Curran <[email protected]> Signed-off-by: Ilkka Myllyperkio <[email protected]> Signed-off-by: Pallavi Kulkarni <[email protected]> Signed-off-by: Vaibhav Hiremath <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] omap3isp: CCDC, preview engine and resizerLaurent Pinchart10-0/+6877
The OMAP3 ISP CCDC, preview engine and resizer entities perform image processing and scaling. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: David Cohen <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Vimarsh Zutshi <[email protected]> Signed-off-by: Tuukka Toivonen <[email protected]> Signed-off-by: Sergio Aguirre <[email protected]> Signed-off-by: Antti Koskipaa <[email protected]> Signed-off-by: Ivan T. Ivanov <[email protected]> Signed-off-by: RaniSuneela <[email protected]> Signed-off-by: Atanas Filipov <[email protected]> Signed-off-by: Gjorgji Rosikopulos <[email protected]> Signed-off-by: Hiroshi DOYU <[email protected]> Signed-off-by: Nayden Kanchev <[email protected]> Signed-off-by: Phil Carmody <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: Dominic Curran <[email protected]> Signed-off-by: Ilkka Myllyperkio <[email protected]> Signed-off-by: Pallavi Kulkarni <[email protected]> Signed-off-by: Vaibhav Hiremath <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] omap3isp: CCP2/CSI2 receiversLaurent Pinchart6-0/+3075
The OMAP3 ISP CCP2 and CSI2 receivers provide an interface to connect serial MIPI sensors to the device. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: David Cohen <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Vimarsh Zutshi <[email protected]> Signed-off-by: Tuukka Toivonen <[email protected]> Signed-off-by: Sergio Aguirre <[email protected]> Signed-off-by: Antti Koskipaa <[email protected]> Signed-off-by: Ivan T. Ivanov <[email protected]> Signed-off-by: RaniSuneela <[email protected]> Signed-off-by: Atanas Filipov <[email protected]> Signed-off-by: Gjorgji Rosikopulos <[email protected]> Signed-off-by: Hiroshi DOYU <[email protected]> Signed-off-by: Nayden Kanchev <[email protected]> Signed-off-by: Phil Carmody <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: Dominic Curran <[email protected]> Signed-off-by: Ilkka Myllyperkio <[email protected]> Signed-off-by: Pallavi Kulkarni <[email protected]> Signed-off-by: Vaibhav Hiremath <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] omap3isp: Video devices and buffers queueLaurent Pinchart4-0/+2806
The OMAP3 ISP video devices and buffers queue modules implement the V4L2 API on all the ISP video nodes. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: David Cohen <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Vimarsh Zutshi <[email protected]> Signed-off-by: Tuukka Toivonen <[email protected]> Signed-off-by: Sergio Aguirre <[email protected]> Signed-off-by: Antti Koskipaa <[email protected]> Signed-off-by: Ivan T. Ivanov <[email protected]> Signed-off-by: RaniSuneela <[email protected]> Signed-off-by: Atanas Filipov <[email protected]> Signed-off-by: Gjorgji Rosikopulos <[email protected]> Signed-off-by: Hiroshi DOYU <[email protected]> Signed-off-by: Nayden Kanchev <[email protected]> Signed-off-by: Phil Carmody <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: Dominic Curran <[email protected]> Signed-off-by: Ilkka Myllyperkio <[email protected]> Signed-off-by: Pallavi Kulkarni <[email protected]> Signed-off-by: Vaibhav Hiremath <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] omap3isp: OMAP3 ISP coreSakari Ailus3-0/+4239
The Image Signal Processor provides the system interface and the processing capability to connect RAW or YUV image-sensor modules to the OMAP3. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: David Cohen <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Vimarsh Zutshi <[email protected]> Signed-off-by: Tuukka Toivonen <[email protected]> Signed-off-by: Sergio Aguirre <[email protected]> Signed-off-by: Antti Koskipaa <[email protected]> Signed-off-by: Ivan T. Ivanov <[email protected]> Signed-off-by: RaniSuneela <[email protected]> Signed-off-by: Atanas Filipov <[email protected]> Signed-off-by: Gjorgji Rosikopulos <[email protected]> Signed-off-by: Hiroshi DOYU <[email protected]> Signed-off-by: Nayden Kanchev <[email protected]> Signed-off-by: Phil Carmody <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: Dominic Curran <[email protected]> Signed-off-by: Ilkka Myllyperkio <[email protected]> Signed-off-by: Pallavi Kulkarni <[email protected]> Signed-off-by: Vaibhav Hiremath <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: subdev: Generic ioctl supportLaurent Pinchart1-1/+1
Instead of returning an error when receiving an ioctl call with an unsupported command, forward the call to the subdev core::ioctl handler. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: v4l2_subdev userspace crop APIAntti Koskipaa1-0/+26
This patch adds the VIDIOC_SUBDEV_S_CROP and G_CROP ioctls to the userland API. CROPCAP is not implemented because it's redundant. Signed-off-by: Antti Koskipaa <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: v4l2_subdev userspace frame interval APILaurent Pinchart1-0/+16
The three new ioctl VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL, VIDIOC_SUBDEV_G_FRAME_INTERVAL and VIDIOC_SUBDEV_S_FRAME_INTERVAL can be used to enumerate and configure a subdev's frame rate from userspace. Two new video::g/s_frame_interval subdev operations are introduced to support those ioctls. The existing video::g/s_parm operations are deprecated and shouldn't be used anymore. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: v4l2_subdev userspace format APILaurent Pinchart1-0/+49
Add a userspace API to get, set and enumerate the media format on a subdev pad. The format at the output of a subdev usually depends on the format at its input(s). The try format operation is thus not suitable for probing format at individual pads, as it can't modify the device state and thus can't remember the format tried at the input to compute the output format. To fix the problem, pass an extra argument to the get/set format operations to select the 'try' or 'active' format. The try format is used when probing the subdev. Setting the try format must not change the device configuration but can store data for later reuse. Data storage is provided at the file-handle level so applications probing the subdev concurently won't interfere with each other. The active format is used when configuring the subdev. It's identical to the format handled by the usual get/set operations. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: subdev: Add new file operationsLaurent Pinchart1-3/+13
V4L2 sub-devices store pad formats and crop settings in the file handle. To let drivers initialize those settings properly, add an open operation that is called when the subdev is opened as well as a corresponding close operation. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: Create v4l2 subdev file handle structureStanimir Varbanov2-27/+67
Used for storing subdev information per file handle and hold V4L2 file handle. Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Antti Koskipaa <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8Laurent Pinchart5-12/+12
For consistency with the V4L2_MBUS_FMT_Y10_1X10 format. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: Make v4l2_subdev inherit from media_entityLaurent Pinchart2-6/+58
V4L2 subdevices are media entities. As such they need to inherit from (include) the media_entity structure. When registering/unregistering the subdevice, the media entity is automatically registered/unregistered. The entity is acquired on device open and released on device close. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: Make video_device inherit from media_entityLaurent Pinchart1-4/+45
V4L2 devices are media entities. As such they need to inherit from (include) the media_entity structure. When registering/unregistering the device, the media entity is automatically registered/unregistered. The entity is acquired on device open and released on device close. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] v4l: Add a media_device pointer to the v4l2_device structureLaurent Pinchart1-6/+7
The pointer will later be used to register/unregister media entities when registering/unregistering a v4l2_subdev or a video_device. With the introduction of media devices, device drivers need to store a pointer to a driver-specific structure in the device's drvdata. v4l2_device can't claim ownership of the drvdata anymore. To maintain compatibility with drivers that rely on v4l2_device storing a pointer to itself in the device's drvdata, v4l2_device_register() will keep doing so if the drvdata is NULL. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Pipelines and media streamsLaurent Pinchart1-0/+73
Drivers often need to associate pipeline objects to entities, and to take stream state into account when configuring entities and links. The pipeline API helps drivers manage that information. When starting streaming, drivers call media_entity_pipeline_start(). The function marks all entities connected to the given entity through enabled links, either directly or indirectly, as streaming. Similarly, when stopping the stream, drivers call media_entity_pipeline_stop(). The media_entity_pipeline_start() function takes a pointer to a media pipeline and stores it in every entity in the graph. Drivers should embed the media_pipeline structure in higher-level pipeline structures and can then access the pipeline through the media_entity structure. Link configuration will fail with -EBUSY by default if either end of the link is a streaming entity, unless the link is marked with the MEDIA_LNK_FL_DYNAMIC flag. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Links setupLaurent Pinchart2-0/+200
Create the following ioctl and implement it at the media device level to setup links. - MEDIA_IOC_SETUP_LINK: Modify the properties of a given link The only property that can currently be modified is the ENABLED link flag to enable/disable a link. Links marked with the IMMUTABLE link flag can not be enabled or disabled. Enabling or disabling a link has effects on entities' use count. Those changes are automatically propagated through the graph. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Entities, pads and links enumerationLaurent Pinchart1-0/+123
Create the following two ioctls and implement them at the media device level to enumerate entities, pads and links. - MEDIA_IOC_ENUM_ENTITIES: Enumerate entities and their properties - MEDIA_IOC_ENUM_LINKS: Enumerate all pads and links for a given entity Entity IDs can be non-contiguous. Userspace applications should enumerate entities using the MEDIA_ENT_ID_FLAG_NEXT flag. When the flag is set in the entity ID, the MEDIA_IOC_ENUM_ENTITIES will return the next entity with an ID bigger than the requested one. Only forward links that originate at one of the entity's source pads are returned during the enumeration process. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Media device information queryLaurent Pinchart1-0/+57
Create the following ioctl and implement it at the media device level to query device information. - MEDIA_IOC_DEVICE_INFO: Query media device information The ioctl and its data structure are defined in the new kernel header linux/media.h available to userspace applications. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Entity use countLaurent Pinchart2-0/+47
Due to the wide differences between drivers regarding power management needs, the media controller does not implement power management. However, the media_entity structure includes a use_count field that media drivers can use to track the number of users of every entity for power management needs. The use_count field is owned by media drivers and must not be touched by entity drivers. Access to the field must be protected by the media device graph_mutex lock. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Entity graph traversalSakari Ailus1-0/+115
Add media entity graph traversal. The traversal follows enabled links by depth first. Traversing graph backwards is prevented by comparing the next possible entity in the graph with the previous one. Multiply connected graphs are thus not supported. Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Vimarsh Zutshi <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Entities, pads and linksLaurent Pinchart3-1/+204
As video hardware pipelines become increasingly complex and configurable, the current hardware description through v4l2 subdevices reaches its limits. In addition to enumerating and configuring subdevices, video camera drivers need a way to discover and modify at runtime how those subdevices are connected. This is done through new elements called entities, pads and links. An entity is a basic media hardware building block. It can correspond to a large variety of logical blocks such as physical hardware devices (CMOS sensor for instance), logical hardware devices (a building block in a System-on-Chip image processing pipeline), DMA channels or physical connectors. A pad is a connection endpoint through which an entity can interact with other entities. Data (not restricted to video) produced by an entity flows from the entity's output to one or more entity inputs. Pads should not be confused with physical pins at chip boundaries. A link is a point-to-point oriented connection between two pads, either on the same entity or on different entities. Data flows from a source pad to a sink pad. Links are stored in the source entity. To make backwards graph walk faster, a copy of all links is also stored in the sink entity. The copy is known as a backlink and is only used to help graph traversal. The entity API is made of three functions: - media_entity_init() initializes an entity. The caller must provide an array of pads as well as an estimated number of links. The links array is allocated dynamically and will be reallocated if it grows beyond the initial estimate. - media_entity_cleanup() frees resources allocated for an entity. It must be called during the cleanup phase after unregistering the entity and before freeing it. - media_entity_create_link() creates a link between two entities. An entry in the link array of each entity is allocated and stores pointers to source and sink pads. When a media device is unregistered, all its entities are unregistered automatically. The code is based on Hans Verkuil <[email protected]> initial work. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Media deviceLaurent Pinchart2-1/+101
The media_device structure abstracts functions common to all kind of media devices (v4l2, dvb, alsa, ...). It manages media entities and offers a userspace API to discover and configure the media device internal topology. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22[media] media: Media device node supportLaurent Pinchart3-0/+339
The media_devnode structure provides support for registering and unregistering character devices using a dynamic major number. Reference counting is handled internally, making device drivers easier to write without having to solve the open/disconnect race condition issue over and over again. The code is based on video/v4l2-dev.c. [[email protected]: Remove linux/smp_lock.h include to not break compilation on bisect] Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-03-22video: Fix EDID macros H_SYNC_WIDTH and H_SYNC_OFFSETMartin Decky1-2/+2
The macros for getting the values for horizontal sync width and offset do not respect the EDID specification. Both these values are 10 bit values according to [1], not 6 bit values. The lower 8 bits are stored in byte 8 and byte 9 of the DTD respectively, while two additional bits for each value are stored in byte 11. The original macros just slammed the bits together. Although the original macros usually worked fine because the higher two bits are rarely used, it can cause severe problems on plasma panels running at 1920x1080 @ 50 Hz with drivers that rely on the correct parsing of the EDID data by fbmon.c (e.g. udlfb). The patch should apply cleanly to both the fbdev-2.6.git branch and linux-next.git branch. [1] VESA Enhanced Extended Display Identification Data Standard, Release A, Revision 2, page 34, notes 7 & 8, VESA, Sep 2006 Signed-off-by: Martin Decky <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2011-03-22fbcon: Bugfix soft cursor detection in Tile BlittingHenry Nestler1-1/+1
Use mask 0x10 for "soft cursor" detection on in function tile_cursor. (Tile Blitting Operation in framebuffer console). The old mask 0x01 for vc_cursor_type detects CUR_NONE, CUR_LOWER_THIRD and every second mode value as "software cursor". This hides the cursor for these modes (cursor.mode = 0). But, only CUR_NONE or "software cursor" should hide the cursor. See also 0x10 in functions add_softcursor, bit_cursor and cw_cursor. Signed-off-by: Henry Nestler <[email protected]> Cc: [email protected] Signed-off-by: Paul Mundt <[email protected]>
2011-03-22video: add missing framebuffer_release in error pathaxel lin3-0/+3
This patch fixes a memory leak in the error path. Signed-off-by: Axel Lin <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2011-03-22block: fix non-atomic access to genhd inflight structuresShaohua Li1-3/+4
After the stack plugging introduction, these are called lockless. Ensure that the counters are updated atomically. Signed-off-by: Shaohua Li<[email protected]> Signed-off-by: Jens Axboe <[email protected]>
2011-03-22video: metronomefb: add __devexit_p around reference to metronomefb_removeaxel lin1-1/+1
metronomefb_remove is marked __devexit, thus add __devexit_p around reference to metronomefb_remove. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2011-03-22video: hecubafb: add __devexit_p around reference to hecubafb_removeaxel lin1-1/+1
hecubafb_remove is marked __devexit, thus add __devexit_p around reference to hecubafb_remove. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2011-03-22drivers:video:aty:radeon_base Fix typo occationally to occasionallyJustin P. Mattock2-2/+2
The below patch fixes a typo occationally to occasionally. Signed-off-by: Justin P. Mattock <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2011-03-22atmel_lcdfb: add fb_blank functionAndreas Bießmann1-0/+24
Signed-off-by: Andreas Bießmann <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2011-03-22atmel_lcdfb: implement inverted contrast pwmAndreas Bießmann1-1/+6
This patch introduces lcdc->lcdcon_pol_negative which set CONTRAST_CTR register to inverted polarity. Signed-off-by: Andreas Bießmann <[email protected]> Signed-off-by: Paul Mundt <[email protected]>