Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp507517lql; Mon, 11 Mar 2024 09:01:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQU2abT+rCEZY5Zb3AKY1K7CIoChyPq67fZH0CBOVv3ANS/H1Eg3d7xpyQgc0b5s2V2cFGBmsEhk9RI35+wR9WiTwZVhmekVi3p+cT0A== X-Google-Smtp-Source: AGHT+IFy7NCjo06qsV28JdGZaJme6RT0QUaLmIt1hOBLsS3tjuD8WK3pUZhidByWVDI5JE7P0JZu X-Received: by 2002:a17:906:c183:b0:a44:2ba0:8200 with SMTP id g3-20020a170906c18300b00a442ba08200mr4227156ejz.26.1710172860070; Mon, 11 Mar 2024 09:01:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710172860; cv=pass; d=google.com; s=arc-20160816; b=FRw8ush4fUin3yVBFnL8a+DTPDP/7iU1E2XlAudTDsl14HFty2Wb/4jW7i3+RD6YIb W3R6gXogPVVtMpbJqS2PL+Nl2DBMk+CvjhyEgF9NZ7T5/XQNTNnNWLytSU3usiaFy/qO RYSTI0Qudt19K6B9hbHiRJEbr/TBfrfEX8kaHlbJEEpmOME+8dzxUjtHup8+nOoFtwXY mAxNzqCgT/2MckTNLydVtO+5LK+VqopeRfBVwDPpHaP8Eld4cMbZ2nnJQhUsMbm9N0Ia 6WsiQ/muuGlj4keNVKZB4ILfkdgMDMeYKcdKUzqZdmzYy0qIi0v0XWgDaXokaKOMI1VR ZbAw== 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=0mQoyU+onQuV3R6koBK+l46vUcf+zpDI1EWYA2ZlhKY=; fh=lDxxb3kFrUjCmXIqhLRIk5eBCIRgGrGJbqrQU1vi73Y=; b=lfbAmXd7Foj9BV7iPxc8BbzsojZl+PpoIRzdFOIv7FtDg2gD7bxHkPsviPLUigzcp1 1xLpzIQodLNqOwFYajYqXcmM3WdsHJ6U8yij8mI9x4Yc5cWvfzC/R/tvqkFwM6tXSwtz HVB+I+09Sc5vaN6i+K5pAHlBV4VQ+nF+3rvSPz5nlMxQ9oKmr6HFekgWUGLyeIN5pAyz DM8QrEfCSjA/TZMusqyCL0Dq3nYoBf4iBEVYk9bUgK6tBUyRUETvxRsZigsbFDFxo9Oe QR4gFTDrwckHk8rEUX6d0dUK12++WhawL0wiGFZdWp4Up7U1GnlYAY7K9aaEEYial1VF Ll1g==; 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-99167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99167-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w27-20020a170906185b00b00a46287661bfsi969391eje.159.2024.03.11.09.00.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 09:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-99167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99167-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C73231F22196 for ; Mon, 11 Mar 2024 16:00:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2A5747F7C; Mon, 11 Mar 2024 16:00:47 +0000 (UTC) Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E7674122D; Mon, 11 Mar 2024 16:00:44 +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=1710172847; cv=none; b=EVsSe0uvmj59U5pgZVGIABBLhqjDxeN0HrZbiQsee7cMxVubCKMa6wXK6p++tERH+UGH/V2dfJerzoSU8i8dJ7f8w0MiTv7E4tKhvpjYEytrwZ/Vu+jFggQ9K4SnHDCtQFKQz32PsK6InhbJJj83nTtFTuzFjvYF9xZ7ahJu2to= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710172847; c=relaxed/simple; bh=rthV/O6G7MwZ6Q8s5DePKnoii7JT0Cy2tYaw0zWWqyE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=B7E3ZlJKpozYoZcXRHhr03wT7MlIoTRqLZUz5h3LlMaqiH0LMj6faa3+ssD7M5/p/gpbGYQBYrvjFGC+bV8qQ1Lhi1919gyXEu8+YPXsPxdP1a/fm/ZYMCDrWoJ9Tq7iTyZUX6lCliL9OXdmVhvea7eT5XNmT5BNBLlj0nJ90Ac= 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.digiteq.red (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id 5BC9E657AA; Mon, 11 Mar 2024 17:00:37 +0100 (CET) From: tumic@gpxsee.org To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Martin=20T=C5=AFma?= Subject: [PATCH v3 0/2] media: mgb4: YUV and variable framerate support Date: Mon, 11 Mar 2024 18:00:27 +0100 Message-ID: <20240311170029.2725-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 V3: - use div_u64() for 64b division (fixes build error on ARM32) Changes in V2: - Added missing stride limit Martin Tůma (2): media: mgb4: Add support for YUV image formats media: mgb4: Add support for V4L2_CAP_TIMEPERFRAME 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, 505 insertions(+), 80 deletions(-) base-commit: 65e6a2773d655172143cc0b927cdc89549842895 -- 2.44.0