Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp284668iog; Fri, 17 Jun 2022 03:40:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1usqdse364mHq4xYva+zoe1yaMTrvAJDFgQXw9Gf5ncBOMqNYcR1xZTXuExuTcNVmMWfGaK X-Received: by 2002:a17:90b:4acd:b0:1e3:4dab:a14c with SMTP id mh13-20020a17090b4acd00b001e34daba14cmr9779202pjb.5.1655462429472; Fri, 17 Jun 2022 03:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655462429; cv=none; d=google.com; s=arc-20160816; b=yV03tyxoFt4rAFxPvTSvEJ64pTWk1dzMAJIBLiomRuvqxEDHIO8ypAlGlybEqx4Gfp CqesGzZ6zrmOmz4c8GCejjvJ/d3sUAk8Wttt7LnyPKdkxYpZx/0IaViFAy4VqK31kevE ojkEpZq1yjbn39mrqw5pxDns4P4NmCdVfcv+laCKRSmJp0kZEvxgjDRXKts9MYdOyni9 BPQMV7VzvxzlJZlXPsSPi6HPvpQND+iuc3GXZtOpaP8vczNyXBEiTom9rf2U4ibdDyBE OCZzkFr5cHcLXD8rQLq4ZT2DMQ9p/u+W/LNUgwJlJct5rG2fYBpHgahkf6MXdcez949C uC8g== 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=7CbeHNxpi9+s0qv2gIQi33L5PMDbofgWDLYkT2RlfqU=; b=WRJ7ZlfFGUo/moPx6k3gSGctr4VFy1WktkXEum3V48GlqG/bWmsRksqFrOMgrtK5ze +xebpRvDEIP42M5ZQHVzqYATGDGYHBRQvjj1KtOuAwZ/qbQ9jy5/4eMGwwPhper0T+CI WUErwWhWJUPcA+wOJRy2K3PI2P6N6wMYOwT7tQshOi9LFpxd7hyU4xIfLgYFPW+J/0+e hZAQYdYi4YtDe3sTjYH76Hqj4YU63ElHNV+BT9EeEa5SYNFFh2k+9cIWz+vFoX7CRV9l 6edf7q2msLlflGJAF3Gtw+QRSd9eJhXVuThVQkEyNsn2YNwmwiEk6ffczKpMeZ+3lWcc k4uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H47yQCGC; 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 l27-20020a63ba5b000000b00408a937c0e6si6213097pgu.721.2022.06.17.03.40.13; Fri, 17 Jun 2022 03:40:29 -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=H47yQCGC; 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 S1381957AbiFQKh3 (ORCPT + 99 others); Fri, 17 Jun 2022 06:37:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381869AbiFQKhM (ORCPT ); Fri, 17 Jun 2022 06:37:12 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95E9C6B00B for ; Fri, 17 Jun 2022 03:37:00 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id o7so7991235eja.1 for ; Fri, 17 Jun 2022 03:37:00 -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=7CbeHNxpi9+s0qv2gIQi33L5PMDbofgWDLYkT2RlfqU=; b=H47yQCGCYQVV1o+mKCF4P4ZJ82sQp7QqRAXTucT/Cgnl/74uZxFHs1vnX1pjZQjjBe SFJJyJhRmmdwwkMuVcpw2DI1ym6bIg3kBry27+owFAYz5OOOMcSsd9Y6IFpleOseSLyW /uR5aY8aivbhLPENJl/3EVol5NHkBRxUtRgPI= 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=7CbeHNxpi9+s0qv2gIQi33L5PMDbofgWDLYkT2RlfqU=; b=ZSM1vpOdnZUH2IvaHZN8m1LkLcZ3DMC1XXXAdn9q4Ls8IalEt56v7T99w9OdXyZrGH r9x4ehu57KyfWNw9RswvA0oGDOHw/7OE2KWbNVDIkBYJbv9+4DReTkAOq8VPd2hP3i1B UDRY93TaLKQwwta1JSCqEN17qhK+I7u2ofzJ3o1Klpx9iB6zgKHqjsqAygYEFH3aheeE xxib+HLm2SG6oB6g+m44AmqK3OCLr3kmmLzutxLAYO2PPZ0tUhWxs/NVhWvAOnDvyRDr h3MeH+k6mnvIZpZIwa5ARS3HMav8xbJ61slfyrfG92Hbq/0mw3S7W4O+FnTiVvPpOgPS Q+Kg== X-Gm-Message-State: AJIora+QYXUMFNw/M0tN3+EBzhmLHyGmwJ8AIQ3pwCRiRCTArei5unGV MZo+hgC1QIlayXCIA9in4TkSNg== X-Received: by 2002:a17:906:209:b0:712:12d8:b52b with SMTP id 9-20020a170906020900b0071212d8b52bmr8586607ejd.394.1655462219092; Fri, 17 Jun 2022 03:36:59 -0700 (PDT) Received: from alco.corp.google.com ([2620:0:1059:10:a86e:90:fb4:466e]) by smtp.gmail.com with ESMTPSA id z19-20020a056402275300b004319b12371asm3704340edd.47.2022.06.17.03.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 03:36:58 -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 v7 8/8] media: uvcvideo: Limit power line control for Acer EasyCamera Date: Fri, 17 Jun 2022 12:36:45 +0200 Message-Id: <20220617103645.71560-9-ribalda@chromium.org> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog In-Reply-To: <20220617103645.71560-1-ribalda@chromium.org> References: <20220617103645.71560-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=unavailable 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 a862a9d6a2fd..6d34992032e6 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -3248,6 +3248,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.36.1.476.g0c4daa206d-goog