From patchwork Thu Sep 6 07:51:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Dorodnic X-Patchwork-Id: 10589961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BEAB0112B for ; Thu, 6 Sep 2018 07:45:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A60472A598 for ; Thu, 6 Sep 2018 07:45:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A6652A5F0; Thu, 6 Sep 2018 07:45:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 484612A598 for ; Thu, 6 Sep 2018 07:45:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbeIFMT2 (ORCPT ); Thu, 6 Sep 2018 08:19:28 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45282 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbeIFMT2 (ORCPT ); Thu, 6 Sep 2018 08:19:28 -0400 Received: by mail-pf1-f193.google.com with SMTP id i26-v6so4836287pfo.12 for ; Thu, 06 Sep 2018 00:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rz6nviLOxDeNhCWiQEKlVNBxZAfUVLw4LH97Al1IYYQ=; b=Ei2jsSRCFIswzFNmRB3weMzipxBOZ/gf7rhAB1rGOrnMmFYNW/Bw83PVmNPQlMfhYT 6lBAN98u8aJHqz3hIfSwlcaQG1ViJwP1md6CZYFcLH5lH1UK2QFr50LOo8cjwOGt4g4X +IwOZYvTjHvD5B7fuH+YfneM6QbI0vfIru9c1stW2/NjlsTYZoc2hPEOFz4TT9tnr8aK xZQzI5a4rPdYPAq/bNX5GJURyEQlDk6K/muhHYmSH+3ATHmm6/tKhx3u28daV0p0gsFa Fn5byFqcjrm01C7eKYpbqZmEMmqO048ncNprxkZbf6FQ0Du6T1YzSAO2MvmvM9c5eG6y es8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rz6nviLOxDeNhCWiQEKlVNBxZAfUVLw4LH97Al1IYYQ=; b=jfbEusvMTnTvGMChUL9G3AJDTlPwWmVk1/OYpoe3Gy5Y/XvKraf3mgDRoaPlzEKXPf eHWmfb0KRXfsgs//F2V6HpVo25vsWHelyfBxvlp6p/7E7wGnMqg7wsYpdpuai9Dt5RYU AC9xXYDuuJxcOJfToipH/4LD0AzfIbqniImt/6/qWiHSQWd69xU5vFwWMryDDW7ts8KR dBW0g4ynUKVaNxqF87Aejq+DfBv0FEfi9aC+94Vii7dPPVFtWNJFZEFrYSAztBj60g7o nFp6ub5+0CiSerLK+n1fGgQgB14XcXu/FppHmoWazLOPVDGRAPQR7b2AYQq8JbB3pfpy hSDw== X-Gm-Message-State: APzg51BdooIj00ELAJCS3hnPmkICoUsacAvvhwfq+cESQ1kq9DeHHKkG wQiYkla6V2SMu7AI59H2kmlwXc5LxsVLIg== X-Google-Smtp-Source: ANB0VdawButwqrm+nbSkShfLz5A3cpvHIf7Mi41TaDOmd03Qk7dVbjdsoXYbpPFmtidgV5DilpHomw== X-Received: by 2002:a63:d10c:: with SMTP id k12-v6mr1505075pgg.49.1536219919374; Thu, 06 Sep 2018 00:45:19 -0700 (PDT) Received: from perclnx98.iil.intel.com ([192.55.54.41]) by smtp.gmail.com with ESMTPSA id n74-v6sm6228038pfi.161.2018.09.06.00.45.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Sep 2018 00:45:18 -0700 (PDT) From: dorodnic@gmail.com X-Google-Original-From: sergey.dorodnicov@intel.com To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, evgeni.raikhel@intel.com, Sergey Dorodnicov Subject: [PATCH 2/2] CNF4 pixel format for media subsystem Date: Thu, 6 Sep 2018 03:51:07 -0400 Message-Id: <1536220267-22347-3-git-send-email-sergey.dorodnicov@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536220267-22347-1-git-send-email-sergey.dorodnicov@intel.com> References: <1536220267-22347-1-git-send-email-sergey.dorodnicov@intel.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sergey Dorodnicov Registering new GUID used by Intel RealSense depth cameras with fourcc CNF4, encoding sensor confidence information for every pixel. Signed-off-by: Sergey Dorodnicov Signed-off-by: Evgeni Raikhel --- drivers/media/usb/uvc/uvc_driver.c | 5 +++++ drivers/media/usb/uvc/uvcvideo.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index d46dc43..c8d40a4 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -214,6 +214,11 @@ static struct uvc_format_desc uvc_fmts[] = { .guid = UVC_GUID_FORMAT_INZI, .fcc = V4L2_PIX_FMT_INZI, }, + { + .name = "Confidence 4-bit Packed (CNF4)", + .guid = UVC_GUID_FORMAT_CNF4, + .fcc = V4L2_PIX_FMT_CNF4, + }, }; /* ------------------------------------------------------------------------ diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h index e5f5d84..779bab2 100644 --- a/drivers/media/usb/uvc/uvcvideo.h +++ b/drivers/media/usb/uvc/uvcvideo.h @@ -154,6 +154,9 @@ #define UVC_GUID_FORMAT_INVI \ { 'I', 'N', 'V', 'I', 0xdb, 0x57, 0x49, 0x5e, \ 0x8e, 0x3f, 0xf4, 0x79, 0x53, 0x2b, 0x94, 0x6f} +#define UVC_GUID_FORMAT_CNF4 \ + { 'C', ' ', ' ', ' ', 0x00, 0x00, 0x10, 0x00, \ + 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} #define UVC_GUID_FORMAT_D3DFMT_L8 \ {0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, \