pbus->shared_type = AC97_SHARED_TYPE_ICH;	/* shared with audio driver */ 
static int __devinit snd_intel8x0_mixer(intel8x0_t *chip, int ac97_clock){	ac97_bus_t *pbus;	ac97_template_t ac97;	ac97_t *x97;	int err;	unsigned int glob_sta = 0;	static ac97_bus_ops_t ops = {		.write = snd_intel8x0_codec_write,		.read = snd_intel8x0_codec_read,	};	chip->in_ac97_init = 1;		memset(&ac97, 0, sizeof(ac97));	ac97.private_data = chip;	ac97.private_free = snd_intel8x0_mixer_free_ac97;	ac97.scaps = AC97_SCAP_SKIP_AUDIO;	glob_sta = igetdword(chip, ICHREG(GLOB_STA));	if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0)		goto __err;	pbus->private_free = snd_intel8x0_mixer_free_ac97_bus;	pbus->shared_type = AC97_SHARED_TYPE_ICH;	/* shared with audio driver */	if (ac97_clock >= 8000 && ac97_clock <= 48000)		pbus->clock = ac97_clock;	chip->ac97_bus = pbus;	ac97.pci = chip->pci;	ac97.num = glob_sta & ICH_SCR ? 1 : 0;	if ((err = snd_ac97_mixer(pbus, &ac97, &x97)) < 0) {		snd_printk(KERN_ERR "Unable to initialize codec #%d\n", ac97.num);		if (ac97.num == 0)			goto __err;		return err;	}	chip->ac97 = x97;	if(ac97_is_modem(x97) && !chip->ichd[ICHD_MDMIN].ac97) {		chip->ichd[ICHD_MDMIN].ac97 = x97;		chip->ichd[ICHD_MDMOUT].ac97 = x97;	}	chip->in_ac97_init = 0;	return 0; __err:	/* clear the cold-reset bit for the next chance */	if (chip->device_type != DEVICE_ALI)		iputdword(chip, ICHREG(GLOB_CNT), igetdword(chip, ICHREG(GLOB_CNT)) & ~ICH_AC97COLD);	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/2ba71978c04d4dba983b4fc658f82eae164c2bca/intel8x0m.c/buggy/sound/pci/intel8x0m.c