diff options
author | 2009-08-01 19:18:45 +0800 | |
---|---|---|
committer | 2009-08-03 08:27:53 +0200 | |
commit | e310bb0646e57a4f9182865115c5780931456c65 (patch) | |
tree | 71580a573c97e14c8143517c5e682d984a4c14ec /sound/pci | |
parent | ALSA: hda: remember last command for each codec (diff) | |
download | linux-e310bb0646e57a4f9182865115c5780931456c65.tar.gz linux-e310bb0646e57a4f9182865115c5780931456c65.tar.bz2 linux-e310bb0646e57a4f9182865115c5780931456c65.zip |
ALSA: hda: warn on spurious response
To help disclose hardware bugs.
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 7c43f92de2fa..175f07a381ba 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -632,7 +632,11 @@ static void azx_update_rirb(struct azx *chip) chip->rirb.res[addr] = res; smp_wmb(); chip->rirb.cmds[addr]--; - } + } else + snd_printk(KERN_ERR SFX "spurious response %#x:%#x, " + "last cmd=%#08x\n", + res, res_ex, + chip->last_cmd[addr]); } } |