From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E453D1A256B; Tue, 26 Aug 2025 11:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756207395; cv=none; b=KUChhZfdj6qoqcTbvR5gfll8ALXXQnmqfr2MGc37dk+OKik95geCUE1J/6AFmbNP2Rymwa5Yz+R957O53oSoepvXI1Wg6ZfM2bvJyim+4UmykUHRheuuxpXAZCuL75h41sS82+i7XFzIQLDNK6BNssqgCw337Ebh3pB+fE2uVAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756207395; c=relaxed/simple; bh=+iP5RkpYp8LB5l7LL5Aa5GnX5vdtTQGIZ8f467Q8Ft8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h+bclUU6vgL1mMzzfmV3yBQiR7BSdRLJfUo1o2JN2Up3rjXgsvIO1t6Ta5pkJDL5KZxTM/+5eXnh0Rap3OwsyeeSlvo6u0PIVJJmeecUw9RV458EOVfcUA5VaYc1wXIUuoQIG3BSNu1rGQHQuNbl93KOsyDmltuHlQMGADauEsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MPpybz1G; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MPpybz1G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DC89C4CEF1; Tue, 26 Aug 2025 11:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756207394; bh=+iP5RkpYp8LB5l7LL5Aa5GnX5vdtTQGIZ8f467Q8Ft8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MPpybz1GDgU1lTyQrOazEkIMPBZZko7TiBeTNJAi8WN/KbGcXnNrB/KFSND/AKV5B L8wDPrcREHfhCs3hLvVBMaXLoSY583anEVpyd9ine2CLvGte0hDbXqfTGiGQgPvBy8 Wl1JpW2xJthmmo7n0ethfiCmvWo3KZrFpDAuC+LE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bryan ODonoghue , Vikash Garodia , Dikshita Agarwal , Bryan ODonoghue , Hans Verkuil , Neil Armstrong Subject: [PATCH 6.16 165/457] media: iris: Update CAPTURE format info based on OUTPUT format Date: Tue, 26 Aug 2025 13:07:29 +0200 Message-ID: <20250826110941.453515827@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110937.289866482@linuxfoundation.org> References: <20250826110937.289866482@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dikshita Agarwal commit 8aadfd445373b74de4a5cd36736843ae01856636 upstream. Update the width, height and buffer size of CAPTURE based on the resolution set to OUTPUT via VIDIOC_S_FMT. This is required to set the updated capture resolution to firmware when S_FMT is called only for OUTPUT. Cc: stable@vger.kernel.org Fixes: b530b95de22c ("media: iris: implement s_fmt, g_fmt and try_fmt ioctls") Reviewed-by: Bryan O'Donoghue Acked-by: Vikash Garodia Tested-by: Neil Armstrong # on SM8550-QRD Tested-by: Neil Armstrong # on SM8550-HDK Tested-by: Neil Armstrong # on SM8650-QRD Tested-by: Neil Armstrong # on SM8650-HDK Signed-off-by: Dikshita Agarwal Tested-by: Vikash Garodia # on sa8775p-ride Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/qcom/iris/iris_vdec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/qcom/iris/iris_vdec.c b/drivers/media/platform/qcom/iris/iris_vdec.c index 9c049b9671cc..d342f733feb9 100644 --- a/drivers/media/platform/qcom/iris/iris_vdec.c +++ b/drivers/media/platform/qcom/iris/iris_vdec.c @@ -171,6 +171,11 @@ int iris_vdec_s_fmt(struct iris_inst *inst, struct v4l2_format *f) output_fmt->fmt.pix_mp.ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; output_fmt->fmt.pix_mp.quantization = f->fmt.pix_mp.quantization; + /* Update capture format based on new ip w/h */ + output_fmt->fmt.pix_mp.width = ALIGN(f->fmt.pix_mp.width, 128); + output_fmt->fmt.pix_mp.height = ALIGN(f->fmt.pix_mp.height, 32); + inst->buffers[BUF_OUTPUT].size = iris_get_buffer_size(inst, BUF_OUTPUT); + inst->crop.left = 0; inst->crop.top = 0; inst->crop.width = f->fmt.pix_mp.width; -- 2.50.1