<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/media/v4l2-common.h, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-11-13T09:57:52Z</updated>
<entry>
<title>media: v4l: Add helper to get number of active lanes via a pad</title>
<updated>2025-11-13T09:57:52Z</updated>
<author>
<name>Isaac Scott</name>
</author>
<published>2025-10-29T18:03:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd3f646e1c9d783d1f4ef30e5376ccf315a8ae30'/>
<id>urn:sha1:fd3f646e1c9d783d1f4ef30e5376ccf315a8ae30</id>
<content type='text'>
Sometimes, users will not use all of the MIPI CSI 2 lanes available when
connecting to the MIPI CSI receiver of their device. Add a helper
function that checks the mbus_config for the device driver to allow
users to define the number of active data lanes through the
get_mbus_config op.

If the driver does not implement this op, fall back to using the maximum
number of lanes available.

Reviewed-by: Frank Li &lt;Frank.Li@nxp.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Isaac Scott &lt;isaac.scott@ideasonboard.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-common: Add legacy camera sensor clock helper</title>
<updated>2025-09-09T13:59:19Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2025-08-12T21:45:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd235b07b65e123c0fdadc2883b9c16aa4749164'/>
<id>urn:sha1:dd235b07b65e123c0fdadc2883b9c16aa4749164</id>
<content type='text'>
The recently introduced devm_v4l2_sensor_clk_get() helper aims at
simplifying sensor drivers by centralizing clock handling code, as well
as reducing cargo-cult and deprecated behaviour.

A set of drivers implement external clock handling in a non-standard
way. This can't be changed as there is a high risk of breaking existing
platforms, but keeping the code as-is creates a risk of new drivers
copying deprecated behaviour.

To fix this, introduce a new devm_v4l2_sensor_clk_get_legacy() helper
and use it in those driver. Compared to devm_v4l2_sensor_clk_get(), the
new helper takes the "clock-frequency" property into account and sets
the external clock rate on OF platforms, and adds the ability to specify
a fixed default or fallback clock rate in case the "clock-frequency"
property is not present.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Reviewed-by: Niklas Söderlund &lt;niklas.soderlund+renesas@ragnatech.se&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Mehdi Djait &lt;mehdi.djait@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: include: update Hans Verkuil's email address</title>
<updated>2025-09-09T13:58:56Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2025-06-24T06:41:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8c8d961d8ad53d8d104d7474c08d8e4626c7767'/>
<id>urn:sha1:e8c8d961d8ad53d8d104d7474c08d8e4626c7767</id>
<content type='text'>
Replace hverkuil@xs4all.nl by hverkuil@kernel.org.

Signed-off-by: Hans Verkuil &lt;hverkuil@kernel.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-common: Constify media_pad argument to v4l2_get_link_freq()</title>
<updated>2025-08-31T09:10:06Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2025-08-22T00:27:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6234d0df236ab1a71c6bd75e4f5fa15339d5272b'/>
<id>urn:sha1:6234d0df236ab1a71c6bd75e4f5fa15339d5272b</id>
<content type='text'>
The v4l2_get_link_freq() macro doesn't modify the pad argument. Make it
possible to call it with a const media_pad pointer.

Link: https://lore.kernel.org/r/20250822002734.23516-2-laurent.pinchart@ideasonboard.com
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Reviewed-by: Frank Li &lt;Frank.Li@nxp.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-common: Update v4l2_get_link_freq() documentation</title>
<updated>2025-08-25T13:40:41Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2025-08-21T11:56:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bdc9776dac860cae7f61e2b48929f87597306644'/>
<id>urn:sha1:bdc9776dac860cae7f61e2b48929f87597306644</id>
<content type='text'>
Document that v4l2_get_link_freq() obtains the link frequency primarily
by calling the get_mbus_config sub-device pad operation.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-common: Drop the workaround from v4l2_get_link_freq()</title>
<updated>2025-08-25T13:40:41Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2025-08-18T13:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=683342ce3c0dae068bf0ee157ee12c13088193f7'/>
<id>urn:sha1:683342ce3c0dae068bf0ee157ee12c13088193f7</id>
<content type='text'>
Remove the workaround that allowed calling v4l2_get_link_freq() on the
control handler.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Niklas Söderlund &lt;niklas.soderlund+renesas@ragnatech.se&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-common: Improve devm_v4l2_sensor_clk_get() documentation</title>
<updated>2025-08-14T14:01:39Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2025-08-14T13:50:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2412f16c9afa7710778fc032139a6df38b68fd7c'/>
<id>urn:sha1:2412f16c9afa7710778fc032139a6df38b68fd7c</id>
<content type='text'>
Remove the extra leading period and provide more elaborate explanation for
why devm_v4l2_sensor_clk_get() is only allowed to be used on camera sensor
devices.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-common: Add a helper for obtaining the clock producer</title>
<updated>2025-08-13T13:10:18Z</updated>
<author>
<name>Mehdi Djait</name>
</author>
<published>2025-07-07T14:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ecb662b717a34305beacf71e9fadd1559b4b9ee'/>
<id>urn:sha1:7ecb662b717a34305beacf71e9fadd1559b4b9ee</id>
<content type='text'>
Introduce a helper for v4l2 sensor drivers on both DT- and ACPI-based
platforms to retrieve a reference to the clock producer from firmware.

This helper behaves the same as devm_clk_get() except where there is
no clock producer like in ACPI-based platforms.

For ACPI-based platforms the function will read the "clock-frequency"
ACPI _DSD property and register a fixed frequency clock with the frequency
indicated in the property.

This function also handles the special ACPI-based system case where:
. The clock-frequency _DSD property is present.
. A reference to the clock producer is present, where the clock is provided
  by a camera sensor PMIC driver (e.g. int3472/tps68470.c)
In this case try to set the clock-frequency value to the provided clock.

Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Reviewed-by: Lad Prabhakar &lt;prabhakar.mahadev-lad.rj@bp.renesas.com&gt;
Signed-off-by: Mehdi Djait &lt;mehdi.djait@linux.intel.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: common: Add v4l2_find_nearest_size_conditional()</title>
<updated>2025-05-06T11:06:30Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2025-03-05T09:22:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=454ad0169cf7bb09e622c5bc40275ea725ab3a8a'/>
<id>urn:sha1:454ad0169cf7bb09e622c5bc40275ea725ab3a8a</id>
<content type='text'>
v4l2_find_nearest_size() returns a mode from sensor driver's mode list
that is a best match width and height wise for the sensor. Some drivers
have different set of available modes depending on the number of lanes.
While this could be handled within a driver by providing different lists
of modes, provide a helper v4l2_find_nearest_size_conditional() to ignore
modes that aren't available.

Also use size_t for the array index and remove extra commas while at it.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>media: v4l: Support passing media pad argument to v4l2_get_link_freq()</title>
<updated>2025-02-15T14:22:53Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2024-04-29T08:38:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15f0035bfd0a7e3c829fd12c17ca0454c944649f'/>
<id>urn:sha1:15f0035bfd0a7e3c829fd12c17ca0454c944649f</id>
<content type='text'>
v4l2_get_link_freq() accepts a V4L2 control handler for now, but it needs
to take struct media_pad argument in order to obtain the link frequency
using get_mbus_config() pad op. Prepare for this by allowing struct
media_pad as well.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Tomi Valkeinen &lt;tomi.valkeinen@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil@xs4all.nl&gt;
</content>
</entry>
</feed>
