From: David Henningsson <david.henningsson@canonical.com>
To: tiwai@suse.de, alsa-devel@alsa-project.org
Cc: David Henningsson <david.henningsson@canonical.com>
Subject: [PATCH 3/5] hda-spec: Add more secret nodes for Realtek codecs
Date: Mon, 22 Sep 2014 13:09:04 +0200 [thread overview]
Message-ID: <1411384146-23286-4-git-send-email-david.henningsson@canonical.com> (raw)
In-Reply-To: <1411384146-23286-1-git-send-email-david.henningsson@canonical.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
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;
}
/*
--
1.9.1
next prev parent reply other threads:[~2014-09-22 11:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-22 11:09 [PATCH 0/5] hda-emu: Add more stuff in hda-spec David Henningsson
2014-09-22 11:09 ` [PATCH 1/5] hda-spec: Add fixups for Haswell/Broadwell HDMI David Henningsson
2014-09-22 11:09 ` [PATCH 2/5] hda-spec: Add access to secret node 0x8 " David Henningsson
2014-09-22 11:09 ` David Henningsson [this message]
2014-09-22 11:09 ` [PATCH 4/5] hda-spec: Add secret eq verbs for IDT David Henningsson
2014-09-22 11:09 ` [PATCH 5/5] hda-spec: Add IDT 92HD95 to IDT verb codec list David Henningsson
2014-09-22 12:51 ` [PATCH 0/5] hda-emu: Add more stuff in hda-spec Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1411384146-23286-4-git-send-email-david.henningsson@canonical.com \
--to=david.henningsson@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).