From patchwork Thu Jul 4 17:15:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 11031771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BBD9E138B for ; Thu, 4 Jul 2019 17:16:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD9FA28A97 for ; Thu, 4 Jul 2019 17:16:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F10128ABA; Thu, 4 Jul 2019 17:16:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFE7D28A9C for ; Thu, 4 Jul 2019 17:16:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727374AbfGDRQW (ORCPT ); Thu, 4 Jul 2019 13:16:22 -0400 Received: from bin-mail-out-06.binero.net ([195.74.38.229]:13160 "EHLO bin-mail-out-06.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727446AbfGDRQW (ORCPT ); Thu, 4 Jul 2019 13:16:22 -0400 X-Halon-ID: 6acd8e76-9e7f-11e9-8ab4-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [145.14.112.32]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 6acd8e76-9e7f-11e9-8ab4-005056917a89; Thu, 04 Jul 2019 19:16:19 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Laurent Pinchart , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH v4 0/4] rcar-vin: Add support for RGB formats with alpha component Date: Thu, 4 Jul 2019 19:15:58 +0200 Message-Id: <20190704171602.29541-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This small series adds support for two new pixel formats for the rcar-vin driver; V4L2_PIX_FMT_ARGB555 and V4L2_PIX_FMT_ABGR32. Both formats have an alpha component so a new standard control is also added to control its value, V4L2_CID_ALPHA_COMPONENT. The series is based on the latest media-tree and is tested on both Renesas Gen2 and Gen3 hardware without any regressions found. Patch 1/4 fixes a badly named register name, 2/4 adds the new control while 3/4 adds the two new pixel formats. Patch 4/4 is a clean up now that Gen2 and Gen3 always have controls and v4l2_ctrl_handler_setup() should be called for both cases. * Changes since v3 - Fixed up commit message. - Collected review tags. * Changes since v2 - Protect the writing of the alpha value when streaming with the spin lock to make sure the streaming state is stable. - Add patch 4/4 to call v4l2_ctrl_handler_setup() for the media controller centric Gen3 mode of the driver. Niklas Söderlund (4): rcar-vin: Rename VNDMR_DTMD_ARGB1555 to VNDMR_DTMD_ARGB rcar-vin: Add control for alpha component rcar-vin: Add support for RGB formats with alpha component rcar-vin: Always setup controls when opening video device drivers/media/platform/rcar-vin/rcar-core.c | 53 ++++++++++++++++++++- drivers/media/platform/rcar-vin/rcar-dma.c | 44 ++++++++++++++++- drivers/media/platform/rcar-vin/rcar-v4l2.c | 38 +++++++++------ drivers/media/platform/rcar-vin/rcar-vin.h | 5 ++ 4 files changed, 121 insertions(+), 19 deletions(-)