]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:03 +0000 (10:17 +0100)
commit7cd1d942b87e2a4a652281f04d5c8cd20854a555
treeb700e577383e7abaa4ba4dcb913127fda1c925c0
parentd786859abab36070bb24d8ed655f377680a9b198
media: iris: Refine internal buffer reconfiguration logic for resolution change

commit aec75e355c633e4b0967c99580bd8ef93e0cdc98 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/qcom/iris/iris_common.c