linux/drivers/media/platform
Eugen Hristev c28d4921a1 media: mediatek: vcodec: fix possible unbalanced PM counter
It is possible that mtk_vcodec_enc_pw_on fails, and in that scenario
the PM counter is not incremented, and subsequent call to
mtk_vcodec_enc_pw_off decrements the counter, leading to a PM imbalance.
Fix by bailing out of venc_if_encode in the case when mtk_vcodec_enc_pw_on
fails.

Fixes: 4e855a6efa ("[media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver")
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-04-27 10:04:30 +02:00
..
allegro-dvt media: allegro: Annotate struct mcu_msg_push_buffers_internal with __counted_by 2023-10-07 10:55:45 +02:00
amlogic media: ge2d: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
amphion media: amphion: Abort vpu parsing directly in seek 2024-02-16 11:46:32 +01:00
aspeed media: videobuf2: core: Rename min_buffers_needed field in vb2_queue 2023-12-13 17:31:27 +01:00
atmel media: platform: replace of_graph_get_next_endpoint() 2024-02-23 14:33:32 +01:00
cadence media: cadence: csi2rx: configure DPHY before starting source stream 2024-04-22 11:41:04 +02:00
chips-media media: chips-media: wave5: Add hrtimer based polling support 2024-03-25 10:13:43 +01:00
intel media: platform: replace of_graph_get_next_endpoint() 2024-02-23 14:33:32 +01:00
marvell media: v4l: marvell: select CONFIG_V4L2_ASYNC where needed 2024-02-16 11:46:33 +01:00
mediatek media: mediatek: vcodec: fix possible unbalanced PM counter 2024-04-27 10:04:30 +02:00
microchip media: videobuf2: core: Rename min_buffers_needed field in vb2_queue 2023-12-13 17:31:27 +01:00
nuvoton media: nuvoton: Convert to platform remove callback returning void 2024-02-28 16:00:32 +01:00
nvidia media: vde: Use struct_size() 2023-11-23 13:33:38 +01:00
nxp media: mipi-csis: Emit V4L2_EVENT_FRAME_SYNC events 2024-04-19 13:34:40 +03:00
qcom media: qcom: camss: vfe-17x: Rename camss-vfe-170 to camss-vfe-17x 2024-04-08 15:46:33 +02:00
renesas media: rcar-vin: Use pad variant of dv timing subdev calls 2024-04-09 08:15:04 +02:00
rockchip media updates for v6.9-rc1 2024-03-15 11:36:54 -07:00
samsung media: platform: replace of_graph_get_next_endpoint() 2024-02-23 14:33:32 +01:00
st media: platform: sti: hva: clk_unprepare unconditionally 2024-04-15 13:42:38 +02:00
sunxi media: sun8i-di: Fix chroma difference threshold 2024-02-16 11:46:31 +01:00
ti media: ti: j721e-csi2rx: Fix races while restarting DMA 2024-04-22 11:41:04 +02:00
verisilicon media: verisilicon: Support removing buffers on capture queue 2024-03-25 12:00:44 +01:00
via media: via: Use correct dependency for camera sensor drivers 2023-09-14 12:38:17 +02:00
xilinx media: platform: xilinx: Fix Kconfig indentation 2024-01-22 17:23:59 +01:00
Kconfig media: nuvoton: Add driver for NPCM video capture and encoding engine 2023-09-27 09:40:02 +02:00
m2m-deinterlace.c media: m2m-deinterlace: Convert to platform remove callback returning void 2023-04-11 16:59:15 +02:00
Makefile media: nuvoton: Add driver for NPCM video capture and encoding engine 2023-09-27 09:40:02 +02:00
video-mux.c media: v4l2-subdev: Rename .init_cfg() operation to .init_state() 2023-12-04 10:37:47 +01:00