From patchwork Fri Mar 24 15:12:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 7156 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp702802vqo; Fri, 24 Mar 2023 08:15:41 -0700 (PDT) X-Google-Smtp-Source: AK7set/u4Oym3Pmx83FtBH0loWkGKypfAp7nispsvhtQS0jml73pAIfVc9vmwWVsC8R7f9ES8rut X-Received: by 2002:a05:6a00:1795:b0:594:1f1c:3d3b with SMTP id s21-20020a056a00179500b005941f1c3d3bmr11600752pfg.16.1679670941562; Fri, 24 Mar 2023 08:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679670941; cv=none; d=google.com; s=arc-20160816; b=kCtQU3Q6tWCx/0VMNjF7wrKy8vI7Bjqr3/2w0Fgq4IBFnESH7gbNdrEDi9bViBJdLs yKKj82OjavlI1IYga9Bc9He14ufvZhOuwgcfCaHeUBu0XgEJaN0U6S+wSpJwFeZ9B8Fo +emR7rf58oG/Dj9mvJBcGTy6vI2Kc/kAqOUgrMFq3QQ2VuwSJZRecuvXyzuMiGwoiYZ4 2Q03IKzx0VscG5f+zp3SObEGFloHJSlUKMdwecMft0gd/9qZnFK/Kpe6x2SQR6TT8A3V Kw/zfAjvU7HJj9cR5usdyrBPH4sDkYwzRiM1HNQZCrcVuAaE7DNwL8qwowb24SLJeTyP +rLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uEOh0qZu1a2y7GIksVmAUhkUm9kTU1yLtPR9HJ3ihj8=; b=wxQW6FE1St0LbIl58KjfAp0BLgoJN5ZY3H48yeBWPFXkCM/67xeYGpmqn6KPH3h6hQ 9Arw1b/k9syekj4AvhAMKZr4+f2hhS43PDFvfj4VwsCoEaPZedG37AnOGR2WYEDC62XM wfJrpZ+x3p0TS2kPH/5Pujq+Em6xdmZuwDzK8vg7pI4/ErmS+rRvdp+PVMhC1cdQYXcM pUudAkV4vi8Ht0Of3nj7LE6bGRpjfQDSx3Kpy2YipxfHRj5g9g6ODpEV3oEMZa2aYY0D ULmp/ilwU03twjn85ZcewgnUGB0pJcr5MOOcFPb6Zs4Tl3LHcgW0Yrc9k5gl4Mbbvd7l HZKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=B5BnTzis; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a056a0007c500b006267e3376ccsi18873301pfu.171.2023.03.24.08.15.28; Fri, 24 Mar 2023 08:15:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=B5BnTzis; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232178AbjCXPNG (ORCPT + 99 others); Fri, 24 Mar 2023 11:13:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232404AbjCXPM4 (ORCPT ); Fri, 24 Mar 2023 11:12:56 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CC7C1ACCF; Fri, 24 Mar 2023 08:12:42 -0700 (PDT) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id C2396E0007; Fri, 24 Mar 2023 15:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1679670760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uEOh0qZu1a2y7GIksVmAUhkUm9kTU1yLtPR9HJ3ihj8=; b=B5BnTzisW50LzspF5O2jxGpSPr1Nxkx+49UiHLF0VjP3w5CkLT5bKVsyuR1ENRXgD+XZbW eggTwlU2IsiUqMvICT7jzFRVg1kgvztD13zs+EzZskvCb2LMBB1PccWz/lOUATSkobuCSs fwjDf2vkSI6yaG1aK1HQO1M5BDZfsNkXF6C6eNor5V1b9cnmlQM+HqoqgcI9kNZ5hzEfG6 ffUTbOlGIhVQnY3nxMnVOqjY6a0AXkGmd3yocYHIyf+LLcgMGZqMeMe8BUR4vqrd5fjHIk B8Cp1kRst2DDlY5D81NpLGS5Fg39IrAat7cgjyGJpXaJ68xulkdPpfZd1EjyTQ== From: Paul Kocialkowski To: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Cc: Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Laurent Pinchart , Adam Pigg , Thomas Petazzoni Subject: [PATCH 0/9] media: sun6i-csi/isp: Implement MC I/O support Date: Fri, 24 Mar 2023 16:12:19 +0100 Message-Id: <20230324151228.2778112-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761262637350246352?= X-GMAIL-MSGID: =?utf-8?q?1761262637350246352?= This series is a follow-up to Adam Pigg's "suns6-csi changes to support libcamera" series, with the same purpose. As discussed in the original thread, it takes a different approach and ensures input/output format matching is maintained without regression. New v4l2 format info is also added about unusual formats used by the driver so that no specific logic is required to handle them. The same functionality is also added to the sun6i-isp driver. Paul Kocialkowski (9): media: v4l2: Add RGB565X pixel format to v4l2 format info media: v4l2: Add NV12_16L16 pixel format to v4l2 format info media: v4l2: Introduce compressed pixel encoding definition and helper media: v4l2: Add JPEG pixel format to v4l2 format info media: sun6i-csi: capture: Rework and separate format validation media: sun6i-csi: capture: Implement MC I/O with extended enum_fmt media: sun6i-csi: capture: Implement enum_framesizes media: sun6i-isp: capture: Implement MC I/O with extended enum_fmt media: sun6i-isp: capture: Implement enum_framesizes .../sunxi/sun6i-csi/sun6i_csi_capture.c | 157 ++++++++++++------ drivers/media/v4l2-core/v4l2-common.c | 6 + .../media/sunxi/sun6i-isp/sun6i_isp_capture.c | 35 +++- include/media/v4l2-common.h | 7 + 4 files changed, 154 insertions(+), 51 deletions(-)