From patchwork Thu Sep 4 14:21:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Henningsson X-Patchwork-Id: 4846231 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B1DDFC0338 for ; Thu, 4 Sep 2014 14:23:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4911520274 for ; Thu, 4 Sep 2014 14:23:51 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0A4BF20265 for ; Thu, 4 Sep 2014 14:23:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3A6ED265759; Thu, 4 Sep 2014 16:23:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 923AB265640; Thu, 4 Sep 2014 16:21:47 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 915DB2656BE; Thu, 4 Sep 2014 16:21:43 +0200 (CEST) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by alsa0.perex.cz (Postfix) with ESMTP id 6F9C8265640 for ; Thu, 4 Sep 2014 16:21:24 +0200 (CEST) Received: from hd9483857.selulk5.dyn.perspektivbredband.net ([217.72.56.87] helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XPXue-0005oH-69; Thu, 04 Sep 2014 14:21:24 +0000 From: David Henningsson To: tiwai@suse.de, alsa-devel@alsa-project.org Date: Thu, 4 Sep 2014 16:21:24 +0200 Message-Id: <1409840486-14961-3-git-send-email-david.henningsson@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409840486-14961-1-git-send-email-david.henningsson@canonical.com> References: <1409840486-14961-1-git-send-email-david.henningsson@canonical.com> Cc: David Henningsson Subject: [alsa-devel] [PATCH 2/4] hda-emu: Add verbs for old Nvidia HDMI 8ch 7x X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The driver sends these verbs on purpose. I can't verify that it is correct to do so, but I hope the driver is doing the right thing here. Signed-off-by: David Henningsson --- hda-spec.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hda-spec.c b/hda-spec.c index fe2ff36..b03d06a 100644 --- a/hda-spec.c +++ b/hda-spec.c @@ -263,6 +263,14 @@ static struct xhda_verb_table amdhdmi_verbs[] = { { } /* terminator */ }; +static struct xhda_verb_table nvhdmi_8ch_7x_verbs[] = { + { 0xf79, set_cached_verb, "nvhdmi_set_channel_allocation" }, + { 0xf7a, set_cached_verb, "nvhdmi_set_info_frame_checksum" }, + { 0xf98, set_cached_verb, "nvhdmi_set_audio_protection_on" }, + { 0xf99, set_cached_verb, "nvhdmi_set_audio_protection_off" }, + { } /* terminator */ +}; + /* */ @@ -428,6 +436,12 @@ static struct verb_ext_list extensions[] = { { .id = 0x1002aa01, .verbs = amdhdmi_verbs }, + { .id = 0x10de0002, .verbs = nvhdmi_8ch_7x_verbs }, + { .id = 0x10de0003, .verbs = nvhdmi_8ch_7x_verbs }, + { .id = 0x10de0005, .verbs = nvhdmi_8ch_7x_verbs }, + { .id = 0x10de0006, .verbs = nvhdmi_8ch_7x_verbs }, + { .id = 0x10de0007, .verbs = nvhdmi_8ch_7x_verbs }, + { } };