24 Sep, 2018

1 commit

  • Several CEC functions are actually specific for use with receivers,
    i.e. they should be part of the V4L2 subsystem, not CEC.

    These functions deal with validating and modifying EDIDs for (HDMI)
    receivers, and they do not actually have anything to do with the CEC
    subsystem and whether or not CEC is enabled. The problem was that if
    the CEC_CORE config option was not set, then these functions would
    become stubs, but that's not right: they should always be valid.

    So replace the cec_ prefix by v4l2_ and move them to v4l2-dv-timings.c.
    Update all drivers that call these accordingly.

    Signed-off-by: Hans Verkuil
    Reported-by: Lars-Peter Clausen
    Cc: # for v4.17 and up
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

31 Aug, 2018

1 commit

  • A new helper function was introduced to facilitate the calculation
    of time per frame value whenever we have access to the full
    v4l2_dv_timings structure.

    This should be used only for receivers and only when there is
    enough accuracy in the measured pixel clock value as well as in
    the horizontal/vertical values.

    Signed-off-by: Jose Abreu
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Jose Abreu
     

23 Feb, 2018

1 commit


15 Feb, 2018

1 commit


18 Dec, 2017

1 commit


17 Nov, 2016

1 commit


09 Sep, 2016

1 commit


23 Jul, 2016

1 commit


03 Dec, 2015

1 commit


18 Nov, 2015

1 commit

  • Added a helper function to check necessary conditions required for
    reduced fps. The reduced fps is supported for CVT and CEA861 timings.
    CVT supports reduced fps only if reduced blanking v2 (indicated by
    vsync = 8) is true. Whereas CEA861 supports reduced fps if
    V4L2_DV_FL_CAN_REDUCE_FPS flag is true.

    Signed-off-by: Prashant Laddha
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Prashant Laddha
     

01 Oct, 2015

2 commits

  • Fix this warning:
    include/media/v4l2-dv-timings.h:29: warning: cannot understand function prototype: 'const struct v4l2_dv_timings v4l2_dv_timings_presets[]; '

    Unfortunately, currently, it seems that doc-nano doesn't support
    documenting extern static vars.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Fix the following 'make htmldocs' warnings:

    .//include/media/v4l2-dv-timings.h:147: warning: No description found for parameter 'frame_height'
    .//include/media/v4l2-dv-timings.h:147: warning: No description found for parameter 'hfreq'
    .//include/media/v4l2-dv-timings.h:147: warning: No description found for parameter 'vsync'
    .//include/media/v4l2-dv-timings.h:147: warning: No description found for parameter 'active_width'
    .//include/media/v4l2-dv-timings.h:147: warning: No description found for parameter 'polarities'
    .//include/media/v4l2-dv-timings.h:147: warning: No description found for parameter 'interlaced'
    .//include/media/v4l2-dv-timings.h:147: warning: No description found for parameter 'fmt'
    .//include/media/v4l2-dv-timings.h:171: warning: No description found for parameter 'frame_height'
    .//include/media/v4l2-dv-timings.h:171: warning: No description found for parameter 'hfreq'
    .//include/media/v4l2-dv-timings.h:171: warning: No description found for parameter 'vsync'
    .//include/media/v4l2-dv-timings.h:171: warning: No description found for parameter 'polarities'
    .//include/media/v4l2-dv-timings.h:171: warning: No description found for parameter 'interlaced'
    .//include/media/v4l2-dv-timings.h:171: warning: No description found for parameter 'aspect'
    .//include/media/v4l2-dv-timings.h:171: warning: No description found for parameter 'fmt'
    .//include/media/v4l2-dv-timings.h:184: warning: No description found for parameter 'hor_landscape'
    .//include/media/v4l2-dv-timings.h:184: warning: No description found for parameter 'vert_portrait'

    Signed-off-by: Geliang Tang
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Geliang Tang
     

22 Aug, 2015

1 commit


06 Jul, 2015

1 commit

  • Added support for reduced blanking version 2 (RB v2) in cvt timings.
    Standard specifies a fixed vsync pulse of 8 lines to indicate RB v2
    timings. Vertical back porch is fixed at 6 lines and vertical front
    porch is remainder of vertical blanking time.

    For RB v2, horizontal blanking is fixed at 80 pixels. Horizontal sync
    is fixed at 32. All horizontal timing counts (active pixels, front,
    back porches) can be specified upto a precision of 1.

    RB v2 allows for non standard aspect ratios. In RB v2 vsync does not
    indicate aspect ratio. In absence of aspect ratio v4l2_detect_cvt()
    cannot calculate image width from image height. Hence extending the
    v4l2_detect_cvt() to pass image width in case of RB v2.

    Signed-off-by: Prashant Laddha
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Prashant Laddha
     

10 Jun, 2015

1 commit

  • Extend detect_cvt/gtf API to indicate the format type (interlaced
    or progressive). In case of interlaced, the vertical front and back
    porch and vsync values for both (odd,even) fields are considered to
    derive image height. Populated vsync, vertical front, back porch
    values in bt timing structure for even and odd fields and updated
    the flags appropriately.

    Also modified the functions calling the detect_cvt/gtf(). As of now
    these functions are calling detect_cvt/gtf() with interlaced flag
    set to false.

    Cc: Martin Bugge
    Cc: Mats Randgaard
    Cc: Laurent Pinchart
    Signed-off-by: Prashant Laddha
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Prashant Laddha
     

24 Aug, 2013

5 commits


18 Aug, 2013

2 commits