Received: by 10.213.65.68 with SMTP id h4csp1213053imn; Wed, 21 Mar 2018 05:36:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELsvbNyNz6UV2S32XXLD4yjXHx2RTSNgGhJQzh8fDioiACXbaElHxhv0eSN3VF9BnkyhBwYl X-Received: by 2002:a17:902:d81:: with SMTP id 1-v6mr20102794plv.324.1521635772347; Wed, 21 Mar 2018 05:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521635772; cv=none; d=google.com; s=arc-20160816; b=GFZaMdqPr5a2qWXkQYWJeKTRqdwiDlwf8VbKAmsX0PaYev0TN5Kc9W12Yy4pHMuG3W Zn4vt3VJzpATq4VxPTGwMPIBeleC+Q+KhF+cWDQF7ckVLmODg397Nq1bfBPzQHXH4EK8 ixgTnd9tuy5yE49CboK1aN68MBsucXdUs92BpnFG98SzeaPPK8ZUG4vYEB0ir2UpnAes D/T069qoes2OyzfZQaKyTQxGmLIBTFau5De3NsCPSOnMwKCoKieJfmLz9Hm9Jd66/Ixv Y+IPjoEYJkuFC4cNFkmyFFxa7LyDD81h4BabhD25f4EWOW2VcJs34QrrTd1eiBql+Crw LKHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=jioBWq2y72vI5Vc3Ze2/tTRx7YaIKMDAe474knbKXBg=; b=ezy3xsHAPS0C5VzCeK4nRApt9a978wY+zj8xXBmFV3Oq320nuMAk8r6Zi4IdWvWe4b 2sCS/GTpN4PqefuFe+V79C0xGiXFVZoKDjFTzj0eoC8/ru9RdbGQxlIRKPysdMAGqojM AFF6T+vHb3vjwc/qCQ0tgMR05Q3a77hL760opB1iShp1a22JfBaC5P2WOsosP+2pidPP g1+AW13HeBeBu6sx8TpdOLPJywggTr7wQJti4dYa4YkJTk2YzKCYfVlxnBtbjgkus0Fj YZt2TS+O8ZrFrK+lDTbSVrz1WfYNSGBPUflHspfLiNJHplVKkgqujjshciJOeGSoqm08 bN6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 189si2738924pgc.616.2018.03.21.05.35.57; Wed, 21 Mar 2018 05:36:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751896AbeCUMev (ORCPT + 99 others); Wed, 21 Mar 2018 08:34:51 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:45120 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751805AbeCUMet (ORCPT ); Wed, 21 Mar 2018 08:34:49 -0400 Received: from [141.14.13.24] (g279.RadioFreeInternet.molgen.mpg.de [141.14.13.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id A369C2012BA04F; Wed, 21 Mar 2018 13:34:46 +0100 (CET) Subject: Re: uvcvideo: Unknown video format,00000032-0002-0010-8000-00aa00389b71 To: Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, it+linux-media@molgen.mpg.de, Mario Limonciello References: <8f7d4aef-84f7-ae22-8adc-cba4fa881675@molgen.mpg.de> <6647791.pjJyibMGYG@avalon> <2b332247-72f6-d9ad-306d-d900759ea5a8@molgen.mpg.de> <2929738.Pf5m835D8F@avalon> From: Paul Menzel Message-ID: Date: Wed, 21 Mar 2018 13:34:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <2929738.Pf5m835D8F@avalon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Laurent, On 03/21/2018 10:25 AM, Laurent Pinchart wrote: > On Tuesday, 20 March 2018 18:46:24 EET Paul Menzel wrote: >> On 03/20/18 14:30, Laurent Pinchart wrote: >>> On Tuesday, 20 March 2018 14:20:14 EET Paul Menzel wrote: >>>> On the Dell XPS 13 9370, Linux 4.16-rc6 outputs the messages below. >>>> >>>> ``` >> >> […] >> >>>> [ 2.340736] input: Integrated_Webcam_HD: Integrate as >>>> /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input9 >>>> [ 2.341447] uvcvideo: Unknown video format >>>> 00000032-0002-0010-8000-00aa00389b71 >> [ 2.341450] uvcvideo: Found >>>> UVC 1.00 device Integrated_Webcam_HD (0bda:58f4) >> >> […] >> >>>> ``` >>>> >>>> Please tell me, what I can do to improve the situation. >>> >>> Some vendors routinely implement new formats without bothering to send a >>> patch for the uvcvideo driver. It would be easy to do so, but it requires >>> knowing which format is meant by the GUID. Most format GUIDs are of the >>> form 32595559-0000-0010-8000-00aa00389b71 that starts with a 4CC, but >>> that's not the case here. >> >> I am adding Mario to the receiver list, though he is currently on vacation. >> >>> Could you send me the output of >>> >>> lsusb -v -d 0bda:58f4 >>> >>> running as root if possible ? >> >> Sure, please find it attached. > > Thank you. > > Could you please try the following patch ? > > commit 7b3dea984b380f5b4b5c1956a9c6c23966af2149 > Author: Laurent Pinchart > Date: Wed Mar 21 11:16:40 2018 +0200 > > media: uvcvideo: Add KSMedia 8-bit IR format support > > Add support for the 8-bit IR format GUID defined in the Microsoft Kernel > Streaming Media API. > > Reported-by: Paul Menzel > Signed-off-by: Laurent Pinchart > > diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c > index 2469b49b2b30..3691d87ef869 100644 > --- a/drivers/media/usb/uvc/uvc_driver.c > +++ b/drivers/media/usb/uvc/uvc_driver.c > @@ -99,6 +99,11 @@ static struct uvc_format_desc uvc_fmts[] = { > .guid = UVC_GUID_FORMAT_D3DFMT_L8, > .fcc = V4L2_PIX_FMT_GREY, > }, > + { > + .name = "IR 8-bit (L8_IR)", > + .guid = UVC_GUID_FORMAT_KSMEDIA_L8_IR, > + .fcc = V4L2_PIX_FMT_GREY, > + }, > { > .name = "Greyscale 10-bit (Y10 )", > .guid = UVC_GUID_FORMAT_Y10, > diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h > index be5cf179228b..6b955e0dd956 100644 > --- a/drivers/media/usb/uvc/uvcvideo.h > +++ b/drivers/media/usb/uvc/uvcvideo.h > @@ -157,6 +157,9 @@ > #define UVC_GUID_FORMAT_D3DFMT_L8 \ > {0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, \ > 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} > +#define UVC_GUID_FORMAT_KSMEDIA_L8_IR \ > + {0x32, 0x00, 0x00, 0x00, 0x02, 0x00, 0x10, 0x00, \ > + 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} > > > /* ------------------------------------------------------------------------ Sure. After fighting how to apply with Mozilla Thunderbird as my mailer – hints are welcome –, the warning is gone. ``` [ 2.569788] calling uvc_init+0x0/0x1000 [uvcvideo] @ 297 [ 2.570011] calling cryptd_init+0x0/0x1000 [cryptd] @ 287 [ 2.570018] cryptd: max_cpu_qlen set to 1000 [ 2.570022] initcall cryptd_init+0x0/0x1000 [cryptd] returned 0 after 7 usecs [ 2.570030] calling init_nls_cp437+0x0/0x1000 [nls_cp437] @ 332 [ 2.570033] initcall init_nls_cp437+0x0/0x1000 [nls_cp437] returned 0 after 0 usecs [ 2.570502] uvcvideo: Found UVC 1.00 device Integrated_Webcam_HD (0bda:58f4) [ 2.573583] uvcvideo 1-5:1.0: Entity type for entity Extension 4 was not initialized! [ 2.573585] uvcvideo 1-5:1.0: Entity type for entity Extension 7 was not initialized! [ 2.573586] uvcvideo 1-5:1.0: Entity type for entity Processing 2 was not initialized! [ 2.573587] uvcvideo 1-5:1.0: Entity type for entity Camera 1 was not initialized! [ 2.573652] input: Integrated_Webcam_HD: Integrate as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input10 [ 2.574192] uvcvideo: Found UVC 1.00 device Integrated_Webcam_HD (0bda:58f4) [ 2.575629] proc_thermal 0000:00:04.0: enabling device (0000 -> 0002) [ 2.576052] uvcvideo: Unable to create debugfs 1-2 directory. [ 2.576118] uvcvideo 1-5:1.2: Entity type for entity Extension 10 was not initialized! [ 2.576119] uvcvideo 1-5:1.2: Entity type for entity Extension 12 was not initialized! [ 2.576120] uvcvideo 1-5:1.2: Entity type for entity Processing 9 was not initialized! [ 2.576121] uvcvideo 1-5:1.2: Entity type for entity Camera 11 was not initialized! [ 2.576184] input: Integrated_Webcam_HD: Integrate as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.2/input/input11 [ 2.576229] usbcore: registered new interface driver uvcvideo [ 2.576230] USB Video Class driver (1.1.1) [ 2.576236] initcall uvc_init+0x0/0x1000 [uvcvideo] returned 0 after 6290 usecs ``` Tested-by: Paul Menzel Kind regards, Paul