From patchwork Mon Nov 20 13:41:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 10066505 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BECA0602B7 for ; Mon, 20 Nov 2017 13:41:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B05B4289D6 for ; Mon, 20 Nov 2017 13:41:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5492290D6; Mon, 20 Nov 2017 13:41:42 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 75797289D6 for ; Mon, 20 Nov 2017 13:41:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C88016E1A0; Mon, 20 Nov 2017 13:41:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lb3-smtp-cloud9.xs4all.net (lb3-smtp-cloud9.xs4all.net [194.109.24.30]) by gabe.freedesktop.org (Postfix) with ESMTPS id E3B7B6E162 for ; Mon, 20 Nov 2017 13:41:35 +0000 (UTC) Received: from tschai.fritz.box ([212.251.195.8]) by smtp-cloud9.xs4all.net with ESMTPA id GmKHe1Bj5nIXbGmKLeOPPZ; Mon, 20 Nov 2017 14:41:34 +0100 From: Hans Verkuil To: linux-media@vger.kernel.org Subject: [PATCH 2/2] hdmi: audio infoframe log: corrected channel count Date: Mon, 20 Nov 2017 14:41:29 +0100 Message-Id: <20171120134129.26161-3-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171120134129.26161-1-hverkuil@xs4all.nl> References: <20171120134129.26161-1-hverkuil@xs4all.nl> X-CMAE-Envelope: MS4wfIYmFspQBLvn9uGCPVrfpYac0+H1/i11v7Duox3+atcZMm13XQIuQBuJmE0L1GTVV5nN0O6APU+QRWUbuez2komlQ34CZR3Vb2jvn/gD0bdHbpl+Nzgl MGBpZMdisipCFN/xRES7DhbdJbkh2ZcP1QaxqTbXsxBzkwVV3U7oocrlNtvZOZS/UKd6EuvLTtOtyYoTcBCVKIco9DjFGMyrVgEWcB1tGy2W9u+cTaPzlec8 Fr2O9HhE/CiTtvsFy8qjdEBTQANG+7jpOkEi4b/4oxcj7m34f3veCOB3HQzU1PXSb+5UjRV3+XcFs2qDGnAiG/GPvFisJ0zI7SxahHhnrUwRGVkZHpcPr/5O mhLouubN Cc: Daniel Vetter , dri-devel@lists.freedesktop.org, Hans Verkuil , Thierry Reding , Martin Bugge X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Martin Bugge Audio channel count should start from 2. Reference: CEA-861-F Table 27. Cc: Hans Verkuil Reported-by: Ahung Cheng Signed-off-by: Martin Bugge --- drivers/video/hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index 61f803f75a47..5f78b254dd59 100644 --- a/drivers/video/hdmi.c +++ b/drivers/video/hdmi.c @@ -884,7 +884,7 @@ static void hdmi_audio_infoframe_log(const char *level, (struct hdmi_any_infoframe *)frame); if (frame->channels) - hdmi_log(" channels: %u\n", frame->channels - 1); + hdmi_log(" channels: %u\n", frame->channels + 1); else hdmi_log(" channels: Refer to stream header\n"); hdmi_log(" coding type: %s\n",