Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1161979lqp; Fri, 22 Mar 2024 07:19:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPVSPE4OzIXj3WDzUlFlJrFiWzlos4Z4DrK/XqBc2drD8wJII+r4IzVa5dntnjUiedrvO0S4yzYWIorFIcZzzpqSZz/X4R/B24JT1+Gw== X-Google-Smtp-Source: AGHT+IE1w+Uq9tweq8XGwg5pB6EHTfegN+aZgXahOry07af1RFdo08lQDpFunuEt+7uvHAsvr5q8 X-Received: by 2002:a17:902:ec84:b0:1dc:42da:bad with SMTP id x4-20020a170902ec8400b001dc42da0badmr3408336plg.62.1711117178370; Fri, 22 Mar 2024 07:19:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711117178; cv=pass; d=google.com; s=arc-20160816; b=Af84KYoNj8uYoHU9MNDv+XZwnZRlHqfhpp5hzWi1lp1tmNoYnhtuNYSNFqTOKMO0ml bLisbdRzYUiCJgo7pYguQ/Sx2r1urttYEIPaiJJFxlLncJCTZsbcwnzZ/VA5ksufEQ+P JcwMxmZAKMtOEEwYOFUKSVFrVqlYfo+ek8S396lmvwcr9YCj9uA+Zq+lvaW5Je/VfT6s tN7zPOQR+BLb61BX5nvxeKVJPjIkqDqVAwxT5SsioiHDvoxHe3aqRglw1mtwns5hG3ck MzczuOFmiS2++9DZTkMb7c4I8D6Yy6ODs3zvylxMafkwcRzhcywlL5Z8atZSRXqPv+d5 FTlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=v1nsIUtVbSMRD2/Ilt5BIgYHabhso0chMCFp5ujMIf4=; fh=NcJMVFNaR8bzRgLN6H4coLXdbR1fdwxxAYxDB/lPPz0=; b=0I9iYrARYJOAZeTi3KppAHoE2VgnxXXP/I8ZzhXK57GsJ2KSkEJLmhv8of6RPy7lya C7D/0sen91peFX7UvWuJ+b7BRr4Q6iyUi/u0xa2xrcTLCOMukBegS26Yt/WTJLsf5aSS Is6zBrHCaO3gL8rEg2mXNbkmLiYlJoZfL8xQ0qhCnwW0FCNtvE3kTkPjTxYC1oJK1hms tdGBrL7vFQP1h3a4hWz7JUhl2jw0xrX4XN4BoGA6NCOLt2HTX2wsNnO7/ryhT/M2PXz5 3bX9DWYg5etgG2OtcBtbJX5UT9+Abx0vO1VLMrzpW23xBCzRHoGvTiEKjLA6bjwKPSBC xU7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-111581-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111581-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ju23-20020a170903429700b001dddcbe0aacsi1879332plb.188.2024.03.22.07.19.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111581-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-111581-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111581-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B33C5289317 for ; Fri, 22 Mar 2024 14:10:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B63D647A6F; Fri, 22 Mar 2024 14:10:32 +0000 (UTC) Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 427EF44C84; Fri, 22 Mar 2024 14:10:28 +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=1711116632; cv=none; b=DCIIvmoCpoVnrtmsvCK97Qvy8zVANN8HcW1XLlusBA1j1ufb7ObS3d5UWiUjvEbwX7T2okbGTqHZPaD2RPkMwLivSpRUcQvgxwEt+kLFaHWEtcUsCRmcEhQaO6tKuah/i2BSpEym6Q7Ve8+XOmgMfRc5/m74Eskwac1RAO1KoEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711116632; c=relaxed/simple; bh=hzN37LrXUnNaqZM3O6Ud4Y3v21xt+dXsLN5PkrXZaw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cIOV3ul7hEMw3x8bISicKj9nJTCMFaznYj2ObKyDWh+QROuZOKcHPzECY31MLzKSi6IbQS3wV78KIWmQMq2OWB2IWPHM4z4cFUrvVgyxBIsc6M0mN0leFojYaII3WLueRG1Sg4XZ0fHMfH9RdsuFInwoF55ntGZB2LEaDye/goE= 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 4FFCD65F7D; Fri, 22 Mar 2024 15:10:22 +0100 (CET) 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 v4 0/3] media: mgb4: YUV and variable framerate support Date: Fri, 22 Mar 2024 16:10:02 +0100 Message-ID: <20240322151005.3499-1-tumic@gpxsee.org> X-Mailer: git-send-email 2.44.0 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: 8bit From: Martin Tůma Recent mgb4 FW update added support for the YUV image format and variable framerates independent of the signal framerate. The following patches extend the mgb4 driver with support for both features. Changes in V4: - Splitted the output frame_rate handling fix from the variable frame rate addition patch. Changes in V3: - Use div_u64() for 64b division (fixes build error on ARM32) Changes in V2: - Added missing stride limit Martin Tůma (3): media: mgb4: Add support for YUV image formats media: mgb4: Add support for V4L2_CAP_TIMEPERFRAME media: mgb4: Fixed signal frame rate limit handling Documentation/admin-guide/media/mgb4.rst | 8 +- drivers/media/pci/mgb4/mgb4_core.c | 2 +- drivers/media/pci/mgb4/mgb4_core.h | 2 + drivers/media/pci/mgb4/mgb4_io.h | 29 +- drivers/media/pci/mgb4/mgb4_sysfs_out.c | 9 +- drivers/media/pci/mgb4/mgb4_vin.c | 205 ++++++++++++--- drivers/media/pci/mgb4/mgb4_vin.h | 3 +- drivers/media/pci/mgb4/mgb4_vout.c | 322 ++++++++++++++++++++--- drivers/media/pci/mgb4/mgb4_vout.h | 5 +- 9 files changed, 504 insertions(+), 81 deletions(-) base-commit: b14257abe7057def6127f6fb2f14f9adc8acabdb -- 2.44.0