09 Jul, 2016
1 commit
-
Stop using alloc_ctx and just fill in the device pointer.
Signed-off-by: Hans Verkuil
Acked-by: Lad, Prabhakar
Cc: Scott Jiang
Acked-by: Philipp Zabel
Signed-off-by: Mauro Carvalho Chehab
01 Oct, 2015
1 commit
-
Remove v4l2 stuff - v4l2_buf, v4l2_plane - from struct vb2_buffer.
Add new member variables - bytesused, length, offset, userptr, fd,
data_offset - to struct vb2_plane in order to cover all information
of v4l2_plane.
struct vb2_plane {
unsigned int bytesused;
unsigned int length;
union {
unsigned int offset;
unsigned long userptr;
int fd;
} m;
unsigned int data_offset;
}Replace v4l2_buf with new member variables - index, type, memory - which
are common fields for buffer management.
struct vb2_buffer {
unsigned int index;
unsigned int type;
unsigned int memory;
unsigned int num_planes;
struct vb2_plane planes[VIDEO_MAX_PLANES];
};v4l2 specific fields - flags, field, timestamp, timecode,
sequence - are moved to vb2_v4l2_buffer in videobuf2-v4l2.c
struct vb2_v4l2_buffer {
struct vb2_buffer vb2_buf;__u32 flags;
__u32 field;
struct timeval timestamp;
struct v4l2_timecode timecode;
__u32 sequence;
};Signed-off-by: Junghak Sung
Signed-off-by: Geunyoung Kim
Acked-by: Seung-Woo Kim
Acked-by: Inki Dae
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
03 Apr, 2015
1 commit
-
Embed the video_device struct to simplify the error handling and in
order to (eventually) get rid of video_device_alloc/release.Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
15 Nov, 2014
1 commit
-
In order to have subsytem agnostic media bus format definitions we've
moved media bus definition to include/uapi/linux/media-bus-format.h and
prefixed values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT.Reference new definitions in all platform drivers.
Signed-off-by: Boris Brezillon
Acked-by: Hans Verkuil
Acked-by: Sakari Ailus
Acked-by: Sekhar Nori
Acked-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
11 Nov, 2014
1 commit
-
this patch adds support for vidioc_create_bufs. Along side
remove unneeded member numbuffers.Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
29 Oct, 2014
3 commits
-
Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
this patch uses vb2_is_busy() helper to check if streaming is
actually started, instead of driver managing it.Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
this patch converts the driver to use fh handling provided by the
v4l core instead of driver doing it.Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
27 Aug, 2014
1 commit
-
The fpc_table_addr is used as an unsigned integer that stores
an address. At the Kernel, the proper type for such integers
is unsigned long.This generates lots of warnings when compiling on 64 bits.
Signed-off-by: Mauro Carvalho Chehab
17 Apr, 2014
2 commits
-
This patch migrates the vpfe driver to use v4l2_fh for
priority handling.Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
This patch migrates the vpbe driver to use v4l2_fh for
priority handling. This also fixes v4l2-compliance test.Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
27 Jul, 2013
2 commits
-
Add support for asynchronous subdevice probing, using the v4l2-async API.
The legacy synchronous mode is still supported too, which allows to
gradually update drivers and platforms.Signed-off-by: Lad, Prabhakar
Cc: Guennadi Liakhovetski
Cc: Hans Verkuil
Cc: Laurent Pinchart
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Add support for asynchronous subdevice probing, using the v4l2-async API.
The legacy synchronous mode is still supported too, which allows to
gradually update drivers and platforms.Signed-off-by: Prabhakar Lad
Cc: Guennadi Liakhovetski
Cc: Hans Verkuil
Cc: Laurent Pinchart
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
21 May, 2013
1 commit
-
This patch fixes checkpatch warning to avoid CamelCase.
Signed-off-by: Lad, Prabhakar
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
24 Mar, 2013
1 commit
-
This ioctl is defined as IOW, so pass the argument by value instead of by
reference. I could have chosen to add const instead, but this is 1) easier
to handle in drivers and 2) consistent with the s_std subdev operation.Signed-off-by: Hans Verkuil
Acked-by: Laurent Pinchart
Acked-by: Jonathan Corbet
Acked-by: Guennadi Liakhovetski
Acked-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab
20 Mar, 2013
3 commits
-
Signed-off-by: Hans Verkuil
Acked-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab -
drivers/media/platform/davinci/dm644x_ccdc.c: In function ‘validate_ccdc_param’:
drivers/media/platform/davinci/dm644x_ccdc.c:233:32: warning: comparison between ‘enum ccdc_gama_width’ and ‘enum ccdc_data_size’ [-Wenum-compare]
It took a bit of work, see this thread of an earlier attempt to fix this:
https://patchwork.kernel.org/patch/1923091/
I've chosen not to follow the suggestions in that thread since gamma_width is
really a different property from data_size. What you really want is to know if
gamma_width fits inside data_size and for that you need to translate each
enum into a maximum bit number so you can safely compare the two.
So I put in two static inline translation functions instead, keeping the rest
of the code the same (except for fixing the 'gama' typo).Signed-off-by: Hans Verkuil
Acked-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab -
Remove VPBE_ENC_DV_PRESET (the DV_PRESET API is no longer supported) and
VPBE_ENC_CUSTOM_TIMINGS is renamed to VPBE_ENC_DV_TIMINGS since the old
"CUSTOM_TIMINGS" name is deprecated in favor of "DV_TIMINGS".Signed-off-by: Hans Verkuil
Acked-by: Lad, Prabhakar
Acked-by: Sekhar Nori
Signed-off-by: Mauro Carvalho Chehab
22 Dec, 2012
2 commits
-
The vpbe driver can handle different platforms DM644X, DM36X and
DM355. To differentiate between this platforms venc_type/vpbe_type
was passed as part of platform data which was incorrect. The correct
way to differentiate to handle this case is by passing different
platform names.
This patch creates platform_device_id[] array supporting different
platforms and assigns id_table to the platform driver, and finally
in the probe gets the actual device by using platform_get_device_id()
and gets the appropriate driver data for that platform.
Taking this approach will also make the DT transition easier.Signed-off-by: Lad, Prabhakar
Signed-off-by: Manjunath Hadli
Acked-by: Sekhar Nori
Signed-off-by: Mauro Carvalho Chehab -
Add vpss helper functions to be used in the main driver for setting
hardware parameters.Add interface functions to set sync polarity, interrupt completion and
pageframe size in vpss to be used by the main driver.Signed-off-by: Manjunath Hadli
Signed-off-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab
21 Nov, 2012
2 commits
-
This patch migrates VPBE display driver to videobuf2 framework.
Signed-off-by: Lad, Prabhakar
Signed-off-by: Manjunath Hadli
Signed-off-by: Mauro Carvalho Chehab -
Warnings were generated because of the following commit changed data type for
address pointer
195bbca ARM: 7500/1: io: avoid writeback addressing modes for __raw_ accessors
add __iomem annotation to fix following warnings
drivers/media/platform/davinci/vpbe_osd.c: In function ‘osd_read’:
drivers/media/platform/davinci/vpbe_osd.c:49:2: warning: passing
argument 1 of ‘__raw_readl’ makes pointer from integer without a cast [enabled by default]
arch/arm/include/asm/io.h:104:19: note: expected ‘const volatile
void *’ but argument is of type ‘long unsigned int’
This patch stores the ioremap_nocache() returned address in a
void __iomem * instead of a unsigned long and passes the same to
readl/writel functions which fixes the above warnings.Signed-off-by: Lad, Prabhakar
Signed-off-by: Manjunath Hadli
Acked-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab
06 Oct, 2012
5 commits
-
vpif_display relied on a 1-1 mapping of output and subdev. This is not
necessarily the case. Separate the two. So there is a list of subdevs
and a list of outputs. Each output refers to a subdev and has routing
information. An output does not have to have a subdev.
The initial output for each channel is set to the fist output.
Currently missing is support for associating multiple subdevs with
an output.Signed-off-by: Lad, Prabhakar
Signed-off-by: Manjunath Hadli
Acked-by: Hans Verkuil
Acked-by: Sekhar Nori
Signed-off-by: Mauro Carvalho Chehab -
struct vpif_interface is channel specific, not subdev specific.
Move it to the channel config.Signed-off-by: Hans Verkuil
Acked-by: Sekhar Nori
Acked-by: Lad, Prabhakar
Tested-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab -
Routing information is a property of the input, not of the subdev.
One subdev may provide multiple inputs, each with its own routing
information.Signed-off-by: Hans Verkuil
Acked-by: Sekhar Nori
Acked-by: Lad, Prabhakar
Tested-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab -
Calling a subdev op that isn't implemented will just return -ENOIOCTLCMD
No need to have a flag for that.Signed-off-by: Hans Verkuil
Acked-by: Sekhar Nori
Acked-by: Lad, Prabhakar
Tested-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab -
This patch replaces the preset API by the timings API, and
appropriate changes in board file.Signed-off-by: Hans Verkuil
Signed-off-by: Lad, Prabhakar
Signed-off-by: Manjunath Hadli
Acked-by: Sekhar Nori
Signed-off-by: Mauro Carvalho Chehab
31 Jul, 2012
1 commit
-
add hardware clipping support for VPIF output data. This
is needed as it is possible that the external encoder
might get confused between the FF or 00 which are a part
of the data and that of the SAV or EAV codes.Signed-off-by: Manjunath Hadli
Signed-off-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab
08 Feb, 2012
1 commit
-
remove unnecessary inclusion of machine specific header files mach/dm646x.h,
mach/hardware.h from vpif.h and aslo mach/dm646x.h from vpif_display.c
driver which comes in the way of platform code consolidation.
Add linux/i2c.h header file in vpif_types.h which is required for
building.Signed-off-by: Manjunath Hadli
Cc: Mauro Carvalho Chehab
Cc: LMML
Signed-off-by: Mauro Carvalho Chehab
16 Jan, 2012
1 commit
-
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (655 commits)
[media] revert patch: HDIC HD29L2 DMB-TH USB2.0 reference design driver
mb86a20s: Add a few more register settings at the init seq
mb86a20s: Group registers into the same line
[media] [PATCH] don't reset the delivery system on DTV_CLEAR
[media] [BUG] it913x-fe fix typo error making SNR levels unstable
[media] cx23885: Query the CX25840 during enum_input for status
[media] cx25840: Add support for g_input_status
[media] rc-videomate-m1f.c Rename to match remote controler name
[media] drivers: media: au0828: Fix dependency for VIDEO_AU0828
[media] convert drivers/media/* to use module_platform_driver()
[media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVB
[media] Exynos4 JPEG codec v4l2 driver
[media] doc: v4l: selection: choose pixels as units for selection rectangles
[media] v4l: s5p-tv: mixer: fix setup of VP scaling
[media] v4l: s5p-tv: mixer: add support for selection API
[media] v4l: emulate old crop API using extended crop/compose API
[media] doc: v4l: add documentation for selection API
[media] doc: v4l: add binary images for selection API
[media] v4l: add support for selection api
[media] hd29l2: fix review findings
...
06 Jan, 2012
2 commits
-
This patch implements necessary changes for enabling dm365 and
dm355 hardware for vpbe. The patch contains additional HD mode
support for dm365 (720p60, 1080i30) and appropriate register
modifications based on version numbers.VPBE_VERSION_2 = dm365 specific
VPBE_VERSION_3 = dm355 specificSigned-off-by: Manjunath Hadli
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
This patch implements the core additions to the display driver,
mainly controlling the VENC and other encoders for dm365.
This patch also includes addition of amplifier subdevice to the
vpbe driver and interfacing with venc subdevice.Signed-off-by: Manjunath Hadli
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
03 Dec, 2011
1 commit
-
Move vpif related definitions for capture and display drivers
from dm646x platform header file to vpif_types.h inside
the driver as these definitions are related to driver code
rather than the platform or board.This enables reusing this IP across platforms.
Signed-off-by: Manjunath Hadli
Acked-by: Mauro Carvalho Chehab
Signed-off-by: Sekhar Nori
28 Jul, 2011
4 commits
-
This patch adds the VENC or the Video encoder, which is responsible
for the blending of all source planes and timing generation for Video
modes like NTSC, PAL and other digital outputs. the VENC implementation
currently supports COMPOSITE and COMPONENT outputs and NTSC and PAL
resolutions through the analog DACs. The venc block is implemented
as a subdevice, allowing for additional external and internal encoders
of other kind to plug-in.Signed-off-by: Manjunath Hadli
Acked-by: Muralidharan Karicheri
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
This patch implements the functionality of the OSD block
of the VPBE. The OSD in total supports 4 planes or Video
sources - 2 mainly RGB and 2 Video. The patch implements general
handling of all the planes, with specific emphasis on the Video
plane capabilities as the Video planes are supported through the
V4L2 driver.Signed-off-by: Manjunath Hadli
Acked-by: Muralidharan Karicheri
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
This patch implements the core functionality of the display driver,
mainly controlling the VENC and other encoders, and acting as
the one point interface for the main V4L2 driver. This implements
the core of each of the V4L2 IOCTLs.Signed-off-by: Manjunath Hadli
Acked-by: Muralidharan Karicheri
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
This is the display driver for Texas Instruments's DM644X family
SoC. This patch contains the main implementation of the driver with the
V4L2 interface. The driver implements the streaming model with
support for both kernel allocated buffers and user pointers. It also
implements all of the necessary IOCTLs necessary and supported by the
video display device.Signed-off-by: Manjunath Hadli
Acked-by: Muralidharan Karicheri
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
03 Jan, 2011
1 commit
-
The below patch fixes a typo "diable" to "disable".
Signed-off-by: Justin P. Mattock
Acked-by: Mauro Carvalho Chehab
Signed-off-by: Jiri Kosina
18 May, 2010
1 commit
-
For the devices like AM3517, it is expected that driver clears the
interrupt in ISR. Since this is device spcific, callback function
added to the platform_data.Signed-off-by: Vaibhav Hiremath
Signed-off-by: Muralidharan Karicheri
Signed-off-by: Mauro Carvalho Chehab