snd_printk("ali_chip_init: reset 5451 error.\n"); 
snd_printk(KERN_ERR "ali_chip_init: reset 5451 error.\n"); 
static int snd_ali_chip_init(ali_t *codec){	unsigned int legacy;	unsigned char temp;	struct pci_dev *pci_dev = NULL;	snd_ali_printk("chip initializing ... \n");	if (snd_ali_reset_5451(codec)) {		snd_printk("ali_chip_init: reset 5451 error.\n");		return -1;	}	if (codec->revision == ALI_5451_V02) {        	pci_dev = codec->pci_m1533;		pci_read_config_byte(pci_dev, 0x59, &temp);		temp |= 0x80;		pci_write_config_byte(pci_dev, 0x59, temp);			pci_dev = codec->pci_m7101;		pci_read_config_byte(pci_dev, 0xb8, &temp);		temp |= 0x20;		pci_write_config_byte(pci_dev, 0xB8, temp);	}	pci_read_config_dword(codec->pci, 0x44, &legacy);	legacy &= 0xff00ff00;	legacy |= 0x000800aa;	pci_write_config_dword(codec->pci, 0x44, legacy);	outl(0x80000001, ALI_REG(codec, ALI_GLOBAL_CONTROL));	outl(0x00000000, ALI_REG(codec, ALI_AINTEN));	outl(0xffffffff, ALI_REG(codec, ALI_AINT));	outl(0x00000000, ALI_REG(codec, ALI_VOLUME));	outb(0x10, 	 ALI_REG(codec, ALI_MPUR2));	codec->ac97_ext_id = snd_ali_codec_peek(codec, 0, AC97_EXTENDED_ID);	codec->ac97_ext_status = snd_ali_codec_peek(codec, 0, AC97_EXTENDED_STATUS);	if (codec->spdif_support) {		snd_ali_enable_spdif_out(codec);		codec->spdif_mask = 0x00000002;	}	codec->num_of_codecs = 1;	/* secondary codec - modem */	if (inl(ALI_REG(codec, ALI_SCTRL)) & ALI_SCTRL_CODEC2_READY) {		codec->num_of_codecs++;		outl(inl(ALI_REG(codec, ALI_SCTRL)) |			(ALI_SCTRL_LINE_IN2|ALI_SCTRL_GPIO_IN2|ALI_SCTRL_LINE_OUT_EN),			ALI_REG(codec, ALI_SCTRL));	}	snd_ali_printk("chip initialize succeed.\n");	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/99b359ba10a582148c6725f428a33ba5356dd993/ali5451.c/buggy/sound/pci/ali5451/ali5451.c