[git:media_stage/master] media: i2c: imx214: Explain some magic numbers

2023-12-13 Thread Hans Verkuil
-by: Kieran Bingham Signed-off-by: André Apitzsch [Sakari Ailus: The control handler remains in the context struct still.] Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx214.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) --- diff

[git:media_stage/master] media: i2c: ak7375: Prepare for supporting another chip

2023-12-13 Thread Hans Verkuil
to move chip-specific properties and values in a common structure. No functional changes. Signed-off-by: Vincent Knecht Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ak7375.c | 110 +++-- 1 file changed, 66 insertions(+), 44

[git:media_stage/master] media: ov2740: Add support for reset GPIO

2023-12-13 Thread Hans Verkuil
. Reviewed-by: Bingbu Cao Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ov2740.c | 48 -- 1 file changed, 46 insertions(+), 2 deletions(-) --- diff --git a/drivers/media/i2c/ov2740.c b/drivers/media

[git:media_stage/master] media: ov2740: Check hwcfg after allocating the ov2740 struct

2023-12-13 Thread Hans Verkuil
ov2740_check_hwcfg(). This is a preparation patch to allow ov2740_check_hwcfg() to store some of the parsed data in the ov2740 struct. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ov2740.c | 13 +++-- 1 file changed, 7 insertions

[git:media_stage/master] media: ov2740: Improve ov2740_check_hwcfg() error reporting

2023-12-13 Thread Hans Verkuil
, so that it is always clear why the probe() failed. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ov2740.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c

[git:media_stage/master] media: ov2740: Add support for 180 MHz link frequency

2023-12-13 Thread Hans Verkuil
. The register settings for this were taken from the ov2740 sensor driver in the out of tree IPU6 driver: https://github.com/intel/ipu6-drivers/ Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ov2740.c | 263

[git:media_stage/master] media: Documentation: BT.601 is not a bus

2023-12-13 Thread Hans Verkuil
to refer to. Fix this. Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Documentation/driver-api/media/camera-sensor.rst | 4 ++-- Documentation/driver-api/media/tx-rx.rst | 13 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) --- diff --git a/Documentation/driver

[git:media_stage/master] media: v4l: Safely to call v4l2_subdev_cleanup on an uninitialised subdev

2023-12-13 Thread Hans Verkuil
-device in v4l2_subdev_cleanup(). The list_empty() check there is unnecessary, too, so replace that by cheking whether the lists's next field is NULL. Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/v4l2-core/v4l2-subdev.c | 3 ++- 1 file changed, 2 insertions(+), 1

[git:media_stage/master] media: ipu-bridge: Change ov2740 link-frequency to 180 MHz

2023-12-13 Thread Hans Verkuil
using 360 MHz link-frequency there as before. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/pci/intel/ipu-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media

[git:media_stage/master] media: dt-bindings: gc0308: add binding

2023-12-13 Thread Hans Verkuil
Signed-off-by: Sebastian Reichel Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil .../bindings/media/i2c/galaxycore,gc0308.yaml | 108 + 1 file changed, 108 insertions(+) --- diff --git a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc0308.yaml b

[git:media_stage/master] media: i2c: imx214: Move controls init to separate function

2023-12-13 Thread Hans Verkuil
yet if the controls are initialized incorrectly. Reviewed-by: Jacopo Mondi Reviewed-by: Ricardo Ribalda Signed-off-by: André Apitzsch Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx214.c | 115 ++--- 1 file changed, 67

[git:media_stage/master] media: dt-bindings: ov8856: decouple lanes and link frequency from driver

2023-12-13 Thread Hans Verkuil
: [36000] is too short Fixes: 066a94e28a23 ("media: dt-bindings: media: Use graph and video-interfaces schemas") Acked-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil .../devicetree/bindings

[git:media_stage/master] media: i2c: imx335: Support 2592x1940 10-bit mode

2023-12-13 Thread Hans Verkuil
10-bit mode. Following are the register set which control the 10/12 bit mode setting: MDBIT 0x319d ADBIT 0x3050 ADBIT1 0x341c 0x341d Signed-off-by: Umang Jain Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx335.c | 78

[git:media_stage/master] media: i2c: imx214: Read orientation and rotation from system firmware

2023-12-13 Thread Hans Verkuil
firmware and register the appropriate controls. While at it, update number of pre-allocated control slots. Reviewed-by: Jacopo Mondi Reviewed-by: Ricardo Ribalda Signed-off-by: André Apitzsch Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx214.c | 9 - 1 file

[git:media_stage/master] media: i2c: imx335: Fix hblank min/max values

2023-12-13 Thread Hans Verkuil
. Set the minimum and maximum value to match the mode value. Reviewed-by: Umang Jain Signed-off-by: Kieran Bingham Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx335.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- diff --git a/drivers/media/i2c

