snd_printk("AC'97 codec ready error [0x%x]\n", inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL))); 
snd_printk(KERN_ERR "AC'97 codec ready error [0x%x]\n", inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL))); 
static int snd_trident_sis_reset(trident_t *trident){	unsigned long end_time;	unsigned int i;	int r;	r = trident->in_suspend ? 0 : 2;	/* count of retries */      __si7018_retry:	pci_write_config_byte(trident->pci, 0x46, 0x04);	/* SOFTWARE RESET */	udelay(100);	pci_write_config_byte(trident->pci, 0x46, 0x00);	udelay(100);	/* disable AC97 GPIO interrupt */	outb(0x00, TRID_REG(trident, SI_AC97_GPIO));	/* initialize serial interface, force cold reset */	i = PCMOUT|SURROUT|CENTEROUT|LFEOUT|SECONDARY_ID|COLD_RESET;	outl(i, TRID_REG(trident, SI_SERIAL_INTF_CTRL));	udelay(1000);	/* remove cold reset */	i &= ~COLD_RESET;	outl(i, TRID_REG(trident, SI_SERIAL_INTF_CTRL));	udelay(2000);	/* wait, until the codec is ready */	end_time = (jiffies + (HZ * 3) / 4) + 1;	do {		if ((inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) & SI_AC97_PRIMARY_READY) != 0)			goto __si7018_ok;		do_delay(trident);	} while (time_after_eq(end_time, jiffies));	snd_printk("AC'97 codec ready error [0x%x]\n", inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)));	if (r-- > 0) {		end_time = jiffies + HZ;		do {			do_delay(trident);		} while (time_after_eq(end_time, jiffies));		goto __si7018_retry;	}      __si7018_ok:	/* wait for the second codec */	do {		if ((inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) & SI_AC97_SECONDARY_READY) != 0)			break;		do_delay(trident);	} while (time_after_eq(end_time, jiffies));	/* enable 64 channel mode */	outl(BANK_B_EN, TRID_REG(trident, T4D_LFO_GC_CIR));	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/99b359ba10a582148c6725f428a33ba5356dd993/trident_main.c/buggy/sound/pci/trident/trident_main.c