30 Dec, 2020

1 commit

  • [ Upstream commit 69baf338fc16a4d55c78da8874ce3f06feb38c78 ]

    Return -EINVAL if invalid bus-type is detected while parsing endpoints.

    Fixes: 26c1126c9b56 ("media: v4l: fwnode: Use media bus type for bus parser selection")
    Signed-off-by: Lad Prabhakar
    Signed-off-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Sasha Levin

    Lad Prabhakar
     

18 Aug, 2020

1 commit

  • With the removal of the legacy g_mbus_config and s_mbus_config video
    operations, the sole users of V4L2_MBUS_* flags are now the newly
    introduced get_mbus_config and set_mbus_config pad operations.

    As the semantic of the new operations differs from the semantic of
    the legacy ones, add a usage note in the v4l2-mediabus.h header to
    specify how to use the flags.

    Also add a TODO note to record that we intend to replace the existing
    flags with fields, to prevent users from mixing conflicting values
    in a single operation call.

    Signed-off-by: Jacopo Mondi
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Jacopo Mondi
     

19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

05 Oct, 2018

3 commits

  • There are several coding style issues at those definitions,
    and the previous patchset added even more.

    Address the trivial ones by first calling:

    ./scripts/checkpatch.pl --strict --fix-inline include/media/v4l2-async.h include/media/v4l2-fwnode.h include/media/v4l2-mediabus.h drivers/media/v4l2-core/v4l2-async.c drivers/media/v4l2-core/v4l2-fwnode.c

    and then manually adjusting the style where needed.

    Acked-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • In case the device supports multiple video bus types on an endpoint, the
    V4L2 fwnode framework attempts to detect the type based on the available
    information. This wasn't working really well, and sometimes could lead to
    the V4L2 fwnode endpoint struct as being mishandled between the bus types.

    Default to Bt.656 if no properties suggesting a bus type are found.

    Signed-off-by: Sakari Ailus
    Tested-by: Steve Longerbeam
    Tested-by: Jacopo Mondi
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     
  • The CSI-2 bus may use either D-PHY or C-PHY. Make this visible in media
    bus enum.

    Signed-off-by: Sakari Ailus
    Tested-by: Steve Longerbeam
    Tested-by: Jacopo Mondi
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     

25 Jul, 2018

1 commit


19 Dec, 2017

1 commit

  • Using enums makes easier to document, as it can use kernel-doc
    markups. It also allows cross-referencing, with increases the
    kAPI readability.

    Please notice that now cx88_querycap() has to have a default for
    the VFL type, as there are more types than supported by the driver.

    Acked-By: Mike Isely
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

18 Dec, 2017

1 commit


20 Jul, 2017

2 commits


22 Aug, 2015

1 commit


05 Jun, 2015

1 commit

  • In the past the transfer function was implied by the colorspace. However,
    it is an independent entity in its own right. Add support for explicitly
    choosing the transfer function.

    This change will allow us to represent linear RGB (as is used by openGL), and
    it will make it easier to work with decoded video material since most codecs
    store the transfer function as a separate property as well.

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

    Hans Verkuil
     

02 Dec, 2014

1 commit


15 Nov, 2014

1 commit


24 Aug, 2013

1 commit


24 Sep, 2011

1 commit

  • FIELD signal is used for indicating frame field type to the frame grabber
    in interlaced scan mode, as specified in ITU-R BT.601 standard.
    In normal operation mode FIELD = 0 selects Field1 (odd) and FIELD = 1
    selects Field2 (even). When the FIELD signal is inverted it's the other
    way around.

    Add corresponding flags for configuring the FIELD signal polarity,
    V4L2_MBUS_FIELD_EVEN_HIGH for the standard (non-inverted) case and
    V4L2_MBUS_FIELD_EVEN_LOW for inverted case.

    Also add a comment about usage of V4L2_MBUS_[HV]SYNC* flags for
    the hardware that uses [HV]REF signals.

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Acked-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     

28 Jul, 2011

1 commit

  • Add media bus configuration types and two subdev operations to get
    supported mediabus configurations and to set a specific configuration.
    Subdevs can support several configurations, e.g., they can send video data
    on 1 or several lanes, can be configured to use a specific CSI-2 channel,
    in such cases subdevice drivers return bitmasks with all respective bits
    set. When a set-configuration operation is called, it has to specify a
    non-ambiguous configuration.

    Signed-off-by: Stanimir Varbanov
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Guennadi Liakhovetski
     

22 Mar, 2011

1 commit


21 Oct, 2010

3 commits


03 Aug, 2010

2 commits


01 Jun, 2010

2 commits


16 Dec, 2009

1 commit

  • Video subdevices, like cameras, decoders, connect to video bridges over
    specialised busses. Data is being transferred over these busses in various
    formats, which only loosely correspond to fourcc codes, describing how video
    data is stored in RAM. This is not a one-to-one correspondence, therefore we
    cannot use fourcc codes to configure subdevice output data formats. This patch
    adds codes for several such on-the-bus formats and an API, similar to the
    familiar .s_fmt(), .g_fmt(), .try_fmt(), .enum_fmt() API for configuring those
    codes. After all users of the old API in struct v4l2_subdev_video_ops are
    converted, it will be removed. Also add helper routines to support generic
    pass-through mode for the soc-camera framework.

    create mode 100644 drivers/media/video/soc_mediabus.c
    create mode 100644 include/media/soc_mediabus.h
    create mode 100644 include/media/v4l2-mediabus.h

    Signed-off-by: Guennadi Liakhovetski
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Guennadi Liakhovetski