[git:media_stage/master] media: i2c: ak7375: Add support for ak7345

2023-12-13 Thread Hans Verkuil
, and no known standby register setting. Might be compatible as-is with ak7348. Tested on msm8916-alcatel-idol347 phone. Signed-off-by: Vincent Knecht Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ak7375.c | 26 ++ 1 file changed, 22 insertions

[git:media_stage/master] media: dt-bindings: Add OmniVision OV64A40

2023-12-13 Thread Hans Verkuil
Jackson Signed-off-by: Jacopo Mondi Acked-by: Conor Dooley Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil .../bindings/media/i2c/ovti,ov64a40.yaml | 103 + 1 file changed, 103 insertions(+) --- diff --git a/Documentation/devicetree/bindings/media/i2c

[git:media_stage/master] media: ov2740: Move fwnode_graph_get_next_endpoint() call up

2023-12-13 Thread Hans Verkuil
then the fwnode_property_read_u32("clock-frequency") call will fail. Move the fwnode_graph_get_next_endpoint() call to above reading the clock-frequency. Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ov2740.c | 20 ++-- 1 file c

[git:media_stage/master] media: ov2740: Add a sleep after resetting the sensor

2023-12-13 Thread Hans Verkuil
a delay after this. This hopefully fixes the stream sometimes not starting, this was taken from the ov2740 sensor driver in the out of tree IPU6 driver: https://github.com/intel/ipu6-drivers/ Signed-off-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media

[git:media_stage/master] media: i2c: Add driver for OmniVision OV64A40

2023-12-13 Thread Hans Verkuil
Signed-off-by: Lee Jackson Signed-off-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil MAINTAINERS |8 + drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/ov64a40.c | 3690

[git:media_stage/master] media: i2c: imx214: Add sensor's pixel matrix size

2023-12-13 Thread Hans Verkuil
]: https://www.mouser.com/datasheet/2/897/ProductBrief_IMX214_20150428-1289331.pdf Reviewed-by: Jacopo Mondi Signed-off-by: André Apitzsch Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx214.c | 39 --- 1 file changed, 32

[git:media_stage/master] media: Documentation: LP-11 and LP-111 are states, not modes

2023-12-13 Thread Hans Verkuil
-by: Sakari Ailus Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil Documentation/driver-api/media/tx-rx.rst | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) --- diff --git a/Documentation/driver-api/media/tx-rx.rst b/Documentation/driver-api/media/tx-rx.rst index

[git:media_stage/master] media: dt-bindings: media: imx335: Add supply bindings

2023-12-13 Thread Hans Verkuil
-by: Umang Jain Reviewed-by: Marco Felsch Signed-off-by: Kieran Bingham Acked-by: Conor Dooley Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil .../devicetree/bindings/media/i2c/sony,imx335.yaml | 13 + 1 file changed, 13 insertions(+) --- diff --git

[git:media_stage/master] media: MAINTAINERS: Add GalaxyCore in camera sensor section

2023-12-13 Thread Hans Verkuil
ore camera sensor drivers, so add it to the list. Signed-off-by: Sebastian Reichel Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil MAINTAINERS | 1 + 1 file changed, 1 insertion(+) --- diff --git a/MAINTAINERS b/MAINTAINERS index ea877c00c408..e0d54067d31c 100644 --- a/MAINTAI

[git:media_stage/master] media: i2c: imx335: Improve configuration error reporting

2023-12-13 Thread Hans Verkuil
be taken without reporting to the user the reason for failing to accept the hardware configuration. Extend the error reporting paths to identify failures when probing the device. Reviewed-by: Umang Jain Signed-off-by: Kieran Bingham Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers

[git:media_stage/master] media: i2c: imx335: Enable regulator supplies

2023-12-13 Thread Hans Verkuil
to the camera sensor. While updating the power on function, document that a sleep is represented as 'T4' in the datasheet power on sequence. Signed-off-by: Kieran Bingham Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx335.c | 36 ++-- 1

[git:media_stage/master] media: i2c: imx335: Implement get selection API

2023-12-13 Thread Hans Verkuil
the Selection API. The implementation reports a single target crop only for the mode that is presently exposed by the driver. Reviewed-by: Umang Jain Signed-off-by: Kieran Bingham Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/imx335.c | 45

[git:media_stage/master] media: i2c: Introduce a driver for the Techwell TW9900 decoder

2023-12-13 Thread Hans Verkuil
-by: Paul Kocialkowski Signed-off-by: Mehdi Djait Signed-off-by: Hans Verkuil MAINTAINERS| 6 + drivers/media/i2c/Kconfig | 15 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/tw9900.c | 781 + 4 files changed, 803 insertions

[git:media_stage/master] media: ddbridge: fix an error code problem in ddb_probe

