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
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
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 foundationthis 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
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 -
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 -
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
25 Jul, 2018
1 commit
-
Parse the newly defined 'data-enable-active' property in parallel
endpoint parsing function.Signed-off-by: Jacopo Mondi
Reviewed-by: Niklas Söderlund
Signed-off-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab
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
18 Dec, 2017
1 commit
-
Instead of using (1 << n) for bits, use the BIT() macro,
as it makes a difference from documentation point of view.Acked-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab
20 Jul, 2017
2 commits
-
Add helper functions for mbus to/from mplane pixel format conversion.
Signed-off-by: Todor Tomov
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
CCP2 and CSI-1, are older single data lane serial busses.
[mchehab@s-opensource.com: don't use spaces for identation]
Signed-off-by: Sakari Ailus
Signed-off-by: Pavel Machek
Reviewed-by: Sebastian Reichel
Signed-off-by: Mauro Carvalho Chehab
22 Aug, 2015
1 commit
-
Fix the format of the comments and add to DocBook.
Signed-off-by: Mauro Carvalho Chehab
Acked-by: Jonathan Corbet
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
02 Dec, 2014
1 commit
-
Add and copy the new ycbcr_enc and quantization fields.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
15 Nov, 2014
1 commit
-
Replace references to the v4l2_mbus_pixelcode enum with the new
media_bus_format enum in all common headers.Signed-off-by: Boris Brezillon
Acked-by: Sakari Ailus
Acked-by: Hans Verkuil
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
24 Aug, 2013
1 commit
-
This patch adds 'sync-on-green-active' property as part
of endpoint property.Signed-off-by: Lad, Prabhakar
Acked-by: Sylwester Nawrocki
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
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
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
22 Mar, 2011
1 commit
-
The header defines the v4l2_mbus_framefmt structure which will be used
by the V4L2 subdevs userspace API.Change the type of the v4l2_mbus_framefmt::code field to __u32, as enum
sizes can differ between different ABIs on the same architectures.Signed-off-by: Laurent Pinchart
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
21 Oct, 2010
3 commits
-
Signed-off-by: Sascha Hauer
Acked-by: Robert Jarzmik
Signed-off-by: Guennadi Liakhovetski
Signed-off-by: Mauro Carvalho Chehab -
These are needed for the ov7670 driver.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Needed for tvp7002 and tvp514x drivers.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
03 Aug, 2010
2 commits
-
These formats belong to the standard format set, defined by the MIPI CSI-2
specification.Signed-off-by: Guennadi Liakhovetski
Signed-off-by: Mauro Carvalho Chehab -
Endianness notation is meaningless for 8 bit YUYV codes. Switch pixel code
names to explicitly state the order of colour components in the data
stream.Signed-off-by: Guennadi Liakhovetski
Signed-off-by: Mauro Carvalho Chehab
01 Jun, 2010
2 commits
-
Needed for mt9v011.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
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.hSigned-off-by: Guennadi Liakhovetski
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab