From patchwork Thu Apr 23 10:48:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 11505459 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6DA2F1392 for ; Thu, 23 Apr 2020 10:48:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4CA6F208E4 for ; Thu, 23 Apr 2020 10:48:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=xs4all.nl header.i=@xs4all.nl header.b="QDz/m7Qf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727835AbgDWKs3 (ORCPT ); Thu, 23 Apr 2020 06:48:29 -0400 Received: from lb2-smtp-cloud7.xs4all.net ([194.109.24.28]:37999 "EHLO lb2-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727832AbgDWKsZ (ORCPT ); Thu, 23 Apr 2020 06:48:25 -0400 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud7.xs4all.net with ESMTPA id RZP2jLuQ47xncRZP5jQHTz; Thu, 23 Apr 2020 12:48:24 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1587638904; bh=tXcERKsqHRsDnc50u8Vx+0Dijxw2cNLibuxxlZFQAt8=; h=From:Subject:To:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=QDz/m7Qf23IfsuOqpSWVciZ0/MyENp5djf7mnaCJRKH+dmz4Vvzy8SEepxW9tuFWU 5aED4hHCZm2iOZq0GgiIeOYBkpxmSVmnFEk2ROdFUxk90dhDjWqTV5UZf7juM5F2QX 1xLrH3yny/iWw3NMp6ka8t9XxeRIz9sjGHUKXh/JEvyb2WRPUpLdaZ/473i9itTSqI GnnhGuV+Avc+mZnHzQ/lc2ZLAmBf9uwVskPLCB9kCUX7EgLGC4IS3CCcltXF5KNNT5 eEUSfAQ+mR0sUw9gg69bS/T9kRTJwxkJ9cBBkea3doF3afN453Uxwx1ieDGWwoGIFZ 5doS94sZGvuSA== From: Hans Verkuil Subject: [PATCH] v4l2-compliance: zero mbus_code To: Linux Media Mailing List , =?utf-8?q?Niklas?= =?utf-8?q?_S=C3=B6derlund?= , Helen Koike , Sakari Ailus , Laurent Pinchart Cc: Linux-Renesas Message-ID: <5cf00351-bf5f-b347-0ab5-9ea260a7bc85@xs4all.nl> Date: Thu, 23 Apr 2020 12:48:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US X-CMAE-Envelope: MS4wfLyJwAkzqMpJcNEPA9l6sDUPy/n8xiKsCQOPdIgnsOgW0YZLiLwQ0vaJ2NFDel12rkQjs9XX10Y3lN5RvdSio0C7j6VoO3Yfw31G9jqIrH8NKfXU/0CA FxMkRv58Ck3DL27OGC9PpVK7F3/PwGekXIrTkxDBpUlPH7DiDYL7VZpxvlGGvpUF+m0AwUHvB85uFl2+HqDzBTRx8zyDKjqnhf+SNI5DldtUVcB4VyWT4OTC SkFDhs2NCtsihjCDNQmhr8l6TkTwrIHgP2G0U7PyWeZBIH2NuYzYdmvb1+zEduV6W2FFLY3LqptpvVLWPobAtzxia8FFBuoD5OZgypzcbUfF3JDMibotKceK rsZ+wUFnALgSAwMnYI8Uxz7kX1YMc23pCDUyCsYd8DC0T8VNROo= Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The new fmtdesc.mbus_code should be zeroed by applications. Signed-off-by: Hans Verkuil Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund diff --git a/utils/v4l2-compliance/v4l2-test-formats.cpp b/utils/v4l2-compliance/v4l2-test-formats.cpp index 824769b3..269a5fd9 100644 --- a/utils/v4l2-compliance/v4l2-test-formats.cpp +++ b/utils/v4l2-compliance/v4l2-test-formats.cpp @@ -235,6 +235,7 @@ static int testEnumFormatsType(struct node *node, unsigned type) memset(&fmtdesc, 0xff, sizeof(fmtdesc)); fmtdesc.type = type; fmtdesc.index = f; + fmtdesc.mbus_code = 0; ret = doioctl(node, VIDIOC_ENUM_FMT, &fmtdesc); if (ret == ENOTTY)