2023-12-13 Thread Hans Verkuil
-by: Su Hui Signed-off-by: Hans Verkuil drivers/media/pci/ddbridge/ddbridge-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/pci/ddbridge/ddbridge-main.c b/drivers/media/pci/ddbridge/ddbridge-main.c index 91733ab9f58c..363badab7cf0 100644 --- a/drivers

[git:media_stage/master] media: dvbdev: drop refcount on error path in dvb_device_open()

2023-12-13 Thread Hans Verkuil
ce_put(dvbdev). Fixes: 0fc044b2b5e2 ("media: dvbdev: adopts refcnt to avoid UAF") Signed-off-by: Dan Carpenter Signed-off-by: Hans Verkuil drivers/media/dvb-core/dvbdev.c | 2 ++ 1 file changed, 2 insertions(+) --- diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-cor

[git:media_stage/master] media: dt-bindings: media: i2c: Add bindings for TW9900

2023-12-13 Thread Hans Verkuil
such as PAL and NTSC and has a parallel BT.656 output interface. It's designed to be low-power, posesses some features such as a programmable comb-filter, and automatic input standard detection Reviewed-by: Paul Kocialkowski Reviewed-by: Rob Herring Signed-off-by: Mehdi Djait Signed-off-by: Hans

[git:media_stage/master] media: amphion: remove mutext lock in condition of wait_event

2023-12-13 Thread Hans Verkuil
or not. Signed-off-by: Ming Qian CC: Xiaolei Wang Signed-off-by: Hans Verkuil drivers/media/platform/amphion/vpu.h | 3 ++- drivers/media/platform/amphion/vpu_cmds.c | 28 +--- drivers/media/platform/amphion/vpu_v4l2.c | 1 + 3 files changed, 12 insertions(+), 20 deletions

[git:media_stage/master] media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe()

2023-12-13 Thread Hans Verkuil
a successful i2c_mux_add_adapter(), then i2c_mux_del_adapters() should be called to free some resources, as already done in the remove function. Fixes: e6089feca460 ("media: m88ds3103: Add support for ds3103b demod") Signed-off-by: Christophe JAILLET Signed-off-by: Hans Verkuil drivers

[git:media_stage/master] dt-bindings: vendor-prefixes: Add techwell vendor prefix

2023-12-13 Thread Hans Verkuil
-by: Mehdi Djait Signed-off-by: Hans Verkuil Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) --- diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index b3d751b42927

[git:media_stage/master] MAINTAINERS: Add missing bindings for max96712

2023-12-13 Thread Hans Verkuil
-by: Niklas Söderlund Signed-off-by: Hans Verkuil MAINTAINERS | 1 + 1 file changed, 1 insertion(+) --- diff --git a/MAINTAINERS b/MAINTAINERS index f1bdf13ec6a6..77aabb076bd7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13020,6 +13020,7 @@ MAX96712 QUAD GMSL2 DESERIALIZER DRIVER M

[git:media_stage/master] media: platform: exynos4-is: return callee's error code rather than -ENXIO

2023-12-13 Thread Hans Verkuil
' is never read. Return the callee's error code to fix this. Signed-off-by: Su Hui Signed-off-by: Hans Verkuil drivers/media/platform/samsung/exynos4-is/fimc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-core.c b

[git:v4l-utils/master] v4l-utils: fix @PACKAGE_VERSION@ use

2023-12-13 Thread Hans Verkuil
This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree: Subject: v4l-utils: fix @PACKAGE_VERSION@ use Author: Hans Verkuil Date:Wed Dec 13 10:25:30 2023 +0100 Man pages used @PACKAGE_VERSION

[git:media_stage/master] media: chips-media: wave5: Requires GENERIC_ALLOCATOR

2023-12-13 Thread Hans Verkuil
v4l2 layer") Signed-off-by: Randy Dunlap Cc: Nas Chung Cc: Jackson Lee Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Sebastian Fricke Signed-off-by: Hans Verkuil drivers/media/platform/chips-media/wave5/Kconfig | 1 + 1 file changed, 1

[git:media_stage/master] media: chips-media: wave5: Fix spelling mistake "bufferur" -> "buffer"

2023-12-13 Thread Hans Verkuil
a dev_dbg message. Fix it. Signed-off-by: Colin Ian King Signed-off-by: Sebastian Fricke Signed-off-by: Hans Verkuil drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu

[git:media_stage/master] media: chips-media: wave5: Remove duplicate check

2023-12-13 Thread Hans Verkuil
r. Delete this duplicate check. Signed-off-by: Dan Carpenter Reviewed-by: Nicolas Dufresne Signed-off-by: Sebastian Fricke Signed-off-by: Hans Verkuil drivers/media/platform/chips-media/wave5/wave5-hw.c | 3 --- 1 file changed, 3 deletions(-) --- diff --git a/drivers/media/platform/chips-media/wave5/wav

[git:media_stage/master] media: chips-media: wave5: Fix panic on decoding DECODED_IDX_FLAG_SKIP

2023-12-13 Thread Hans Verkuil
ent after testing that the index is positive to avoid the exception. Fixes: 45d1a2b93277 ("media: chips-media: wave5: Add vpuapi layer") Signed-off-by: Mattijs Korpershoek Reviewed-by: Nicolas Dufresne Signed-off-by: Sebastian Fricke Signed-off-by: Hans Verkuil drivers/media/platfor

[git:media_stage/master] media: MAINTAINERS: Correct file entry in WAVE5 VPU CODEC DRIVER

2023-12-13 Thread Hans Verkuil
'. Correct the file entry in WAVE5 VPU CODEC DRIVER. Fixes: 26dde1beb359 ("media: chips-media: wave5: Add wave5 driver to maintainers file") Signed-off-by: Lukas Bulwahn Signed-off-by: Sebastian Fricke Signed-off-by: Hans Verkuil MAINTAINERS | 2 +- 1 file changed, 1 insertion(+),

[git:media_stage/master] media: venus: core: Set up secure memory ranges for SC7280

2023-12-11 Thread Hans Verkuil
Varbanov Signed-off-by: Hans Verkuil drivers/media/platform/qcom/venus/core.c | 4 1 file changed, 4 insertions(+) --- diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 9cffe975581b..a712dd4f02a5 100644 --- a/drivers/media/platform

[git:media_stage/master] media: ccs: Select V4L2_CCI_I2C

2023-12-08 Thread Hans Verkuil
media: ccs: Use V4L2 CCI for accessing sensor registers") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312060941.cyihppap-...@intel.com/ Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil drivers/media/i2c/ccs/Kconfig | 1 + 1 file changed, 1

[git:media_stage/master] media: ov9640: Don't set format in sub-device state

2023-12-08 Thread Hans Verkuil
Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil drivers/media/i2c/ov9640.c | 2 -- 1 file changed, 2 deletions(-) --- diff --git a/drivers/media/i2c/ov9640.c b/drivers/media/i2c/ov9640.c index b0c171fe75bc..e9a52a8a9dc0 100644 --- a/drivers/media/i2c/ov9640.c +++ b/drivers/media/i2

[git:media_stage/master] media: tw9910: Don't set format in sub-device state

2023-12-08 Thread Hans Verkuil
Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil drivers/media/i2c/tw9910.c | 2 -- 1 file changed, 2 deletions(-) --- diff --git a/drivers/media/i2c/tw9910.c b/drivers/media/i2c/tw9910.c index 7c331a7f12d4..905af98c7d53 100644 --- a/drivers/media/i2c/tw9910.c +++ b/drivers/media/i2

[git:media_stage/master] media: adv7183: Don't set format in sub-device state

2023-12-08 Thread Hans Verkuil
Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil drivers/media/i2c/adv7183.c | 2 -- 1 file changed, 2 deletions(-) --- diff --git a/drivers/media/i2c/adv7183.c b/drivers/media/i2c/adv7183.c index bcb99ba9a272..2a2cace4a153 100644 --- a/drivers/media/i2c/adv7183.c +++ b/drivers/media/i2c

[git:media_stage/master] media: saa6752hs: Don't set format in sub-device state

2023-12-08 Thread Hans Verkuil
Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil drivers/media/i2c/saa6752hs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- diff --git a/drivers/media/i2c/saa6752hs.c b/drivers/media/i2c/saa6752hs.c index 51b62a97946a..897eaa669b86 100644 --- a/drivers/media/i2c/saa6752

[git:media_stage/master] media: mt9t112: Don't set format in sub-device state

2023-12-08 Thread Hans Verkuil
Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil drivers/media/i2c/mt9t112.c | 1 - 1 file changed, 1 deletion(-) --- diff --git a/drivers/media/i2c/mt9t112.c b/drivers/media/i2c/mt9t112.c index 2e2d9853c089..fb1588c57cc8 100644 --- a/drivers/media/i2c/mt9t112.c +++ b/drivers/media/i2c

[git:media_stage/master] media: rj54n1cb0c: Don't set format in sub-device state

2023-12-08 Thread Hans Verkuil
Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil drivers/media/i2c/rj54n1cb0c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- diff --git a/drivers/media/i2c/rj54n1cb0c.c b/drivers/media/i2c/rj54n1cb0c.c index 403185b18f06..a59db10153cd 100644 --- a/drivers/media/i2c/rj

[git:edid-decode/master] edid-decode: check for more dummy serial numbers

2023-12-07 Thread Hans Verkuil
This is an automatic generated email to let you know that the following patch were queued: Subject: edid-decode: check for more dummy serial numbers Author: Hans Verkuil Date:Thu Dec 7 12:04:21 2023 +0100 Also check if the Display Product Serial Number is one of a known set of dummy

[git:media_stage/master] media: rockchip: rga: use clamp() to clamp size to limits

2023-12-06 Thread Hans Verkuil
of the RGA. Use the clamp() helper instead of open coding the clamping. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) --- diff --git a/drivers/media/platform/rockchip/rga/rga.c

[git:media_stage/master] media: rockchip: rga: fix swizzling for RGB formats

2023-12-06 Thread Hans Verkuil
. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) --- diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c index f1c532a5802a

[git:media_stage/master] media: rockchip: rga: use macros for testing buffer type

2023-12-06 Thread Hans Verkuil
if the buffer or queue is OUTPUT or CAPTURE. The macros work also work for the _MPLANE buffer and queue types and make it easier to switch to the multi-planar API. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga.c | 21 + 1 file

[git:media_stage/master] media: rockchip: rga: add NV12M support

2023-12-06 Thread Hans Verkuil
DMABUFs with other devices that only support multi-planar NV12, for example the Hantro JPEG encoder. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga.c | 9 + 1 file changed, 9 insertions(+) --- diff --git a/drivers/media/platform/rockchip

[git:media_stage/master] media: rockchip: rga: add local variable for pix_format

2023-12-06 Thread Hans Verkuil
and makes it easier to change the type of the format. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga.c | 55 ++- 1 file changed, 32 insertions(+), 23 deletions(-) --- diff --git a/drivers/media/platform/rockchip/rga/rga.c

[git:media_stage/master] media: rockchip: rga: allocate DMA descriptors per buffer

2023-12-06 Thread Hans Verkuil
with the size of the video buffers and is not allocated if the RGA is not used. While at it, use dma_alloc_coherent to allocate the descriptors and get rid of the virt_to_phys calls to get the physical addresses. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip

[git:media_stage/master] media: rockchip: rga: set dma mask to 32 bits

2023-12-06 Thread Hans Verkuil
to only allocate memory that is addressable by the descriptors. This prevents errors when preparing vb2 buffers that were allocated by the RGA. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga.c | 8 1 file changed, 8 insertions

[git:media_stage/master] media: rockchip: rga: extract helper to fill descriptors

2023-12-06 Thread Hans Verkuil
for iterating the sg_table instead of manually calculating the DMA addresses. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga-buf.c | 43 ++- drivers/media/platform/rockchip/rga/rga.c | 4 +-- drivers/media/platform

[git:media_stage/master] media: rockchip: rga: pre-calculate plane offsets

2023-12-06 Thread Hans Verkuil
of the plane offsets. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga-buf.c | 16 drivers/media/platform/rockchip/rga/rga-hw.c | 36 +++ drivers/media/platform/rockchip/rga/rga.h | 9 +++ 3 files

[git:media_stage/master] media: rockchip: rga: use pixelformat to find format

2023-12-06 Thread Hans Verkuil
and can drop the check if a given format has been found. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) --- diff --git a/drivers/media/platform/rockchip/rga/rga.c b

[git:media_stage/master] media: rockchip: rga: switch to multi-planar API

2023-12-06 Thread Hans Verkuil
planes. The RGA driver doesn't expose multi-planar formats, yet. The existing contiguous planar formats can be used with the multi-planar API as well, but the multi-planar API is required for multi-planar formats. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform

[git:media_stage/master] media: rockchip: rga: rework buffer handling for multi-planar formats

2023-12-06 Thread Hans Verkuil
, the offsets must be detected and set while creating the mapping. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga/rga-buf.c | 61 ++- drivers/media/platform/rockchip/rga/rga.c | 7 +++ drivers/media/platform/rockchip/rga/rga.h

[git:media_stage/master] media: rockchip: rga: split src and dst buffer setup

2023-12-06 Thread Hans Verkuil
into separate functions. This is a cleanup to make the code more readable by separating the offset calculation for the different buffers and prepares the driver for using pre-calculated offsets of planes. Signed-off-by: Michael Tretter Signed-off-by: Hans Verkuil drivers/media/platform/rockchip/rga

[git:media_stage/master] media: qcom: camss: Add support for named power-domains

2023-12-06 Thread Hans Verkuil
to the default legacy indexing. From this point on though new SoC additions should contain named power-domains, eventually we will drop support for legacy indexing. Tested-by: Matti Lehtimäki Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil drivers/media/platform/qcom/camss/camss

[git:media_stage/master] media: cx231xx: fix a memleak in cx231xx_init_isoc

2023-12-06 Thread Hans Verkuil
f-by: Zhipeng Lu Signed-off-by: Hans Verkuil drivers/media/usb/cx231xx/cx231xx-core.c | 2 ++ 1 file changed, 2 insertions(+) --- diff --git a/drivers/media/usb/cx231xx/cx231xx-core.c b/drivers/media/usb/cx231xx/cx231xx-core.c index 7b7e2a26ef93..d8312201694f 100644 --- a/drivers/media/usb/

[git:media_stage/master] media: visl: Add AV1 support

2023-12-06 Thread Hans Verkuil
-by: Daniel Almeida Signed-off-by: Detlev Casanova Signed-off-by: Hans Verkuil drivers/media/test-drivers/visl/visl-core.c| 21 ++ drivers/media/test-drivers/visl/visl-dec.c | 72 - drivers/media/test-drivers/visl/visl-dec.h | 8 + drivers/media/test-drivers/visl/visl

[git:media_stage/master] media: qcom: camss: Flag CSID-lites to support more CSIDs

2023-12-06 Thread Hans Verkuil
code has hardcoded 2 as the maximum number of CSIDs. Remove the hardcoded maximum number of VFEs to handle all possible combinations of CSIDs and CSID-lites. Signed-off-by: Matti Lehtimäki Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio Signed-off-by: Hans Verkuil .../media

[git:media_stage/master] media: qcom: camss: Flag VFE-lites to support more VFEs

2023-12-06 Thread Hans Verkuil
/202311200405.h6g4l9oe-...@intel.com Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil drivers/media/platform/qcom/camss/camss-vfe-480.c | 33 +++ drivers/media/platform/qcom/camss/camss-vfe.c | 5 drivers/media/platform/qcom/camss/camss-vfe.h | 10

[git:media_stage/master] media: platform: mtk-mdp3: Use devicetree phandle to retrieve SCP

2023-12-06 Thread Hans Verkuil
en-Yu Tsai Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Alexandre Mergnat Signed-off-by: Hans Verkuil drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) --- diff --git a/drivers/media/platform/mediatek/mdp

[git:media_stage/master] media: qcom: camss: Add sm8250 named power-domain support

2023-12-06 Thread Hans Verkuil
d "ife1" eponymously for the power-domains TITAN_TOP_GDSC, IFE_0_GDSC and IFE_1_GDSC respectively. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio Signed-off-by: Hans Verkuil drivers/media/platform/qcom/camss/camss.c | 3 +++ 1 file changed, 3 insertions(+) --- diff --git a/dri

[git:media_stage/master] media: qcom: camss: Flag which VFEs require a power-domain

2023-12-06 Thread Hans Verkuil
from this we no longer need to care about VFE Lite or non-Lite or the id number associated with either and which order the VFE/VFE Lite was declared in. Reviewed-by: Konrad Dybcio Tested-by: Matti Lehtimäki Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil drivers/media/platform/qcom

[git:media_stage/master] media: videobuf2-dma-sg: fix vmap callback

2023-12-06 Thread Hans Verkuil
source, the exporter needs to set a proper vaddr on vb2_dma_sg_dmabuf_ops_vmap callback. This patch adds vmap on map if buf->vaddr was not set. Cc: sta...@kernel.org Fixes: 7938f4218168 ("dma-buf-map: Rename to iosys-map") Signed-off-by: Michael Grzeschik Acked-by: Tomasz Figa Signed

[git:media_stage/master] staging: media: VIDEO_STARFIVE_CAMSS should depend on ARCH_STARFIVE

2023-12-06 Thread Hans Verkuil
Changhuang Liang Signed-off-by: Hans Verkuil drivers/staging/media/starfive/camss/Kconfig | 1 + 1 file changed, 1 insertion(+) --- diff --git a/drivers/staging/media/starfive/camss/Kconfig b/drivers/staging/media/starfive/camss/Kconfig index bd184f42c98f..9ea5708fe409 100644 --- a/drivers/sta

[git:media_stage/master] media: stk1160: Fixed high volume of stk1160_dbg messages

2023-12-06 Thread Hans Verkuil
the output to get flooded with messages. Since stk1160_dbg uses printk, it is now replaced with printk_ratelimited. Suggested-by: Phillip Potter Signed-off-by: Ghanshyam Agrawal Signed-off-by: Hans Verkuil drivers/media/usb/stk1160/stk1160-video.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[git:media_stage/master] media: chips-media: wave5: VIDEO_WAVE_VPU should depend on ARCH_K3

2023-12-06 Thread Hans Verkuil
Signed-off-by: Geert Uytterhoeven Reviewed-by: Nishanth Menon Signed-off-by: Hans Verkuil [hverkuil: small update in commit log, and reformatted the Fixes tag] drivers/media/platform/chips-media/wave5/Kconfig | 1 + 1 file changed, 1 insertion(+) --- diff --git a/drivers/media/platform/chips-m

