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 A492C2F5479; Tue, 11 Nov 2025 01:16:44 +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=1762823804; cv=none; b=nyZDap7vJPzQuY3Bcbtd4TLNZxymGbfTVAnl/MG/78i9SThMqpxcpgfOjWVzHXwmTVMwiTDgnH4/TfUn6cdtUW5CMpyh+5NCRX2ct2XEtubWTXZw9mhM/8+WjeHdknQbYioT5rataiyAQCpg4PA2iK23+Pr/xZzGdZK6tiSV4go= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762823804; c=relaxed/simple; bh=fSR+fX2Y9LGfqb4uXBKoptpOW817lihqO0NNlA18ysE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aBpJUjt+WsYz5p5jMaXXl/zeUebhKgjiDjyBf31WF5/pISQcKIkXN06DHpsUFU4PG8Bi3IGQD4AvCjPu4YrX4Y2XcHaenGFyvfg6QMa7o6pUDXWCG0ucyXgD3yHbBkMitfpgZxnSQFDRIHPjmTs6CmrzjQDNNbFH1puE7Ae67jA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P9HDmRrl; 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="P9HDmRrl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 378EAC116B1; Tue, 11 Nov 2025 01:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762823804; bh=fSR+fX2Y9LGfqb4uXBKoptpOW817lihqO0NNlA18ysE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P9HDmRrlYnsASXuImaOSMp4SoHtvN4PHDDcf6emrGekF/BpsGKTtY/djDQ8M694Z/ SMrN+SRXjnRujrexBJ7YW+8WxXAO1RF3MdvUlcx1xCccDFWWUkiPBuMeXJrxZPs4SV SirnyPOajPTrvu/SweEiVDKCY3KQs5+LFPO9VKa0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vladimir Zapolskiy , Sakari Ailus , Hans Verkuil , Sasha Levin Subject: [PATCH 6.12 319/565] media: i2c: og01a1b: Specify monochrome media bus format instead of Bayer Date: Tue, 11 Nov 2025 09:42:55 +0900 Message-ID: <20251111004534.064290737@linuxfoundation.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251111004526.816196597@linuxfoundation.org> References: <20251111004526.816196597@linuxfoundation.org> User-Agent: quilt/0.69 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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vladimir Zapolskiy [ Upstream commit bfbd5aa5347fbd11ade188b316b800bfb27d9e22 ] The OmniVision OG01A1B image sensor is a monochrome sensor, it supports 8-bit and 10-bit RAW output formats only. That said the planar greyscale Y8/Y10 media formats are more appropriate for the sensor instead of the originally and arbitrary selected SGRBG one, since there is no red, green or blue color components. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/i2c/og01a1b.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/og01a1b.c b/drivers/media/i2c/og01a1b.c index 78d5d406e4b72..b7d0b677975d5 100644 --- a/drivers/media/i2c/og01a1b.c +++ b/drivers/media/i2c/og01a1b.c @@ -682,7 +682,7 @@ static void og01a1b_update_pad_format(const struct og01a1b_mode *mode, { fmt->width = mode->width; fmt->height = mode->height; - fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; + fmt->code = MEDIA_BUS_FMT_Y10_1X10; fmt->field = V4L2_FIELD_NONE; } @@ -828,7 +828,7 @@ static int og01a1b_enum_mbus_code(struct v4l2_subdev *sd, if (code->index > 0) return -EINVAL; - code->code = MEDIA_BUS_FMT_SGRBG10_1X10; + code->code = MEDIA_BUS_FMT_Y10_1X10; return 0; } @@ -840,7 +840,7 @@ static int og01a1b_enum_frame_size(struct v4l2_subdev *sd, if (fse->index >= ARRAY_SIZE(supported_modes)) return -EINVAL; - if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) + if (fse->code != MEDIA_BUS_FMT_Y10_1X10) return -EINVAL; fse->min_width = supported_modes[fse->index].width; -- 2.51.0