Received: by 10.213.65.68 with SMTP id h4csp623561imn; Tue, 20 Mar 2018 11:05:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELuYC4aUxHckCRii6GHEqD3+Lhb1LoJqYjKyoKg0hSPskiZHmQXUMHgWHIZBiHBdsa7OL733 X-Received: by 10.101.64.9 with SMTP id f9mr13047876pgp.247.1521569131772; Tue, 20 Mar 2018 11:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521569131; cv=none; d=google.com; s=arc-20160816; b=YE1wKPj5q4XAaRRDkia8NTjRQmjmdoC+rAtqVawmBAo1KRSGzfYwpCk/hLMZ+NzpyC TwT1r0YUhlHpfuF0NjnbQ8xB2DaEfjBvyHEJnMQQBFaqbE0+5iruXjp3vKqpurdPx8kC E297rqNgzMg6vzBXt8M/JuLgFMNyVDs/owCq8v7yf9r5ANj22W93jO3SwPvUUaXF1uHh /taxGXDSURajVIFsshVjgj4ZtBsA24CdOmQ39uzo3jUouP0KSj414yyX/ns6Llo0Bkcq 6Rfg5MX0DeiE3bjCA8hBrOmL2w0wW7H7Cr1jcflvwEmKA+j7oC3iIfdAxFRxHuwhjAi7 dCVg== 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:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=WdDq37B1ktzKRF/BY4RVz50UT+tQupMl3cnHf9cIf4E=; b=tiPSw6ZL0EC9uuofGT8zhfQaIh61Qwwd4WnnBMMhroWtEXb/iP8iHGp4bdC0NmBgKj sfl1jIO0PGC3l2DEEFCEHgppmC2pw7atsKxkWKAnTdGawdTzQKW6zBBmgpNIH3/ZKOF2 +/ucBhoUOFJ3EkDoHm8PdTAWBOlMkvj0WCHbzq/raM1lcgk89J1P1xTavEGdi/UffkDB UpD+iEhPEwL3MK2tdA74z6GrQN9T9UO3qL2fN7QKGVmcpHQ673ofYrvXqO+VHFRLF+rE Sg6qsTKN+0FilXTFN2uE+HwpjWgmT7N7+adZSQQ11kisbiTf6MRZqonoVOSfKk1B86Pl wyZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=X2AIE2MP; 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 a12-v6si2026008plm.121.2018.03.20.11.05.17; Tue, 20 Mar 2018 11:05:31 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=X2AIE2MP; 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 S1751650AbeCTSD0 (ORCPT + 99 others); Tue, 20 Mar 2018 14:03:26 -0400 Received: from galahad.ideasonboard.com ([185.26.127.97]:35199 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeCTSDW (ORCPT ); Tue, 20 Mar 2018 14:03:22 -0400 Received: from avalon.localnet (unknown [IPv6:2a02:2788:664:35f:7f37:41ef:e87f:aea9]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 67C55200D4; Tue, 20 Mar 2018 19:01:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1521568860; bh=zQbQQlCPv47O0s55PbNHsINbtw8Vxi9r1XUaQOIXU4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X2AIE2MPA7VcZZ4OAvXirIoJP+OUlTPHujSLpZ39Pt0kG318RLiRIbWofKp/vUsCD LzPKSDG0YV+HQugCxGN3mjRU2ElDKF0iBjZ5X9DuD5ichgDneaCW6rB/5YFNiGrPkM ymg4qA96tUtZenqWlh3clXm8vnNBtAT5W11GrxfA= From: Laurent Pinchart To: Nicolas Dufresne Cc: Paul Menzel , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, it+linux-media@molgen.mpg.de Subject: Re: uvcvideo: Unknown video format,00000032-0002-0010-8000-00aa00389b71 Date: Tue, 20 Mar 2018 20:04:27 +0200 Message-ID: <15529671.DGPDy3yHsE@avalon> Organization: Ideas on Board Oy In-Reply-To: <1521567951.20523.81.camel@ndufresne.ca> References: <8f7d4aef-84f7-ae22-8adc-cba4fa881675@molgen.mpg.de> <1521567951.20523.81.camel@ndufresne.ca> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, On Tuesday, 20 March 2018 19:45:51 EET Nicolas Dufresne wrote: > Le mardi 20 mars 2018 =E0 13:20 +0100, Paul Menzel a =E9crit : > > Dear Linux folks, > >=20 > >=20 > > On the Dell XPS 13 9370, Linux 4.16-rc6 outputs the messages below. > >=20 > > ``` > > [ 2.338094] calling uvc_init+0x0/0x1000 [uvcvideo] @ 295 > > [ 2.338569] calling iTCO_wdt_init_module+0x0/0x1000 [iTCO_wdt] @ 280 > > [ 2.338570] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11 > > [ 2.338713] iTCO_wdt: Found a Intel PCH TCO device (Version=3D4, > > TCOBASE=3D0x0400) > > [ 2.338755] uvcvideo: Found UVC 1.00 device Integrated_Webcam_HD > > (0bda:58f4) > > [ 2.338827] iTCO_wdt: initialized. heartbeat=3D30 sec (nowayout=3D0) > > [ 2.338851] initcall iTCO_wdt_init_module+0x0/0x1000 [iTCO_wdt] > > returned 0 after 271 usecs > > [ 2.340669] uvcvideo 1-5:1.0: Entity type for entity Extension 4 was > > not initialized! > > [ 2.340670] uvcvideo 1-5:1.0: Entity type for entity Extension 7 was > > not initialized! > > [ 2.340672] uvcvideo 1-5:1.0: Entity type for entity Processing 2 was > > not initialized! > > [ 2.340673] uvcvideo 1-5:1.0: Entity type for entity Camera 1 was not > > initialized! > > [ 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 >=20 > While the 0002 is suspicious, this is pretty close to a color format. > I've recently come across of similar format using D3DFORMAT instead of > GUID. According to the vendor*, this camera module includes an infrared > camera (340x340), so I suspect this is to specify the format it > outputs. A good guess to start with would be that this is > D3DFMT_X8L8V8U8 (0x32). Isn't 0x32 D3DFMT_L8, not D3DFMT_X8L8V8U8 ? > To test it, you could map this > V4L2_PIX_FMT_YUV32/xRGB and see if the driver is happy with the buffer > size. VideoStreaming Interface Descriptor: bLength 30 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 1 bmCapabilities 0x00 Still image unsupported wWidth 340 wHeight 340 dwMinBitRate 55488000 dwMaxBitRate 55488000 dwMaxVideoFrameBufferSize 115600 dwDefaultFrameInterval 166666 bFrameIntervalType 1 dwFrameInterval( 0) 166666 340*340 is 115600, so this should be a 8-bit format. > Then render it to make sure it looks some image of some sort. A > new format will need to be defined as this format is in the wrong > order, and is ambiguous (it may mean AYUV or xYUV). I'm not sure if we > need specific formats to differentiate infrared data from YUV images, > need to be discussed. If the format is indeed D3DFMT_L8, it should map to V4L2_PIX_FMT_GREY (8-bi= t=20 luminance). I suspect the camera transmits a depth map though. > *https://dustinweb.azureedge.net/media/338953/xps-13-9370.pdf >=20 > > [ 2.341450] uvcvideo: Found UVC 1.00 device Integrated_Webcam_HD > > (0bda:58f4) > > [ 2.343371] uvcvideo: Unable to create debugfs 1-2 directory. > > [ 2.343420] uvcvideo 1-5:1.2: Entity type for entity Extension 10 was > > not initialized! > > [ 2.343422] uvcvideo 1-5:1.2: Entity type for entity Extension 12 was > > not initialized! > > [ 2.343423] uvcvideo 1-5:1.2: Entity type for entity Processing 9 was > > not initialized! > > [ 2.343424] uvcvideo 1-5:1.2: Entity type for entity Camera 11 was > > not initialized! > > [ 2.343472] input: Integrated_Webcam_HD: Integrate as > > /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.2/input/input10 > > [ 2.343496] usbcore: registered new interface driver uvcvideo > > [ 2.343496] USB Video Class driver (1.1.1) > > [ 2.343501] initcall uvc_init+0x0/0x1000 [uvcvideo] returned 0 after > > 5275 usecs > > ``` > >=20 > > Please tell me, what I can do to improve the situation. =2D-=20 Regards, Laurent Pinchart