]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: iris: Refine internal buffer reconfiguration logic for resolution change
authorDikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Wed, 5 Nov 2025 05:47:37 +0000 (11:17 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 6 Nov 2025 10:18:10 +0000 (11:18 +0100)
commitaec75e355c633e4b0967c99580bd8ef93e0cdc98
treee27da00e49dfb42a5469edb9981ecc424f5df508
parente81b60c4a88e428b43ad53e7729fa5157ad6e5f2
media: iris: Refine internal buffer reconfiguration logic for resolution change

Improve the condition used to determine when input internal buffers need
to be reconfigured during streamon on the capture port. Previously, the
check relied on the INPUT_PAUSE sub-state, which was also being set
during seek operations. This led to input buffers being queued multiple
times to the firmware, causing session errors due to duplicate buffer
submissions.

This change introduces a more accurate check using the FIRST_IPSC and
DRC sub-states to ensure that input buffer reconfiguration is triggered
only during resolution change scenarios, such as streamoff/on on the
capture port. This avoids duplicate buffer queuing during seek
operations.

Fixes: c1f8b2cc72ec ("media: iris: handle streamoff/on from client in dynamic resolution change")
Cc: stable@vger.kernel.org
Reported-by: Val Packett <val@packett.cool>
Closes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4700
Signed-off-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/qcom/iris/iris_common.c