ALSA: hda - Do not accept responses from non-existing codecs
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 29 Jan 2014 12:12:31 +0000 (13:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Jan 2014 11:39:15 +0000 (12:39 +0100)
commit3d692451eaf213e44f343aa2be06501b56ab2077
treeec74f762d2c7b693821de2fa55dfc475f3d40c17
parent3760bc74832cf97606964321c8078819f4f5eb13
ALSA: hda - Do not accept responses from non-existing codecs

While looking into some spurious responses, I found that the addr value was
treated a bit inconsistent: values 8..0xf will be treated as codec 0 and
values 0..7 will be treated as no error regardless of whether there is a codec
there, or not.

With this patch, all non-existing codecs will be treated equally.
In addition, printing rp and wp could help figuring out if the wp value is
reported wrongly from the controller or if something else is wrong.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c