Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp398326rbb; Fri, 26 Apr 2024 07:25:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAJCLqxrkuutNAhsfEnQ56WI2VhLjeR10FRnPJ9IXmkG/iP1HS3e14HCAk13e196PLmlPzH7D2PcyqB2eD1eRbYLFPJDf+CamyZRFZEQ== X-Google-Smtp-Source: AGHT+IFCQHduS4NHglXmefnPQQwrQol8f3BVfUZSzMVgIbGJZzx4ohHedZWKEwMrusxe6g8tguA9 X-Received: by 2002:a05:622a:6093:b0:43a:43dc:f5e0 with SMTP id hf19-20020a05622a609300b0043a43dcf5e0mr3809870qtb.9.1714141559647; Fri, 26 Apr 2024 07:25:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714141559; cv=pass; d=google.com; s=arc-20160816; b=xqubI7qIDOqISen1vaaraYXAQwAG0siKgrUosfvi7Am4ZSDsfjAZn7osF8B3yuATP4 BkKbo+KPwDB37pKgkB/XriRRtX2F6xdmYikikUjy02ctvuP+yvG8A0V5ofzjonISf023 /Zfsh/QXvHPJyrMJRQmbWfrsW+G0P7ZVjjL6XMDAUk0A3U21+9A5Ie0FZ07BoJ5WtCSm 6cJmb2zhbD4r9q7qKfWvhWbWY+SPZL9bA33l1V8dP4VXzqLMasg9kJ4xN+DSolD3rIUn oB3mtQNGbzYTV9Nc7eOwjOqyFLhQkiKnm3dkUfjqOB1Dp8BtL4wEcqtERkWuDlv7ZfwF weYw== 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=V9h21ZCKFQdwMo93bq/oyCg2HjXTe2VvR4e1NoZ8Srs=; fh=NcJMVFNaR8bzRgLN6H4coLXdbR1fdwxxAYxDB/lPPz0=; b=pNqe31grVIHLgURwzkwQIoKnTVzlDPRs++BsX967lQrsYoz8TB3wjF+83gHGMfUxkQ zdnBdCiWu4hRDpESZ6O2sAO5045NwainCQKxDX47NPo4Rp+0t5lsamPbs2hPNQjkeqaq +1zYMJZsatn71S4MBDtqNHZsnTjue72CrQei0YqW8fCoZClJRwdjmcVmEGYzYFBsdaYV RpkAq7vUZl0/VBeTqY2+Z1p9GX6O51rgtH4UBqk3B+OuFYcswAnXpCVF9Kc/O4K5s2GW gDJzksR+SbePxjkkJkFQvICaM+7/kbk1IDm3nNbBF6BztzYvAp5/BowdK1DOJMA/Xq7m ClqA==; 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-160147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160147-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay6-20020a05622a228600b0043a1c645a36si6357664qtb.337.2024.04.26.07.25.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 07:25:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-160147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160147-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 64D561C2264E for ; Fri, 26 Apr 2024 14:25:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 407CF149004; Fri, 26 Apr 2024 14:25:37 +0000 (UTC) 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 C87C7148854; Fri, 26 Apr 2024 14:25:34 +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=1714141536; cv=none; b=u9gFo48rUBpB7ltHPNFoNn4RNGpUl3bmEZK5CScKQ+1dPyj1TEHCEM6ruiSk5cjxhkDgCFIEsUyDeMlA/5fZSJX0SgKStRcndaaGWLcxKvEnzzie2B1jCcM2LdX65ONEiCa7rIiYhbPFqOqV4ZTCLhaZeYJHmMyLPg63S+WDva8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714141536; c=relaxed/simple; bh=6KcDOU9+CwjO+b4+9EEBY0zyGxUPO/qtrcLQO/4Qd1M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kyk8yMlx28ZYy7LdC36e/L5AccvYuKX5dcWfx75F5AsEOOAMWq66Liu60orvHl+0uGCfrGYJQifJHgOvsagUY0rTBgsEOguNM7ruw2V2qyIYw47xDVvJ7g+uKjXRufYCyzgAbH3NRpMztii42ep/T3k3KzGAg6Djup/Y7LyekhY= 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 5072742E82; Fri, 26 Apr 2024 16:16: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 v5 0/4] media: mgb4: YUV and variable framerate support Date: Fri, 26 Apr 2024 16:16:15 +0200 Message-ID: <20240426141619.8866-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 V5: - Removed surplus v4l2_format.type checks. - Improved the patch descriptions. - Splitted the frame rate limit patch into separate code/documentation parts. 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 (4): media: mgb4: Add support for YUV image formats media: mgb4: Add support for V4L2_CAP_TIMEPERFRAME media: mgb4: Fixed signal frame rate limit handling media: admin-guide: mgb4: Outputs DV timings documentation update Documentation/admin-guide/media/mgb4.rst | 23 +- 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 | 193 +++++++++++--- drivers/media/pci/mgb4/mgb4_vin.h | 3 +- drivers/media/pci/mgb4/mgb4_vout.c | 309 ++++++++++++++++++++--- drivers/media/pci/mgb4/mgb4_vout.h | 5 +- 9 files changed, 483 insertions(+), 92 deletions(-) base-commit: 8a718752f5c339137c5b05e54f116cd26d5a4143 -- 2.44.0