From patchwork Mon Nov 15 07:44:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 12692525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47611C433EF for ; Mon, 15 Nov 2021 07:47:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 104FF60F0F for ; Mon, 15 Nov 2021 07:47:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 104FF60F0F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WnIJ4ie5yfvf6SaoRJwVkOu7O8gzAFpskWj98btjGNo=; b=BUMLalBkjbc4XQ uUULQDsUHcK8Wd7dBOaUwx+En9V+6NOY7EI/mMZRFhfIQKPfsAfuHTz/CiNcdoh058j0fM9kiS5qD 1x6jafNwjNz4+UsWAz7rcL1WvSNMicBUe5ekI2nJM12M9q9kPWhXI54yVc2Ix0z1JKs9mB0O1NNYZ yMXNoyzefz/WU9hPYYDLRXgernCzckzf/JmmWHziWMKFZ2w2zp3M3WhxEMbYzG5/NzpDs/8MRTNWK 55X+Rq9BOatFpsYwnIDb3+LlA+VpPIy/jUw++7FvHM5lA3djCCVprBdcGsLSvvhZBoAqb6ycyZAmN WjP2oeTV1KOqsKC9o3qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmWgT-00EWdT-09; Mon, 15 Nov 2021 07:45:45 +0000 Received: from twspam01.aspeedtech.com ([211.20.114.71]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmWgM-00EWae-5x for linux-arm-kernel@lists.infradead.org; Mon, 15 Nov 2021 07:45:41 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 1AF7Kprr080859; Mon, 15 Nov 2021 15:20:51 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from JammyHuang-PC.aspeed.com (192.168.2.115) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Nov 2021 15:44:26 +0800 From: Jammy Huang To: , , , , , , , , , , , , Subject: [PATCH v4 0/9] add aspeed-jpeg support for aspeed-video Date: Mon, 15 Nov 2021 15:44:28 +0800 Message-ID: <20211115074437.28079-1-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.115] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 1AF7Kprr080859 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211114_234538_497036_C5A4792F X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The aim of this series is to add aspeed-jpeg support for aspeed-video driver. To achieve this major goal some refactors are included. In the last, debugfs information is also updated per this change. Changes in v4: - Add definition for the Aspeed JPEG format - Reserve controls for ASPEED - Use s_fmt to update format rather than new control - Update aspeed hq quality range, 1 ~ 12 Jammy Huang (9): media: aspeed: move err-handling together to the bottom media: aspeed: use v4l2_info/v4l2_warn/v4l2_dbg for log media: aspeed: add more debug log messages media: aspeed: refactor to gather format/compress settings media: v4l: Add definition for the Aspeed JPEG format media: v4l2-ctrls: Reserve controls for ASPEED media: aspeed: Support aspeed mode to reduce compressed data media: aspeed: add comments and macro media: aspeed: Extend debug message .../media/uapi/v4l/pixfmt-reserved.rst | 12 + drivers/media/platform/aspeed-video.c | 464 ++++++++++++++---- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/aspeed-video.h | 15 + include/uapi/linux/v4l2-controls.h | 5 + include/uapi/linux/videodev2.h | 1 + 6 files changed, 413 insertions(+), 85 deletions(-) create mode 100644 include/uapi/linux/aspeed-video.h