]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: amphion: Trigger source change if colorspace changed
authorMing Qian <ming.qian@oss.nxp.com>
Wed, 17 Dec 2025 03:02:23 +0000 (11:02 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 08:41:59 +0000 (09:41 +0100)
commitbb22847d1134723d6ed67ef0aaeb44c6af53e3da
tree5844d87301c701148beab5f7af1b1e986ce43c58
parentd85f3207d75df6d7a08be6526b15ff398668206c
media: amphion: Trigger source change if colorspace changed

After encountering a colorspace change in the stream, the decoder
sends a V4L2_EVENT_SOURCE_CHANGE event with changes set to
V4L2_EVENT_SRC_CH_RESOLUTION.

Then the client can detect and handle the colorspace change without any
buffer reallocation

Signed-off-by: Ming Qian <ming.qian@oss.nxp.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/amphion/vdec.c
drivers/media/platform/amphion/vpu_v4l2.c