Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1770434rwi; Mon, 31 Oct 2022 22:45:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5QkvNb8r0I7I9O51WIhr2PxG3UQjhwMCoBs5hr1qy7TtQU5InggAMKfWKF6ALL9Krye9OE X-Received: by 2002:a17:907:720d:b0:7a9:b7e6:8612 with SMTP id dr13-20020a170907720d00b007a9b7e68612mr16311045ejc.435.1667281508268; Mon, 31 Oct 2022 22:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667281508; cv=none; d=google.com; s=arc-20160816; b=XXQMHzku4QuWUnpdV5dub8+oX1JeHg9Lenwvoco7egDZQkFS89xGebAqIZAjWoMubO ejwoyr3f+07xhERmhxjlbczPrDH7d8gLALTUpyyK3TGFdkZzCM5MPTDJVEB//R1D3Sbm N5VdpHybNjPdOpaiKiTY63mgY+iXloy9KURjlK3O7E3OJX3VRLS2h8SpoorKJl8pMACB 2RoNEjXBx16bfllZl0eNXhTK/rlk8ZHHCkdJpCyOKvrrutJs/vmkbxnOdQDiqjvaQz3M I1fU2YqPyEwP71q8bMXZJ8ticboJiXeVQolLiZWPU3Bxq9HPGVG5SHzIPkrkrfZVR+aF HUXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=B4nRfPUFH4kRVISRtuRHDVjH66/Est6HwL+PfPdOnJw=; b=XLC0zOPEl9O9qFPAkigkF86cbupE2uUCTeMVIJ0PCS7xQdo9Naqy2Y+sZiKU3K6DuE Yd0DnJF7RDJh9fDA/y/CgsD9DXfE8BE6ByTPrxMS+z2Q85JGac15tfatIfrVp2+8aT2o Y8W/1bct8RpcVa62U9O3CaTbKLobKtIzX8YuUe5CnvOkeDx0TwNIm+D+bQwa+dLMqu9e aISlWdHQqs0ZcJ8N/xcRuW99ZudW7Zd/RFe7unaGUPjg/r0Xy3Q1WXW22765LWesQGV1 XSZ6kiEFrQMBs0DHpRL8bxFyGbA5X9KG33d+SeYNjF8OkduJc0NHdbr7Tc7XetLRCq+r tc0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gHsVqSSX; 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 tz14-20020a170907c78e00b007919388d2c6si8898775ejc.357.2022.10.31.22.44.44; Mon, 31 Oct 2022 22:45:08 -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=gHsVqSSX; 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 S229872AbiKAF3A (ORCPT + 98 others); Tue, 1 Nov 2022 01:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbiKAF25 (ORCPT ); Tue, 1 Nov 2022 01:28:57 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F95F25C4 for ; Mon, 31 Oct 2022 22:28:56 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id y69so20339933ede.5 for ; Mon, 31 Oct 2022 22:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=B4nRfPUFH4kRVISRtuRHDVjH66/Est6HwL+PfPdOnJw=; b=gHsVqSSXbjlfgoXdIUngrHxYLJiDMWrgDU8eRfrsl9olc2PPXsQSKZxrUid+Jg0yse JyPJxnCf+r3nh7bt9neMyolBdj71sMEJ8wCKt5svEZ+1JCUCSYXRq/fWpBZ0OdPOlxD7 POAslB5zxfsreOUhymZtQHX7IhhorIA1nAeKw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B4nRfPUFH4kRVISRtuRHDVjH66/Est6HwL+PfPdOnJw=; b=Z5q5cSQvlKKo9yIBaglrV8DKOleKL4xGxRu6ZNyRB2h0dTwTe+NoTNsSRtxJqb36Ip 7uCEk2JfrpJdeRPT6aRQgdlcGenD5eSFiezwyTx30x0e+a5dr0p04zkAwT1pYszRKVr2 5XKJAp5plTT/s/QqO3oihS342RK0ZTir4+uVkuidrPBWa1/dnFXDcp6F8FMCNCunKy/m nCtXKa/Ag1p2ShD7JelBUN4OSl2FH1R8epNKJwReyMtMGi4EXdEjEsQJqMG15BJslnac SrbSXOYZxUlrd9G+Wp+mweflYkCIQWN5lGVI1vaJZUJHKWkn1fouEHbCMTNH2CclqFXU KPeQ== X-Gm-Message-State: ACrzQf2h+z/BV+9dRlabW7UdE+YUX1NXoJB6Fy1ZHqW8D+I8ScA/uvDi 4ObI4rkc3WvylMeWRq5+u7t+7g== X-Received: by 2002:a50:ec0a:0:b0:461:c0ca:a0bc with SMTP id g10-20020a50ec0a000000b00461c0caa0bcmr17301489edr.306.1667280534869; Mon, 31 Oct 2022 22:28:54 -0700 (PDT) Received: from alco.roam.corp.google.com (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id qo14-20020a170907874e00b0078d3f96d293sm3797074ejc.30.2022.10.31.22.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 22:28:54 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 01 Nov 2022 06:28:41 +0100 Subject: [PATCH v1 1/1] media: uvcvideo: Limit power line control for Acer EasyCamera MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221101-easycam-v1-1-71d6409963da@chromium.org> References: <20221101-easycam-v1-0-71d6409963da@chromium.org> In-Reply-To: <20221101-easycam-v1-0-71d6409963da@chromium.org> To: Mauro Carvalho Chehab , Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.11.0-dev-d93f8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1613; i=ribalda@chromium.org; h=from:subject:message-id; bh=IWHoN9NcN24qlf5Cq+y5YFKN7LwR/YB5HAIbEBiKT4E=; b=owEBbQKS/ZANAwAKAdE30T7POsSIAcsmYgBjYK6UwGhjegFV+GvO9lFpwxBZQH3gR3z6dq2J+6M8 c6PFtoeJAjMEAAEKAB0WIQREDzjr+/4oCDLSsx7RN9E+zzrEiAUCY2CulAAKCRDRN9E+zzrEiKA9D/ 9rMhOTvKgnupcqeU24qBBLnI3lRXrp4RMDJPLcWdb4MHNHbo8a5ukBkw6PYR9Ef0h4sGcLDF2e2Bg5 iZ8VIxjK/zZxWChS5TYya33kSDW/MjCjslQnaiAu4118f0kzt55V4fThyMuvTuBRYSWRWEClCzvBdq 9ajNGIjaMo8M6r0oI1S1cmNXNqB8h8oKBkWMEVY+Pz8ek8AhrQURzHROqHWPQz0NmzKWIES06jmioo m/kUQSjZgZkt+k8cIbTQD/L9abxGNzbRHRF7opZYUu5bTuHGx9OYY8Bfqu4m8QFe7s1akli/E1qxXm US8JHHM3sFg82+Gk7HCnUlr1Pg90Gq9Gs7yM/0pkQX6vbpsjgFdURzN87YdLYM+S+AkmfulySFJUTm pthn2O+gxkTOQ8U5I938uhwBrcLTVyutYza5tLYqMZDiqN5xuFh+Z5TCZ498jgLC1Hg1nclJt8ogf5 KxIxKZhGmvMMeSiSnSrBCddm2g1/jtTXhMmLiAmYolw3zeIAvJ/sN8MOwLjnJVSIjP6Q3QZXIYj5CE zjFL3p0lFcfHfrLiX6S0ATvkQEB6+ntkeISO2GL1uHumbmvoZh2JkafXdRzArTRCIg6uCkDaRHE/mT HW+tssGHeIwEmPsT0Bo874k7AEKi/iwQXLfqMnw04dLyieI4KjLyrSMWIRQA== X-Developer-Key: i=ribalda@chromium.org; a=openpgp; fpr=9EC3BB66E2FC129A6F90B39556A0D81F9F782DA9 X-Spam-Status: No, score=-3.1 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 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 003 Device 002: ID 5986:1180 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 0x1180 bcdDevice 56.04 iManufacturer 3 Bison iProduct 1 EasyCamera iSerial 2 bNumConfigurations 1 Signed-off-by: Ricardo Ribalda diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 215fb483efb0..cca3012c8912 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2994,6 +2994,15 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 0, .driver_info = (kernel_ulong_t)&uvc_ctrl_power_line_limited }, + /* Acer EasyCamera */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x5986, + .idProduct = 0x1180, + .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, -- b4 0.11.0-dev-d93f8