From patchwork Thu Nov 18 07:40:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 12693024 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 89257C433F5 for ; Thu, 18 Nov 2021 07:44:35 +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 59F7261B1B for ; Thu, 18 Nov 2021 07:44:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 59F7261B1B 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=8VrSZdNNDragxgvLoAFJ1/lypB1VEa0aPyWXfqimATs=; b=ak4R99WchKaHb7 iCwnUfTgQTpc+iAixSSxJmvfN64zU15c67DjjCbjz20NyC0dXXCKj2HKyO6HDIAxJHYnM8nogwNPy naJSGhu8iHQ0OP4ipWJS3SufSZAUoLBBiyk8GZHgBkIeVLrCsrz+mh6RuB9lPweu36z1Tc/RzA9IG 9iYuxpl1YHzci2oqZIZMmbcDquhMF+2Xu90tAKfL2cnP3AWvWqVsuH8wGZNyg4Eve5bvrZgZh88ya 0KhtzLRdDmClbC93R0ZR8RcAMe9mgzdKr+227LtGalpBIK0+3AU0vTSUSvEmFPf1kJE+DTvwOoV5b BE82xr+gegvinzfJY2kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnc4V-0075cC-Cx; Thu, 18 Nov 2021 07:43:03 +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 1mnc4A-0075RH-Qk for linux-arm-kernel@lists.infradead.org; Thu, 18 Nov 2021 07:42:44 +0000 Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 1AI7IpO8076370 for ; Thu, 18 Nov 2021 15:18:51 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 1AI7GOq4076133; Thu, 18 Nov 2021 15:16:24 +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; Thu, 18 Nov 2021 15:40:10 +0800 From: Jammy Huang To: , , , , , , , , , , , , Subject: [PATCH v5 00/10] add aspeed-jpeg support for aspeed-video Date: Thu, 18 Nov 2021 15:40:21 +0800 Message-ID: <20211118074030.685-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 1AI7GOq4076133 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211117_234243_177054_72A42351 X-CRM114-Status: GOOD ( 10.08 ) 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 v5: - Use model data to tell different soc 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 (10): 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: use model-data 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 | 534 ++++++++++++++---- 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, 467 insertions(+), 101 deletions(-) create mode 100644 include/uapi/linux/aspeed-video.h