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 C45BA301EEA; Sat, 28 Feb 2026 17:35:36 +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=1772300136; cv=none; b=gI+ZbXUy+pA6Ons+mTwbW4v5W2wsrLl9o4IN9POH1cEsiZP7TWKFjuJ0RQNbJhyJ73tmfjEtxqHvGs4GDOsBBiKl889Zf8KTgqD9+RCsBfJ43gG5IbcEQfPWLFQu4lO3i0qxF8AOSwrofjb3zw+FFZUKax5B0sBeWpTcuCRYnns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300136; c=relaxed/simple; bh=jxCt0uMfHKs951p72ivQYkem2ETitUUGW3QD0odWOgU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GgqwOynMD/u6bGQb/+yv6eZoIxZx2ft4w2vU5yyzpY19pj/tcnMGkVRR00wn2Skh5NoKw9i57+K55a8DHpd37BUESMBqC6KPd/K2QkETlnox2UIa1/bgqXE9n5MIAuTZRgGK6Zgz/YqeHH6y2GBnWr749G5ahKOSzsAneQwdXA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BhdAuNtl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BhdAuNtl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F09D8C116D0; Sat, 28 Feb 2026 17:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300136; bh=jxCt0uMfHKs951p72ivQYkem2ETitUUGW3QD0odWOgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BhdAuNtlxjtOLTbF/o+6uyYc2BtiCP86OFLrXf0z8QYvy9YB8AWCsQtHiG0g3EVX5 48Tvu9OKirE+qlD8AGUYoKy1pV5e8g+9UDqKfufFw/PDolxMim6tRNWlBq5HVlrCtm 8mWM92ctQMf0w84n7f2N5vn/zDEZj0kzHHfik0TH1DNby2mHuzvpuIbXX002L3cPEV cxYcrkTdV5yRYCUV/50DLt9aUw7tUC2OWmvKH83D7Ri5r/OEGOesZ4ZgO1jmPyPaBU KadAopWSHDyipX5n/dLA8exdD0k7Hs1ppc2dAFbBbgX3wbQuldn8GLHE/d4pntcdFd Cawuq4gt6Cf3A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans Verkuil , Sakari Ailus , Sasha Levin Subject: [PATCH 6.19 154/844] media: omap3isp: set initial format Date: Sat, 28 Feb 2026 12:21:07 -0500 Message-ID: <20260228173244.1509663-155-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Hans Verkuil [ Upstream commit 7575b8dfa91f82fcb34ffd5568ff415ac4685794 ] Initialize the v4l2_format to a default. Empty formats are not allowed in V4L2, so this fixes v4l2-compliance issues: fail: v4l2-test-formats.cpp(514): !pix.width || !pix.height test VIDIOC_G_FMT: FAIL Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus Signed-off-by: Sasha Levin --- drivers/media/platform/ti/omap3isp/ispvideo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/ti/omap3isp/ispvideo.c b/drivers/media/platform/ti/omap3isp/ispvideo.c index 68e6a24be5614..eb33a776f27c9 100644 --- a/drivers/media/platform/ti/omap3isp/ispvideo.c +++ b/drivers/media/platform/ti/omap3isp/ispvideo.c @@ -1288,6 +1288,7 @@ static const struct v4l2_ioctl_ops isp_video_ioctl_ops = { static int isp_video_open(struct file *file) { struct isp_video *video = video_drvdata(file); + struct v4l2_mbus_framefmt fmt; struct isp_video_fh *handle; struct vb2_queue *queue; int ret = 0; @@ -1330,6 +1331,13 @@ static int isp_video_open(struct file *file) memset(&handle->format, 0, sizeof(handle->format)); handle->format.type = video->type; + handle->format.fmt.pix.width = 720; + handle->format.fmt.pix.height = 480; + handle->format.fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; + handle->format.fmt.pix.field = V4L2_FIELD_NONE; + handle->format.fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; + isp_video_pix_to_mbus(&handle->format.fmt.pix, &fmt); + isp_video_mbus_to_pix(video, &fmt, &handle->format.fmt.pix); handle->timeperframe.denominator = 1; handle->video = video; -- 2.51.0