2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00
linux-next/drivers/media/platform
Junghak Sung 2d7007153f [media] media: videobuf2: Restructure vb2_buffer
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 {
        <snip>
        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 {
        <snip>
        unsigned int            index;
        unsigned int            type;
        unsigned int            memory;
        unsigned int            num_planes;
        struct vb2_plane        planes[VIDEO_MAX_PLANES];
        <snip>
};

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 <jh1009.sung@samsung.com>
Signed-off-by: Geunyoung Kim <nenggun.kim@samsung.com>
Acked-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Acked-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-10-01 09:04:43 -03:00
..
am437x [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
blackfin [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
coda [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
davinci [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
exynos4-is [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
exynos-gsc [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
marvell-ccic [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
omap media updates for v4.3-rc1 2015-09-11 16:42:39 -07:00
omap3isp [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
s3c-camif [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
s5p-g2d [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
s5p-jpeg [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
s5p-mfc [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
s5p-tv [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
soc_camera [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
sti [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
ti-vpe [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
vivid [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
vsp1 [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
xilinx [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
arv.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
fsl-viu.c [media] fsl-viu: drop format names 2015-08-11 06:59:09 -03:00
Kconfig [media] v4l: omap3isp: Drop platform data support 2015-08-16 13:18:06 -03:00
m2m-deinterlace.c [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
Makefile [media] c8sectpfe: Add Kconfig and Makefile for the driver 2015-08-11 16:08:29 -03:00
mx2_emmaprp.c [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
rcar_jpu.c [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
sh_veu.c [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
sh_vou.c [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
timblogiw.c media: platform: drop owner assignment from platform_drivers 2014-10-20 16:20:44 +02:00
via-camera.c [media] v4l2: replace s_mbus_fmt by set_fmt in bridge drivers 2015-05-01 09:01:16 -03:00
via-camera.h
vim2m.c [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00