Skip to contentSkip to conversation

ALSA: cs5535audio trivial debug printk

PATCH New [email protected] 1 participant 1 message Jun 10, 2006

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 ALSA: cs5535audio trivial debug printk

Hi Takashi, Jaroslav,

Following is a trivial patch to get more info for boards where the AC97_VENDOR_ID2 register (or others) time out.

Thanks,
Jaya Kumar

---

 cs5535audio.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

---

sound/pci/cs5535audio/cs5535audio.c +2 -1
diff -X usbvideo.dontdiff -X linux-2.6.17-rc5/Documentation/dontdiff -uprN linux-2.6.17-rc5-ltv/sound/pci/cs5535audio/cs5535audio.c linux-2.6.17-rc5/sound/pci/cs5535audio/cs5535audio.c
@@ -90,7 +90,8 @@ static unsigned short snd_cs5535audio_co
 		udelay(1);
 	} while (--timeout);
 	if (!timeout)
-		snd_printk(KERN_ERR "Failure reading cs5535 codec\n");
+		snd_printk(KERN_ERR "Failure reading codec reg 0x%x,"
+					"Last value=0x%x\n", reg, val);
 
 	return (unsigned short) val;
 }