Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp911070iog; Fri, 17 Jun 2022 17:14:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v67ekYXIkIZUtnrDHT7BPUWHr6rOesWmB72ITor2bMXjVB5smriGwLW8cfeNmhD6Pyj9Lo X-Received: by 2002:a17:902:ec92:b0:166:3502:ecb1 with SMTP id x18-20020a170902ec9200b001663502ecb1mr12269441plg.62.1655511281051; Fri, 17 Jun 2022 17:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655511281; cv=none; d=google.com; s=arc-20160816; b=rezJjX7GK0OY6sSiyRFh6uVgjL47/uzjD9jbgbQT8RT9cwwAcPqowCh8VF9EjG6XNd /7emWFgixPtCSlS5fSgnA8NbIDTpZq4sYVpXd0GrN09MHeWsDSgiI3HIuj2YqVarCFMx gXbO5SYqSs+CPmCFF/mvuGJfpfVEchZ5DK9+zi5zPnopi/HSeA9VIBWQIV24vLsx92XF iTIV6ir8eC2hAmUpfy4FcR/VZTzRdoJTcxt6rMDOY4K/dO2hxer72M5AAz2G20X68F8V 2P5jjAHq1YvWfLF8gfKkaZWs5ebfwYb8I9S6Rmv8AhpXLEVHkO/m5T8xRHWMfaNozxl4 rwkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=smgH2pDBx1ofaZrM152FsxaiSpM+uoxslxM+FEyW34c=; b=gFE1JzZTMHaupKur/3dwFsIoYSLtoWnEY+8L5uStz/oO/EMxY2kMhcI3r+z/fXbcD8 GVt7yTfVIeeypGAlwS9HDtSvxCVrNqL1whEXhYkcceGk3LhH5N2KOHe/i7EtkOeErSHP O+lHfHV5MML6f1ae6o0e9UL8n1xpf1w8kb58TEUVZJRpbeEQHf4fgGfxHAm05TBHY7F5 BxZ+UyFWWQbCdC+Rl9bMfol7rUS89VS2Q+ZQoAWWsvCIww83rIl95yzDC2sBOTs3qtIT JsWwkSVnQVv5vTyaTEsafBhmfXcPq1DuK63O1K5scUXsyfsWLNHBE348qBmF8UA0Xr0N 1Csw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BeEQ4TJ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a637d53000000b0039f0abb5197si7343168pgn.29.2022.06.17.17.14.27; Fri, 17 Jun 2022 17:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BeEQ4TJ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383025AbiFQX5A (ORCPT + 99 others); Fri, 17 Jun 2022 19:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383354AbiFQX4b (ORCPT ); Fri, 17 Jun 2022 19:56:31 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1965066AED for ; Fri, 17 Jun 2022 16:56:22 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id n20so4575818ejz.10 for ; Fri, 17 Jun 2022 16:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=smgH2pDBx1ofaZrM152FsxaiSpM+uoxslxM+FEyW34c=; b=BeEQ4TJ+StpwEeRKtNhqEWyR6951KbaWIfursLBbX0/XJas5D2wzyKEk+BS1ToHLhM 1yea3fbBN1B05sTYEYC0j/VfjOmSdYMqyx6WBpE3PX4Z0Biddp9iTb4t/I3JF47MWy4u x8QhELQHJrISgpvWPiEKiKy7EQUp1igOTHMzw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=smgH2pDBx1ofaZrM152FsxaiSpM+uoxslxM+FEyW34c=; b=5qgrAv2/NPQagjg7vmSzY84aqK59Zmj061cKnkLncWcTxbyyQ3zxOxFRwnqrfwMnbz eR4KQXzRYpzdAPWGPgJ+MeWd9jBeakF3hf0oblJFXEyxo5H5HZBcH2zBXByik6r0i0+v maFd/6okBthTrhOcfP+BI31cdqGR5ZH6ir0udIrKdX+ulA6pe0d2yEisC1XmpGetSYNB z7ubc3mI5mdgnMsq9F9yYmolY/fIQYbjj61431yziZcPFBosqA13Q86rTHTnBz9y4uhs +UBzJ6+Ptnv8uP+XDgXv8UbkY4Vjmt2CVsaEBSRCt7/zJKSM+4klCumfL09BZtdI7n12 Xd0g== X-Gm-Message-State: AJIora9V9IL9wPcFshFOhqfjDjwmyLWzP5ur2hWMNQRBad3UV6IhzsdL SIPJBfaa2bQw9VXbHtQGE3JUHQ== X-Received: by 2002:a17:907:1dd1:b0:715:73d2:df1f with SMTP id og17-20020a1709071dd100b0071573d2df1fmr11536181ejc.46.1655510180195; Fri, 17 Jun 2022 16:56:20 -0700 (PDT) Received: from alco.lan (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id z21-20020aa7d415000000b0043566884333sm1452538edq.63.2022.06.17.16.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 16:56:19 -0700 (PDT) From: Ricardo Ribalda To: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, tfiga@chromium.org, senozhatsky@chromium.org, yunkec@google.com Cc: Ricardo Ribalda Subject: [PATCH v8 9/9] media: uvcvideo: Limit power line control for Acer EasyCamera Date: Sat, 18 Jun 2022 01:56:10 +0200 Message-Id: <20220617235610.321917-10-ribalda@chromium.org> X-Mailer: git-send-email 2.37.0.rc0.104.g0611611a94-goog In-Reply-To: <20220617235610.321917-1-ribalda@chromium.org> References: <20220617235610.321917-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The device does not implement the power line control correctly. Add a corresponding control mapping override. Bus 001 Device 003: ID 5986:1172 Acer, Inc EasyCamera Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x5986 Acer, Inc idProduct 0x1172 bcdDevice 56.04 iManufacturer 3 Bison iProduct 1 EasyCamera iSerial 2 bNumConfigurations 1 Signed-off-by: Ricardo Ribalda Signed-off-by: Laurent Pinchart --- drivers/media/usb/uvc/uvc_driver.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 387b85fa1998..e037d46b958e 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -3240,6 +3240,15 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 0, .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_FORCE_BPP) }, + /* Acer EasyCamera */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x5986, + .idProduct = 0x1172, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 0, + .driver_info = (kernel_ulong_t)&uvc_ctrl_power_line_limited }, /* Intel RealSense D4M */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, -- 2.37.0.rc0.104.g0611611a94-goog