From nobody Tue Dec 16 22:30:27 2025 Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) (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 7F9A61DA5F; Fri, 30 May 2025 10:24:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.205.14.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748600689; cv=none; b=H5XXm8jcvTSa8ra4r0rv4BRyDBtHmpB+2raOlfV4jwgyWcnQnGQUnYMsZ1aPUqcOESim9oOXmPKYroYHglkJWU4y03NZUpxzB4YpmpmL8NEG9zVTmNGNiZJzmZCQPE9KWjzP53X0G0ppq6OwAkWLjtul4z6SIJWs4iflzbDcHkM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748600689; c=relaxed/simple; bh=Lupz2iTDHGUuhlaI2fVwSrIneOs8j+pnxEeTB6pHpRE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ATAitM2jS3eJydIxlazYeffF4xeYon3lPjWR7kyMRzwzxAAoCRxdSYLhjyK4kbtQSTrs9Gd8ZvlbvhNgipOoe9R2W8A+jR8UJLC8DIcZLLUlrMMQNPdUeCeat9vbdcgJYJZFqyeeAKWCb+QvDaM08TBYKSaBVJETdwvgl9KcQso= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gpxsee.org; spf=pass smtp.mailfrom=gpxsee.org; arc=none smtp.client-ip=37.205.14.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gpxsee.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gpxsee.org Received: from mgb4.. (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id 85A4486AE6; Fri, 30 May 2025 12:17:26 +0200 (CEST) From: tumic@gpxsee.org To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Martin=20T=C5=AFma?= Subject: [PATCH] Enumerate only the available timings Date: Fri, 30 May 2025 12:17:20 +0200 Message-ID: <20250530101720.1663-1-tumic@gpxsee.org> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Martin T=C5=AFma Enumerate only the available (as given by the sysfs setup - our "EDID replacement") timings, not all theoretically possible. This is the video outputs part of the previous inputs patch that somehow got "lost in translation". Signed-off-by: Martin T=C5=AFma --- drivers/media/pci/mgb4/mgb4_vout.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/pci/mgb4/mgb4_vout.c b/drivers/media/pci/mgb4/mg= b4_vout.c index 14c5725bd4d8..c179c425e167 100644 --- a/drivers/media/pci/mgb4/mgb4_vout.c +++ b/drivers/media/pci/mgb4/mgb4_vout.c @@ -492,7 +492,14 @@ static int vidioc_s_dv_timings(struct file *file, void= *fh, static int vidioc_enum_dv_timings(struct file *file, void *fh, struct v4l2_enum_dv_timings *timings) { - return v4l2_enum_dv_timings_cap(timings, &video_timings_cap, NULL, NULL); + struct mgb4_vout_dev *voutdev =3D video_drvdata(file); + + if (timings->index !=3D 0) + return -EINVAL; + + get_timings(voutdev, &timings->timings); + + return 0; } =20 static int vidioc_dv_timings_cap(struct file *file, void *fh, base-commit: 5e1ff2314797bf53636468a97719a8222deca9ae --=20 2.48.1