Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp640397lqp; Wed, 12 Jun 2024 11:33:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgQrL1ThX5nuUTKjWkP9mvAbL3iUpfCeCn6DMYe/MHQHxFFgpLQdVqHisc7si7GBAt3FtyKn8YWCUmddJwqNe9l0AYbKycTtrbkL9dFA== X-Google-Smtp-Source: AGHT+IGiPB95oMNxaRQCQI0s5uTn6vLpJm4H6lWxOtoi3270valnro8HceSShrM0YamK4dMhRsKy X-Received: by 2002:a17:902:db07:b0:1f7:ddc:5288 with SMTP id d9443c01a7336-1f83b7146c2mr29175735ad.46.1718217232908; Wed, 12 Jun 2024 11:33:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718217232; cv=pass; d=google.com; s=arc-20160816; b=e7tKNR20Y9JGBErw4e0/XXmxx/9TElLfNFWfzobv4rowRqw+zafBKATCSwn5BpZnge 3+mHxzxMlu1AOyholIYYO42Ox1EwrKczGaMgGTGwfEG8hGJrJjoDIC5i8hcO1sxq+pR/ Q1ajuq6wdnPHgGGYqwvdIQ9amKfZIjYKSIO4FWZ86WgvngABml820XxuLD1nrTbYQQBv goMtyLxwdWFry4q9WeT2giLEhfHBRTaR8yLCCYDSF36PhFen/TeYgNtxvwdSGVQIDjqq tpwBBa2HjtdCOqUaLVJUNFat4hwVkpG9tlgBCj2seXZslIuPZ1cKYTZRFoew9M+TbZ0q lb3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Mja+OzH8bve2/37qKWCA4UIqQOudsj5GgjPBh+pnZzc=; fh=6nb0w3qDgN3Pzg4UlELQK12h8GdLXv15ZM+/W3X0FD4=; b=xok6tzFwjvdCTRR1/QqUqry5/2jatH2WLTLPGO37V7o1GpqdZ6GxWM/p1zjaUX4Krl gVyzYgQpeRUfck6++EiFSXhbmoZ4r+TOdYM2jMFxxmBV8i2ornSHB5GCLn7lLHuU9h48 1D9pMSgVNok0AP7348faSIxpXYXid3ImTDtXKYWj1RF/ihgUYgt2mD0Wb+ies8cPdrE/ u2arrb8wYFEYdzywFj7sTAvvHFfwAf/gdynELuks/cGFIn0hDN/RLpvgRD981F22JaKJ iJgmeB3DaPRzZEQfHqw3fdcjbB2es6quYuSwoGDd5dckfYSIxMvt9wAU8CNnZ74OZ6oz pftA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-212080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6f96c3842si76851885ad.150.2024.06.12.11.33.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 11:33:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-212080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 29E3E284FB2 for ; Wed, 12 Jun 2024 18:33:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F7B2811E0; Wed, 12 Jun 2024 18:31:33 +0000 (UTC) Received: from irl.hu (irl.hu [95.85.9.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CF4A80049; Wed, 12 Jun 2024 18:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.85.9.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217093; cv=none; b=eBCkkUlZppO4vm6wCqvoYux5uFFAI/TA+fXzG/9tjYOUuyfcsUKBFK5fEUZJ/M1TucSn13NP8d4KKTu6Bt1oXal5Rb5XvDhkbJLbJ0jJiX6k8IbhYKacL66nUyR9FFIXE+HHrxnlzAJmCaGm4X4sAiRYieqp37vRCEjKPX1OV2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217093; c=relaxed/simple; bh=N9bObP1O6/SZHdEBqH2ugXzcLOkJUGAtRYQ4jxKUMAU=; h=From:To:Cc:Subject:Date:Message-ID:Mime-Version:Content-Type; b=V/eOxLiQUZD+HoKXl0R9rIHsGBt9hn0rspKOBtAtEAwm8rQ6/vcDrcssF8+fy2Rexyj5wF3ma7v+Xu9Y49ZLuyMmL5E/S3MbOlSngtvTyTnXhhWSGY6B8KM/4lHxOKdLbQLUwkpHslrg4AFZ41LNQGH2NsRyVYzHuGBw3Q7DhwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu; spf=pass smtp.mailfrom=irl.hu; arc=none smtp.client-ip=95.85.9.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=irl.hu Received: from fedori.lan (c3e47615.dsl.pool.telekom.hu [::ffff:195.228.118.21]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000070620.000000006669E980.0016B241; Wed, 12 Jun 2024 20:31:27 +0200 From: Gergo Koteles To: Mauro Carvalho Chehab , Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Gergo Koteles Subject: [PATCH 0/2] media: v4l2: map UVC_CT_ROLL_ABSOLUTE_CONTROL Date: Wed, 12 Jun 2024 20:31:12 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 Hi, Some new UVC cameras can report whether they are mounted in 'portrait mode'. In order to userspace getting to know this, this series maps UVC_CT_ROLL_ABSOLUTE_CONTROL to V4L2_CID_ROLL_ABSOLUTE. Tested with Logitech StreamCam and OBSBOT Tiny 2. Gergo Koteles (2): media: v4l2: ctrls: Add ROLL_ABSOLUTE control media: v4l2: map UVC_CT_ROLL_ABSOLUTE_CONTROL .../userspace-api/media/v4l/ext-ctrls-camera.rst | 5 +++++ drivers/media/usb/uvc/uvc_ctrl.c | 9 +++++++++ drivers/media/v4l2-core/v4l2-ctrls-defs.c | 1 + include/uapi/linux/v4l2-controls.h | 2 ++ 4 files changed, 17 insertions(+) -- 2.45.2