From patchwork Mon Sep 22 11:09:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Henningsson X-Patchwork-Id: 4947291 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 87F0A9F32F for ; Mon, 22 Sep 2014 11:11:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC6A62020F for ; Mon, 22 Sep 2014 11:11:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8274520176 for ; Mon, 22 Sep 2014 11:11:33 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 98C12265654; Mon, 22 Sep 2014 13:11:32 +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 713F6265336; Mon, 22 Sep 2014 13:09:24 +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 EDE662652D1; Mon, 22 Sep 2014 13:09:20 +0200 (CEST) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by alsa0.perex.cz (Postfix) with ESMTP id 510C0265294 for ; Mon, 22 Sep 2014 13:09:12 +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 1XW1UW-0001Oq-2X; Mon, 22 Sep 2014 11:09:12 +0000 From: David Henningsson To: tiwai@suse.de, alsa-devel@alsa-project.org Date: Mon, 22 Sep 2014 13:09:04 +0200 Message-Id: <1411384146-23286-4-git-send-email-david.henningsson@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411384146-23286-1-git-send-email-david.henningsson@canonical.com> References: <1411384146-23286-1-git-send-email-david.henningsson@canonical.com> Cc: David Henningsson Subject: [alsa-devel] [PATCH 3/5] hda-spec: Add more secret nodes for Realtek codecs 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 Signed-off-by: David Henningsson --- hda-spec.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/hda-spec.c b/hda-spec.c index fa21cf5..935dcc0 100644 --- a/hda-spec.c +++ b/hda-spec.c @@ -462,17 +462,26 @@ static int realtek_ext_cmd(struct xhda_codec *codec, unsigned int cmd) { unsigned int nid = (cmd >> 20) & 0x7f; + codec->rc = 0; + /* just ignore COEFs on ALC260 for non-existing NID 0x20 */ - if (codec->vendor_id == 0x10ec0260 && nid == 0x20) { - codec->rc = 0; + if (codec->vendor_id == 0x10ec0260 && nid == 0x20) + return 0; + + if (codec->vendor_id == 0x10ec0283 && nid == 0x53) + return 0; + + if (codec->vendor_id == 0x10ec0255 && nid == 0x57) + return 0; + + if (codec->vendor_id == 0x10ec0293 && nid == 0x57) return 0; - } - if (nid != 0x51) - return -ENXIO; /* There might be a secret DSP connected to node 0x51 */ - codec->rc = 0; - return 0; + if (nid == 0x51) + return 0; + + return -ENXIO; } /*