[git:media_stage/master] media: qcom: camss: Move VFE power-domain specifics into vfe.c

2023-12-06 Thread Hans Verkuil
with a bunch of kmalloc array inside of camss.c. 3. Splitting up titan top gdsc from vfe/ife gdsc provides a base for breaking up magic indexes in dtsi. Suggested-by: Matti Lehtimäki Tested-by: Matti Lehtimäki Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio Signed-off-by: Hans Verkuil

[git:media_stage/master] doc: media: visl: Add AV1 support

2023-12-06 Thread Hans Verkuil
Casanova Signed-off-by: Hans Verkuil Documentation/admin-guide/media/visl.rst | 2 ++ 1 file changed, 2 insertions(+) --- diff --git a/Documentation/admin-guide/media/visl.rst b/Documentation/admin-guide/media/visl.rst index 4328c6c72d30..db1ef29438e1 100644 --- a/Documentation/admin-guide

[git:media_stage/master] media: dt-bindings: mediatek: Add phandle to mediatek, scp on MDP3 RDMA

2023-12-06 Thread Hans Verkuil
remote processor: allow specifying a phandle to a SCP core. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Conor Dooley Reviewed-by: Alexandre Mergnat Signed-off-by: Hans Verkuil Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml | 8 1 file changed, 8

[git:media_stage/master] media: staging: starfive: camss: fix off by one in isp_enum_mbus_code()

2023-12-06 Thread Hans Verkuil
->fmts[] array is either a pointer to isp_formats_sink[] or isp_formats_source[] respectively. Fixes: e57854628f58 ("media: staging: media: starfive: camss: Add ISP driver") Signed-off-by: Dan Carpenter Reviewed-by: Changhuang Liang Signed-off-by: Hans Verkuil drivers/staging/media/starf

[git:media_stage/master] media: qcom: camss: Use common VFE pm_domain_on/pm_domain_off where applicable

2023-12-06 Thread Hans Verkuil
Tested-by: Matti Lehtimäki Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil drivers/media/platform/qcom/camss/camss-vfe-170.c | 35 --- drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 8 +++--- drivers/media/platform/qcom/camss/camss-vfe-4-7.c | 31

[git:media_stage/master] media: qcom: camss: Convert to per-VFE pointer for power-domain linkages

2023-12-06 Thread Hans Verkuil
Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil drivers/media/platform/qcom/camss/camss-vfe-170.c | 15 +++ drivers/media/platform/qcom/camss/camss-vfe-4-7.c | 15 +-- drivers/media/platform/qcom/camss/camss-vfe-4-8.c | 13 + drivers/media/platform/qcom

[git:media_stage/master] media: exynos-gsc: remove unused improper CONFIG definition

2023-12-06 Thread Hans Verkuil
Signed-off-by: Hans Verkuil drivers/media/platform/samsung/exynos-gsc/gsc-core.h | 1 - 1 file changed, 1 deletion(-) --- diff --git a/drivers/media/platform/samsung/exynos-gsc/gsc-core.h b/drivers/media/platform/samsung/exynos-gsc/gsc-core.h index 1ea5fa1bf3c8..b9777e07fb6d 100644 --- a/drivers/medi

[git:v4l-utils/master] Revert "meson: v4l2grab needs libv4lconvert with fork support enabled"

2023-12-06 Thread Hans Verkuil
2023 +0100 This reverts commit 589da519e230e84b3603dddab42561983b1469aa as a less intrusive fix is available (make libv4lconvert helpers depend on fork support, see follow up patch). Signed-off-by: Peter Seiderer Signed-off-by: Hans Verkuil contrib/test/meson.build | 2 -- 1 file changed, 2

[git:v4l-utils/master] meson: libv4lconvert helpers need fork support

2023-12-06 Thread Hans Verkuil
/libv4lconvert.a(libv4lconvert.c.o): in function `v4lconvert_convert_pixfmt': libv4lconvert.c:(.text+0x1450): undefined reference to `v4lconvert_helper_decompress' collect2: error: ld returned 1 exit status Signed-off-by: Peter Seiderer Signed-off-by: Hans Verkuil lib/libv4lconvert/meson.build | 2

[git:v4l-utils/master] meson: add optional Qt6 support

2023-12-04 Thread Hans Verkuil
for module qt6 feature - add optional Qt6 detection - add optional C++ standard gnu++17 as needed for Qt6 - adjust qt_opengl_test inline source code and compile arguments ('-std=gnu++17') for optional Qt6 Signed-off-by: Peter Seiderer Signed-off-by: Hans Verkuil meson.build | 52

[git:v4l-utils/master] meson: v4l2grab needs libv4lconvert with fork support enabled

