aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-12-10 18:36:59 +0100
committerTakashi Iwai <tiwai@suse.de>2013-12-10 18:36:59 +0100
commitcb48f74054173872401f2015e342b1e21958825f (patch)
tree8fd067efd3a52307581e2238b539e01395ac4c73
parent987a0237968c9bc2f5243824f71ef45b1a180d48 (diff)
downloadhda-emu-cb48f74054173872401f2015e342b1e21958825f.tar.gz
Shut up the errors on access to the non-existing NID 0x20 on ALC260
Let's just ignore COEF accesses.
-rw-r--r--hda-spec.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/hda-spec.c b/hda-spec.c
index 129159c..8a144c9 100644
--- a/hda-spec.c
+++ b/hda-spec.c
@@ -399,9 +399,16 @@ static struct verb_ext_list extensions[] = {
{ }
};
-static int realtek_dsp_cmd(struct xhda_codec *codec, unsigned int cmd)
+static int realtek_ext_cmd(struct xhda_codec *codec, unsigned int cmd)
{
unsigned int nid = (cmd >> 20) & 0x7f;
+
+ /* just ignore COEFs on ALC260 for non-existing NID 0x20 */
+ if (codec->vendor_id == 0x10ec0260 && nid == 0x20) {
+ codec->rc = 0;
+ return 0;
+ }
+
if (nid != 0x51)
return -ENXIO;
/* There might be a secret DSP connected to node 0x51 */
@@ -605,6 +612,6 @@ void add_codec_extensions(struct xhda_codec *codec)
hda_set_proc_coef(codec, 0x20, 0x00, 0x8020);
if (!strncmp(codec->parsed_name, "Realtek", strlen("Realtek")))
- codec->extended_cmd = realtek_dsp_cmd;
+ codec->extended_cmd = realtek_ext_cmd;
}