From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756662AbeDXIYg (ORCPT ); Tue, 24 Apr 2018 04:24:36 -0400 Received: from srv-hp10-72.netsons.net ([94.141.22.72]:51659 "EHLO srv-hp10-72.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756552AbeDXIYd (ORCPT ); Tue, 24 Apr 2018 04:24:33 -0400 From: Luca Ceresoli To: linux-media@vger.kernel.org Cc: Luca Ceresoli , Leon Luo , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: [PATCH v2 00/13] media: imx274: cleanups, improvements and SELECTION API support Date: Tue, 24 Apr 2018 10:24:05 +0200 Message-Id: <1524558258-530-1-git-send-email-luca@lucaceresoli.net> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv-hp10.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: srv-hp10.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: srv-hp10.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this patchset introduces cropping support for the Sony IMX274 sensor using the SELECTION API. With respect to v1 this patchset adds the "media: " prefix to commits and fixes a warning in patch 9. Patches 1-6 clean up and restructure code in various places and are pretty much independent from the cropping feature. Patches 7-11 are further restructuring which are mostly useful to implement cropping API in a cleaner way. Patch 12 introduces a helper to allow setting many registers computed at runtime in a straightforward way. This would not have been very useful before because all long register write sequences came from const tables, but it's definitely a must for the cropping code. Patch 13 implements cropping in the set_selection pad operation. On the v4l2 side there is nothing special. The most tricky part was respecting all the device constraints on the horizontal crop. Regards, Luca Luca Ceresoli (13): media: imx274: document reset delays more clearly media: imx274: fix typo in comment media: imx274: slightly simplify code media: imx274: remove unused data from struct imx274_frmfmt media: imx274: rename and reorder register address definitions media: imx274: remove non-indexed pointers from mode_table media: imx274: initialize format before v4l2 controls media: imx274: consolidate per-mode data in imx274_frmfmt media: imx274: get rid of mode_index media: imx274: actually use IMX274_DEFAULT_MODE media: imx274: simplify imx274_write_table() media: imx274: add helper function to fill a reg_8 table chunk media: imx274: add SELECTION support for cropping drivers/media/i2c/imx274.c | 598 ++++++++++++++++++++++++++------------------- 1 file changed, 348 insertions(+), 250 deletions(-) -- 2.7.4