Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3614905pxu; Sun, 20 Dec 2020 08:59:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcyOv7A9aO86UePon2psjwKx8ilvxBDQxpkNK9yURaafTqCwsiR9SJhf4AY7Fyy4R1+OGr X-Received: by 2002:a17:906:9250:: with SMTP id c16mr12467330ejx.355.1608483546918; Sun, 20 Dec 2020 08:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608483546; cv=none; d=google.com; s=arc-20160816; b=bUO5sE7TDoplS0gaZu0r+RHpOzzfyvAPabB5wd1SR5VRkQZSXiTOTxA4JvvD2ufa4D 2Xzwm4TZ/T4AVWcGBQKlJnQuJs9puIVavIa8ZjC9/xPt5+aekQ++Qv8Oze8LMhTOQxoH yC7s/tDpeFUFPExR/jj9cPIkcAMfUTlmaPt/of+GQWlOYE+BQU/zCfzmxCQcgjNpPn5D FEQ2/ygG4Wk/AnxkLz7nhBTwJURZXd+8ZzFV8LpPhw8uGegNPRM4t+T2HgCMfcmNzKXv XJoSQpLYlnjBfE63AODSDSLwAJ194ntI++HlV1X9kJo8WZzdJ9CU1YOc2aUSH60HcGiB AYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pPUyd9YxoK7HKVaEDO6GMfz5JLjl5ILwqpdonWuYm6U=; b=FA02UWCDdp9XGDJgfd32Xh+02Xb3PaYVwtsTBPUmpvBu616LpP8salyBRinUYCZuLQ qBhPmnGcbkqhmgr8KfHAG+9rO/OWqByUN36wwmF5cqQtu1g/Z3nXzAzJKck5EWvYU7eq jWJFVq4KSkL1K5SnPvjqpfAHVWDxKQYlYNNszJjv4/aYlJPGuajzdEYWO5qINIO7pnd7 U7azKjLPHJrBb5GKj5+XsI0uL/P8/rWL74HGKq3uDyRVCHC0d1twlruMLBdIorU3k7Dp gtd9htY/nbiUlJ1GSckUbB/EUSVnx6Tg5g3+yoOWJXnNCJPjicj0xZVmWwWUgON8Whn7 SYNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=g8XzQFug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si9056245edw.158.2020.12.20.08.58.43; Sun, 20 Dec 2020 08:59:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=g8XzQFug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727731AbgLTQ4P (ORCPT + 99 others); Sun, 20 Dec 2020 11:56:15 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:50586 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgLTQ4O (ORCPT ); Sun, 20 Dec 2020 11:56:14 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A88202CF; Sun, 20 Dec 2020 17:55:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1608483332; bh=T1JdTctvTUXQISdbX9BX67WYHtL9aq0Jtfgvp/4pSX0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g8XzQFugpqQ90iWyQSPTnIm/U0OBwg4lSpmbpI9HVMhxZJQ6BT8QHKj6oI09dQGUz aA79SBjpDm80SRevYa8CRcdBL5ORny/tsBTKepghKUWzoVJ9iEjqZGWvCxAQPVPhZK YO8k9P2PimS+CyMOOyrfOfMvsMH5+UX6Gza3csjs= Date: Sun, 20 Dec 2020 18:55:25 +0200 From: Laurent Pinchart To: Ricardo Ribalda Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 6/9] media: uvcvideo: Add Privacy control based on EXT_GPIO Message-ID: References: <20201215154439.69062-1-ribalda@chromium.org> <20201215154439.69062-7-ribalda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201215154439.69062-7-ribalda@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ricardo, Thank you for the patch. On Tue, Dec 15, 2020 at 04:44:36PM +0100, Ricardo Ribalda wrote: > Add a new control and mapping for Privacy controls connected to > UVC_GUID_EXT_GPIO_CONTROLLERs. > > Signed-off-by: Ricardo Ribalda Reviewed-by: Laurent Pinchart > --- > drivers/media/usb/uvc/uvc_ctrl.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c > index 53da1d984883..511927e8b746 100644 > --- a/drivers/media/usb/uvc/uvc_ctrl.c > +++ b/drivers/media/usb/uvc/uvc_ctrl.c > @@ -347,6 +347,14 @@ static const struct uvc_control_info uvc_ctrls[] = { > | UVC_CTRL_FLAG_RESTORE > | UVC_CTRL_FLAG_AUTO_UPDATE, > }, > + { > + .entity = UVC_GUID_EXT_GPIO_CONTROLLER, > + .selector = UVC_CT_PRIVACY_CONTROL, > + .index = 0, > + .size = 1, > + .flags = UVC_CTRL_FLAG_GET_CUR > + | UVC_CTRL_FLAG_AUTO_UPDATE, > + }, > }; > > static const struct uvc_menu_info power_line_frequency_controls[] = { > @@ -735,6 +743,16 @@ static const struct uvc_control_mapping uvc_ctrl_mappings[] = { > .v4l2_type = V4L2_CTRL_TYPE_BOOLEAN, > .data_type = UVC_CTRL_DATA_TYPE_BOOLEAN, > }, > + { > + .id = V4L2_CID_PRIVACY, > + .name = "Privacy", > + .entity = UVC_GUID_EXT_GPIO_CONTROLLER, > + .selector = UVC_CT_PRIVACY_CONTROL, > + .size = 1, > + .offset = 0, > + .v4l2_type = V4L2_CTRL_TYPE_BOOLEAN, > + .data_type = UVC_CTRL_DATA_TYPE_BOOLEAN, > + }, > }; > > /* ------------------------------------------------------------------------ -- Regards, Laurent Pinchart