Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp589344iog; Wed, 15 Jun 2022 08:15:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttX/dmqDZRCbicCUq4tu7D4k9UgmiK2qgfFsDk3GzP+L8LfQCmpnQG3kl7GstXpfoveL/j X-Received: by 2002:a17:90b:11c5:b0:1ea:9747:28ba with SMTP id gv5-20020a17090b11c500b001ea974728bamr10935464pjb.22.1655306129627; Wed, 15 Jun 2022 08:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655306129; cv=none; d=google.com; s=arc-20160816; b=lnZvoALujP+gA0mAERtQ87RRU0rzWvRgDjV743EAWVtC/aIQDzQvt2/BFGgToZk5nB /WzKSD5YijSCqzAituR9Lg/6ScX5ixuUZ7MTXdnpT1sHS1RLHvWpYWN3TPHhy5z+96ny FexcJ1R0AZUxccpYYUoViYQrY5Km5xlppHfmfsCxs7dcllnkqa5MYQYVmv5omr4FwDC6 U083qQlNSyzSk6sovXbNWVVGyxMDON2Kj5UeeAIc8QXYz18ZGd5Fk6S61RDOuTBuMYMC z8U5yQ5QhUzK2MIH/M1JuFjNdggd5CwQah5qkXytOrOi19/HX9qbwq6IMj1UZ6cdfYKm w17g== 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=qQLrWSuKbMeYEzBkHEFzj2vK+1yYpGFm3AxcKVF8qBf7ve5rhqztHK1jJFd6wE8QBE 9HC866558anWkGpIutaVr+mXXNVSrUi3BaD/wAv0dgzggvhwqdaI6YKiQBBp7lGvh9mn WpsTC9f6gsIAH5vg2xlwTerfTE9z1/YUbCyJa/6CPt6zcFG3/9T7n2T1BcPMECbP2UD/ Y/WvR4syjiyZS/YOyXN9MfhHdJhzBdkp4NCn2eBWlF5pjNmNQQBDrrY/bqhcEYqaGuRA jXFi0fV1Ok+T/NChXNO7x/YM2qSnhgzxHwcGLwqThJMy95eb6tIkWAMpgi/snidRey2z NoCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Auij9wGy; 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 j3-20020a634a43000000b003fcda8035e6si16341243pgl.263.2022.06.15.08.15.10; Wed, 15 Jun 2022 08:15: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=Auij9wGy; 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 S234611AbiFOPNg (ORCPT + 99 others); Wed, 15 Jun 2022 11:13:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243799AbiFOPNK (ORCPT ); Wed, 15 Jun 2022 11:13:10 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D541054B for ; Wed, 15 Jun 2022 08:13:08 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id z7so16599769edm.13 for ; Wed, 15 Jun 2022 08:13:08 -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=Auij9wGydoXVcXtnVt7f5SscEe86yhsuqwH1KBIeBgvJIamUxyE+Vb4zImjfbs/8Gg vUnQ2F90PpL4Fg5ZySoT9EghYv3hokn3+el6rjZ0/FMwTRdgNl7aD54X5zsd/qxIhrff 5qFW6e0Ief8Zv+CCF4k39oNBYsX3RwDmztce8= 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=l7RV+GN3+bJJoHy6BErmwFXfdVV7ioQ8qp9Sbt9V+U5T5K4PgN2wasFv22dBzp6r2Z yeic7y4fJV52vTjgbwuF4hyd+xScMMYZnst1sdA6qnknW/Ml/UM1azc+h/YtD+PHWoRK uLNJp4y7rs7PNK/BNUkJ9IQxbIzElf4ro8bYJyoTnCxwJMqQF/Uew+7HZEuxEXrJWCGf cfqkQDSjC0LVTHIvsluZSrLkQA4kzQrhkg0rM3Ds65jyhya3Yut+mrk+8tA7KhpgfkIB HK7LQvQD39yXs9lf4mYKTdqhQdWz0DZXOuK+o8vfBErO7eKr/qtIAhS4bLtFHQKSNwrd EPsQ== X-Gm-Message-State: AJIora9ISUsVbbcpNh9USu7dHOcnHEMETKxKly1gTgSv/gKYZ3vm8D4B Ui1TudwhHkY523FYbOvzcLTCSg== X-Received: by 2002:a05:6402:3322:b0:42d:f984:92fa with SMTP id e34-20020a056402332200b0042df98492famr291175eda.106.1655305987825; Wed, 15 Jun 2022 08:13:07 -0700 (PDT) Received: from alco.lan (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id b25-20020aa7cd19000000b0042bd2012196sm9610264edw.85.2022.06.15.08.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 08:13:07 -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 v6 8/8] media: uvcvideo: Limit power line control for Acer EasyCamera Date: Wed, 15 Jun 2022 17:12:59 +0200 Message-Id: <20220615151259.77825-9-ribalda@chromium.org> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog In-Reply-To: <20220615151259.77825-1-ribalda@chromium.org> References: <20220615151259.77825-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 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