From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/media/i2c/gc032a.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/kernel/drivers/media/i2c/gc032a.c b/kernel/drivers/media/i2c/gc032a.c
index 1115d30..3cc7156 100644
--- a/kernel/drivers/media/i2c/gc032a.c
+++ b/kernel/drivers/media/i2c/gc032a.c
@@ -944,9 +944,7 @@
 	if (fie->index >= ARRAY_SIZE(gc032a_framesizes))
 		return -EINVAL;
 
-	if (fie->code != MEDIA_BUS_FMT_YUYV8_2X8)
-		return -EINVAL;
-
+	fie->code = MEDIA_BUS_FMT_YUYV8_2X8;
 	fie->width = gc032a_framesizes[fie->index].width;
 	fie->height = gc032a_framesizes[fie->index].height;
 	fie->interval = gc032a_framesizes[fie->index].max_fps;

--
Gitblit v1.6.2