Received: by 10.213.65.68 with SMTP id h4csp931416imn; Tue, 20 Mar 2018 20:40:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELtwBN6D/1prxfaVtJki/CcZYLQu/IersNY6Dy8hwHoJy7/5VgORwroOb9X2JM2bhLCkQr/5 X-Received: by 10.98.3.66 with SMTP id 63mr15738737pfd.177.1521603613314; Tue, 20 Mar 2018 20:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521603613; cv=none; d=google.com; s=arc-20160816; b=a5Ze/RNSA1fAVQtCnSi2WNzNIg61MJvhqYLUXRP+RJqDBwsc0Ks8VMMUeHUvMC9Hzx wsvReiOmZSFb8L7xUy/9wrVRzVqDAziWqGt2tvjK0yTTbFlRd7oBv/nAwkUljSD58Tri U1pB3I9+iwCiDEHRcNvEd5i9Rx6R4opX1hTNH9rT05/xmKsoThUxdKfpd5rEO7sg9o6w LwkHCuSmJ9N6fsHauLm/nbSAfozIkf+JOPLaaSgTGmpWPM7NBi/0tQWjsk9qss0PbaSn f2OPPxxWY94pkskyXPkXDBEbzpKTWxl3bJjVN49meOGu1KLTl+nHbTcAJKpR0vv8ot4k il5A== 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:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=STmL6Die+5BUG5pXSUxw3rexm1DXNLv9os/6PsLxvig=; b=PhJfn0ZV7H0OUvT72ofgyJ3zc7U5weYS80Uej3/rfisTuqJYxy4b7+FNVll/TlODKP Est7/zckPjmscpjJtVhCYGex/7dqo5fQBrr2PVIC2Xc5kROAw8/D2fSbx7eVjOXHWtxi qfyf0u/yXVch39g1r9OvWzo95T8nEJhFceREx8gR/zMp7FHNtYwFXSHLotEZxENklI7z Xm+pjJwUWbfNY6B92lui2va8MPci1+KU7P45g0UXMPncrngsJnnd/t1xyPo5IZxayttW +eY4giMZ5AeAdLoDXwaX7N6hYwqW5awnGd4356vJp9QZjDaS5+pLUrcPgzS0KrNMr2Td gHIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=yVh93wO3; 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 y3-v6si3254036pln.209.2018.03.20.20.39.59; Tue, 20 Mar 2018 20:40:13 -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 header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=yVh93wO3; 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 S1751978AbeCUDjH (ORCPT + 99 others); Tue, 20 Mar 2018 23:39:07 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:43700 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbeCUDjD (ORCPT ); Tue, 20 Mar 2018 23:39:03 -0400 Received: by mail-qk0-f182.google.com with SMTP id g184so4099811qkd.10 for ; Tue, 20 Mar 2018 20:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=STmL6Die+5BUG5pXSUxw3rexm1DXNLv9os/6PsLxvig=; b=yVh93wO39BH/JhAN/kAYxOJk78yza5s3eGFEhLgitKKKR/Nfs4QxYD15Tfm+tm4d5F GqazS8RL1RIw49R/QohdsjK8J0y4AYxuzACw+Yc//AVtET9DddEDsWcVmFc492xw3bmu HYgCDsF7eDKFFMvgSR5YDvh/0LjKaGrI/Gqrk4NhnttrJforda1SKW81xAsWi5WRCJxf IZ2R7i+HaToJ+6ZGt9iJ+ZjlJQ9XaCGFKOSzCnKOpDfedTkcCM9avoaz61MPoa55vkQz FUP6ds8iwgWB0LnTTCU0VYwzEC42tmlvcm6RCu4W49a76ODeON7FlIADKPwxhzQe7gNR YRuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=STmL6Die+5BUG5pXSUxw3rexm1DXNLv9os/6PsLxvig=; b=rQarO2sfyWxtgLWb1xkUrz1vP0SXTXiKRH2sAUAKA4pJI91l9axGluMkebMRhVCkLi l9nPko35Y/1faQsPRy/mlERd2SpZPzvZdaZ5RIpoR/zHrBu/8zqR+EbYD66mWMyIekN+ wJgvjAyaR1jCyfy1Hjah+WkjTi3n3EnpwjdXdLFRGHrHgj38Cbc7oS8sndHUIoLkWXz1 qcQF4YJTzp1KnY662RYk+cqrrlC2C0Ifh/HX5hrIYddYrCY/heu4MdC0l1HgLWmxD0ET EprEUJAiHrCpN9l91ByiC4pBVSk4prpR4P7Dcn14S7NbxdUHjx/2o4ZZRw2TqB4zVw6T BThA== X-Gm-Message-State: AElRT7HEunO39K+YXZqR+LKpR6PEaQrKnjl7pn06UO9qOvFNauXRyepO VXh9RoeOZymwyNPjOAhr01034w== X-Received: by 10.55.194.77 with SMTP id j13mr27435574qkm.213.1521603542401; Tue, 20 Mar 2018 20:39:02 -0700 (PDT) Received: from skullcanyon (cable-192.222.221.38.electronicbox.net. [192.222.221.38]) by smtp.gmail.com with ESMTPSA id n67sm2759307qkc.5.2018.03.20.20.39.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Mar 2018 20:39:00 -0700 (PDT) Message-ID: <1521603539.27691.5.camel@ndufresne.ca> Subject: Re: uvcvideo: Unknown video format,00000032-0002-0010-8000-00aa00389b71 From: Nicolas Dufresne To: Laurent Pinchart Cc: Paul Menzel , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, it+linux-media@molgen.mpg.de Date: Tue, 20 Mar 2018 23:38:59 -0400 In-Reply-To: <15529671.DGPDy3yHsE@avalon> References: <8f7d4aef-84f7-ae22-8adc-cba4fa881675@molgen.mpg.de> <1521567951.20523.81.camel@ndufresne.ca> <15529671.DGPDy3yHsE@avalon> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mardi 20 mars 2018 à 20:04 +0200, Laurent Pinchart a écrit : > Hi Nicolas, > > On Tuesday, 20 March 2018 19:45:51 EET Nicolas Dufresne wrote: > > Le mardi 20 mars 2018 à 13:20 +0100, Paul Menzel a écrit : > > > Dear Linux folks, > > > > > > > > > On the Dell XPS 13 9370, Linux 4.16-rc6 outputs the messages below. > > > > > > ``` > > > [ 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=4, > > > TCOBASE=0x0400) > > > [ 2.338755] uvcvideo: Found UVC 1.00 device Integrated_Webcam_HD > > > (0bda:58f4) > > > [ 2.338827] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0) > > > [ 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 > > > > 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 ? You are right, sorry about that, I totally miss-translate. It felt weird. This is much more likely yes. So maybe it's the same mapping (but with the -00002- instead) as what I added for the HoloLense Camera. > > > 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. Indeed, that matches. > > > 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-bit > luminance). I suspect the camera transmits a depth map though. I wonder if we should think of a way to tell userspace this is fnfrared data rather then black and white ? > > > *https://dustinweb.azureedge.net/media/338953/xps-13-9370.pdf > > > > > [ 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 > > > ``` > > > > > > Please tell me, what I can do to improve the situation. > >