09 Jul, 2016

1 commit


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

    Junghak Sung
     

03 Apr, 2015

1 commit


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

    Boris BREZILLON
     

11 Nov, 2014

1 commit


29 Oct, 2014

3 commits


27 Aug, 2014

1 commit


17 Apr, 2014

2 commits


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

    Lad, Prabhakar
     
  • 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

    Lad, Prabhakar
     

21 May, 2013

1 commit


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

    Hans Verkuil
     

20 Mar, 2013

3 commits

  • Signed-off-by: Hans Verkuil
    Acked-by: Lad, Prabhakar
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • 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

    Hans Verkuil
     
  • 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

    Hans Verkuil
     

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

    Lad, Prabhakar
     
  • 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

    Manjunath Hadli
     

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

    Lad, Prabhakar
     
  • 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

    Lad, Prabhakar
     

06 Oct, 2012

5 commits


31 Jul, 2012

1 commit


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

    Manjunath Hadli
     

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
    ...

    Linus Torvalds
     

06 Jan, 2012

2 commits


03 Dec, 2011

1 commit


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

    Manjunath Hadli
     
  • 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

    Manjunath Hadli
     
  • 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

    Manjunath Hadli
     
  • 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

    Manjunath Hadli
     

31 Mar, 2011

1 commit


03 Jan, 2011

1 commit


18 May, 2010

1 commit