From patchwork Sat Mar 25 20:56:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 667329 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B95FAC6FD1C for ; Sat, 25 Mar 2023 20:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbjCYU4H (ORCPT ); Sat, 25 Mar 2023 16:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjCYU4F (ORCPT ); Sat, 25 Mar 2023 16:56:05 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 315EEA5CB; Sat, 25 Mar 2023 13:56:05 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 94B6F8BE; Sat, 25 Mar 2023 21:56:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1679777763; bh=8Ltqtewi2anpPoTZHd3yDIcuyfasUrBBCU/+n2ERLro=; h=From:To:Cc:Subject:Date:From; b=EL+XSRS7UYHqOnv87CC8Gr+JJKqm6+32syZ/Gm7Lg99bSAzizWLRCce9kSH+IHF2k vTFhM3sbF+jRxGslIEqeel236EvluCGUXW5U6bTkj6K6wpjEX8mSArpVxifoU1hG8u PRbwrgKD6Pfo8q/By1b7dvOjwyB30wFfl7Y1uH/w= From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Hans Verkuil Subject: [PATCH v2 0/2] media: i2c: adv7604: Fix handling of video adjustments Date: Sat, 25 Mar 2023 22:56:08 +0200 Message-Id: <20230325205610.22583-1-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello, This small series fixes two issues with video adjustments (brightness, contrast, saturation and hue) in the adv7604 driver. Patch 1/2 makes those controls effective (they currently have no effect), and patch 2/2 fixes the range of the hue control. I have successfully tested the series with an ADV7612, and Hans with the ADV7604. The ADV7604 and ADV7611 documentation of the hue control differs from the ADV7612, but I believe that's because earlier documentation was incorrect. In patch 2/2 I've decided to represent the hue value as an unsigned 8-bit integer, mapping to the [0°, 360°[ range. Using a signed value would map to the [-180°, 180°[ range instead, without making any other difference (and without requiring any modification to the patch other than changing the range). I don't have a strong preference between the two options, and I'm pretty sure we can freely pick one without any fear of an impact on existing userspace applications as patch 1/2 shows that the hue control has currently no effect. Compared to v1, this version fixes a typo in the commit message of patch 2/2. Laurent Pinchart (2): media: i2c: adv7604: Enable video adjustment media: i2c: adv7604: Fix range of hue control drivers/media/i2c/adv7604.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)