set_current_state(TASK_UNINTERRUPTIBLE); schedule_timeout(1); 
schedule_timeout_uninterruptible(1); 
static int __devinit pontis_init(ice1712_t *ice){	static unsigned short wm_inits[] = {		/* These come first to reduce init pop noise */		WM_ADC_MUX,	0x00c0,	/* ADC mute */		WM_DAC_MUTE,	0x0001,	/* DAC softmute */		WM_DAC_CTRL1,	0x0000,	/* DAC mute */		WM_POWERDOWN,	0x0008,	/* All power-up except HP */		WM_RESET,	0x0000,	/* reset */	};	static unsigned short wm_inits2[] = {		WM_MASTER_CTRL,	0x0022,	/* 256fs, slave mode */		WM_DAC_INT,	0x0022,	/* I2S, normal polarity, 24bit */		WM_ADC_INT,	0x0022,	/* I2S, normal polarity, 24bit */		WM_DAC_CTRL1,	0x0090,	/* DAC L/R */		WM_OUT_MUX,	0x0001,	/* OUT DAC */		WM_HP_ATTEN_L,	0x0179,	/* HP 0dB */		WM_HP_ATTEN_R,	0x0179,	/* HP 0dB */		WM_DAC_ATTEN_L,	0x0000,	/* DAC 0dB */		WM_DAC_ATTEN_L,	0x0100,	/* DAC 0dB */		WM_DAC_ATTEN_R,	0x0000,	/* DAC 0dB */		WM_DAC_ATTEN_R,	0x0100,	/* DAC 0dB */		// WM_DAC_MASTER,	0x0100,	/* DAC master muted */		WM_PHASE_SWAP,	0x0000,	/* phase normal */		WM_DAC_CTRL2,	0x0000,	/* no deemphasis, no ZFLG */		WM_ADC_ATTEN_L,	0x0000,	/* ADC muted */		WM_ADC_ATTEN_R,	0x0000,	/* ADC muted */#if 0		WM_ALC_CTRL1,	0x007b,	/* */		WM_ALC_CTRL2,	0x0000,	/* */		WM_ALC_CTRL3,	0x0000,	/* */		WM_NOISE_GATE,	0x0000,	/* */#endif		WM_DAC_MUTE,	0x0000,	/* DAC unmute */		WM_ADC_MUX,	0x0003,	/* ADC unmute, both CD/Line On */	};	static unsigned char cs_inits[] = {		0x04,	0x80,	/* RUN, RXP0 */		0x05,	0x05,	/* slave, 24bit */		0x01,	0x00,		0x02,	0x00,		0x03,	0x00,	};	unsigned int i;	ice->vt1720 = 1;	ice->num_total_dacs = 2;	ice->num_total_adcs = 2;	/* to remeber the register values */	ice->akm = kzalloc(sizeof(akm4xxx_t), GFP_KERNEL);	if (! ice->akm)		return -ENOMEM;	ice->akm_codecs = 1;	/* HACK - use this as the SPDIF source.	 * don't call snd_ice1712_gpio_get/put(), otherwise it's overwritten	 */	ice->gpio.saved[0] = 0;	/* initialize WM8776 codec */	for (i = 0; i < ARRAY_SIZE(wm_inits); i += 2)		wm_put(ice, wm_inits[i], wm_inits[i+1]);	set_current_state(TASK_UNINTERRUPTIBLE);	schedule_timeout(1);	for (i = 0; i < ARRAY_SIZE(wm_inits2); i += 2)		wm_put(ice, wm_inits2[i], wm_inits2[i+1]);	/* initialize CS8416 codec */	/* assert PRST#; MT05 bit 7 */	outb(inb(ICEMT1724(ice, AC97_CMD)) | 0x80, ICEMT1724(ice, AC97_CMD));	mdelay(5);	/* deassert PRST# */	outb(inb(ICEMT1724(ice, AC97_CMD)) & ~0x80, ICEMT1724(ice, AC97_CMD));	for (i = 0; i < ARRAY_SIZE(cs_inits); i += 2)		spi_write(ice, CS_DEV, cs_inits[i], cs_inits[i+1]);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/8433a509c0eb6bb1f33ce39c82c580b8901619ee/pontis.c/buggy/sound/pci/ice1712/pontis.c