From patchwork Fri Dec 2 15:27:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Stevenson X-Patchwork-Id: 630514 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 EB5D9C47089 for ; Fri, 2 Dec 2022 15:28:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233703AbiLBP2S (ORCPT ); Fri, 2 Dec 2022 10:28:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbiLBP2H (ORCPT ); Fri, 2 Dec 2022 10:28:07 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A6F05435C for ; Fri, 2 Dec 2022 07:28:02 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id n7so3766176wms.3 for ; Fri, 02 Dec 2022 07:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Yfz7Nubr199pY33ajZs0mPC+wji22IeMXgdJJhI7MWk=; b=Ydp+JiKt60nUr15pRavvUN1aj/R7jOkd+1QRS69q6L8cO/7e64EvlU8lun8J+vRx6a CE3w1PzQJxt5XXBfCf8sqWDHw4RwszEOcnhN+p3fACsq8mc+G5yrMO/axJf8jQNzBNgT NXN9+rFGtGsMmqlCUW8Yg+zjCBJxoHOmrcQKqovwFJeEtD6YLmsee1+osa5k/w13+UsV RMSqT+0OZs2o/45ueBhS30v+azUaZT2UwJqE70E5ZIajyE/KQ7mS0zyc0G+g1Xz/mGki UaS1Dm/zpXJsGzRAl4cL200KOvsHYTHl7T0AjM0qf/OR9U2ux9bnk9w1IohqrsidmbZ4 fp8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Yfz7Nubr199pY33ajZs0mPC+wji22IeMXgdJJhI7MWk=; b=jt6j8sKWkR5IxpQI+CK17Hwn4sMM0g8SrllCw8a/OamQxVKAHwyriTAvOyBBlNgEzD Jq7mxFsMZ+Kc1MFcD7Tj6ODnUhBm2rHV6YBrf6ULoMnC9+YenrglAiLMGJqovR28Afxz VB4QgOQFNQyo41voWFqO0vJ7pa62BOwj69OdfbPKdseWo8vj3szWhgDorb9eOQBZQ94l +1dbVxcIdt94HgAj6AvcZfxSoekbfjY+6iqpxE5OWUt0vYr8HiRVuBl/YCYAWmlUS2hJ wgY7blEiEDWrbw5ZoXTOkCKYBio7OO+bhbpkigKBjh1LjTJcSbwYSzE14La2Em4l2KEj CFuw== X-Gm-Message-State: ANoB5pnh7MmJnMbUtEO+4V9PaW/0N2ZsFOkm7n3hSCTmcE0FNwlKAljS LDB2OodPVs+UAazEkpKyihcgBV+uS/S2XNYgUKI= X-Google-Smtp-Source: AA0mqf5a3sLiRh7bOPFlP7/k+ee4CGBJ8iwfz0FWIb0K6Um1YKBwpw/l6npUv9b4UgVjRxvmgefuCg== X-Received: by 2002:a05:600c:1e1a:b0:3cf:7959:d8be with SMTP id ay26-20020a05600c1e1a00b003cf7959d8bemr46004743wmb.85.1669994881029; Fri, 02 Dec 2022 07:28:01 -0800 (PST) Received: from dave-Ubuntu2204.pitowers.org ([93.93.133.154]) by smtp.googlemail.com with ESMTPSA id t17-20020a05600c41d100b003cf71b1f66csm8322773wmh.0.2022.12.02.07.28.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 07:28:00 -0800 (PST) From: Dave Stevenson To: Rui Miguel Silva , Sakari Ailus , Bingbu Cao , Tianshu Qiu , Jimmy Su , linux-media@vger.kernel.org Cc: Dave Stevenson Subject: [PATCH 0/5] Ensure sensor drivers set V4L2_CTRL_FLAG_MODIFY_LAYOUT for flips Date: Fri, 2 Dec 2022 15:27:22 +0000 Message-Id: <20221202152727.1010207-1-dave.stevenson@raspberrypi.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi. I was doing a basic sweep of drivers and noted that these 5 drivers change the Bayer order based on HFLIP and VFLIP. However they don't set the V4L2_CTRL_FLAG_MODIFY_LAYOUT flag on the controls, so userspace has no notion that it needs to check for a changed format. Add the flag to all the controls. Dave Dave Stevenson (5): media: i2c: ov2680: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips media: i2c: imx208: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips media: i2c: imx319: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips media: i2c: imx355: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips media: i2c: ov08d10: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips drivers/media/i2c/imx208.c | 4 ++++ drivers/media/i2c/imx319.c | 4 ++++ drivers/media/i2c/imx355.c | 4 ++++ drivers/media/i2c/ov08d10.c | 5 +++++ drivers/media/i2c/ov2680.c | 4 ++++ 5 files changed, 21 insertions(+)