2023-12-04 Thread Hans Verkuil
): undefined reference to `v4lconvert_helper_decompress' collect2: error: ld returned 1 exit status Signed-off-by: Peter Seiderer Signed-off-by: Hans Verkuil contrib/test/meson.build | 2 ++ 1 file changed, 2 insertions(+) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id

[git:v4l-utils/master] media-info: add missing sys/stat.h include (for dev_t)

2023-12-04 Thread Hans Verkuil
); | ^ | div_t Signed-off-by: Peter Seiderer Signed-off-by: Hans Verkuil utils/common/media-info.h | 2 ++ 1 file changed, 2 insertions(+) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=b66b50001d299222d089820ec4c48a0577a482c1

[git:v4l-utils/master] meson: fix has_function fork detection (needs suitable include)

2023-12-04 Thread Hans Verkuil
`v4lconvert_helper_decompress': helper.c:(.text+0x14e): undefined reference to `fork' collect2: error: ld returned 1 exit status [1] https://github.com/mesonbuild/meson/issues/7652 Signed-off-by: Peter Seiderer Signed-off-by: Hans Verkuil meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[git:v4l-utils/master] v4l2-tracer: add auto-generated files to git repo

2023-12-04 Thread Hans Verkuil
untracked files that are generated by v4l2-tracer-gen.pl. The version history makes it easy to spot errors that arise when the repository is synced with the latest kernel headers. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/retrace-gen.cpp| 5664

[git:v4l-utils/master] v4l-utils: v4l-utils: sync with latest kernel headers

2023-12-04 Thread Hans Verkuil
This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree: Subject: v4l-utils: v4l-utils: sync with latest kernel headers Author: Hans Verkuil Date:Mon Dec 4 11:43:20 2023 +0100 Signed-off-by: Hans

[git:v4l-utils/master] v4l2-tracer: stop auto-generating files with meson

2023-12-04 Thread Hans Verkuil
to run the v4l2-tracer autogeneration script. Instead just handle these autogenerated files like any other file source. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/meson.build | 55 +++ 1 file changed, 3 insertions(+), 52

[git:v4l-utils/master] v4l2-tracer: add re/tracing for AV1 controls

2023-12-04 Thread Hans Verkuil
autogenerated AV1 tracing and retracing functions so that they are called by the tracer and retracer. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/retrace.cpp | 12 utils/v4l2-tracer/trace.cpp | 12 2 files changed, 24 insertions

[git:v4l-utils/master] v4l2-tracer: use stat to verify that retrace file exists

2023-12-04 Thread Hans Verkuil
of opening and closing the file to see if it exists, just use stat. This avoids cluttering a trace with extra opens/closes. Also change the return value to give a better description of the failure to the calling function. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer

[git:v4l-utils/master] v4l2-tracer: ignore single line comments when parsing headers

2023-12-04 Thread Hans Verkuil
in case there are single-line comments that start with '//', ignore them in the autogeneration script. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/v4l2-tracer-gen.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- http://git.linuxtv.org/cgit.cgi/v4l

[git:v4l-utils/master] v4l2-tracer: add re/tracing for MAX_NUM_BUFFERS

2023-12-04 Thread Hans Verkuil
of the kernel headers, the autogeneration script failed to pick up the new flag V4L2_BUF_CAP_SUPPORTS_MAX_NUM_BUFFERS, so add it. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/v4l2-tracer-gen.pl | 2 +- utils/v4l2-tracer/v4l2-tracer-info-gen.h | 1 + 2 files

[git:v4l-utils/master] sync-with-kernel.sh: create v4l2-tracer patches

2023-12-04 Thread Hans Verkuil
is synced with the latest kernel headers, generate and apply patches for the changes that need to be made to the v4l2-tracer. This makes it easier to see how the kernel headers are changing the v4l2-tracer and also to revert those changes if necessary. Signed-off-by: Deborah Brouwer Signed-off-by: Hans

[git:v4l-utils/master] v4l2-tracer: look in more places for libv4l2tracer

2023-12-04 Thread Hans Verkuil
. Exit if the libv4l2tracer.so can’t be found. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/v4l2-tracer.cpp | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id

[git:v4l-utils/master] v4l2-tracer: stop waiting to handle a signal

2023-12-04 Thread Hans Verkuil
will wait for its tracee to handle a signal e.g. from ctrl+c before the v4l2-tracer exits, but if there is no tracee, then the v4l2-tracer waits forever. Exit gracefully by waiting only if a tracee exists. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/v4l2

[git:v4l-utils/master] v4l2-tracer: autogenerate files that can be added to git

2023-12-04 Thread Hans Verkuil
a whitespace warning, so remove that too. Signed-off-by: Deborah Brouwer Signed-off-by: Hans Verkuil utils/v4l2-tracer/v4l2-tracer-gen.pl | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id

<    1   2   3   4   5   6   7   8   9   10   >