aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2014-09-22 13:09:04 +0200
committerTakashi Iwai <tiwai@suse.de>2014-09-22 14:50:40 +0200
commit0165d62d97d6863d7aea2cf7bb7f3bdb64839cb9 (patch)
tree764ac6572b9c27750e6134a592051731019d280d
parent118f4529be1984d68ec53ae799c84045fd01bdbb (diff)
downloadhda-emu-0165d62d97d6863d7aea2cf7bb7f3bdb64839cb9.tar.gz
hda-spec: Add more secret nodes for Realtek codecs
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--hda-spec.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/hda-spec.c b/hda-spec.c
index fc2f9eb..5f1ac42 100644
--- a/hda-spec.c
+++ b/hda-spec.c
@@ -474,17 +474,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;
}
/*