rem: PRINT(("installing interrupt : %x\n", card->config.irq));
add: PRINT(("installing interrupt : %lx\n", card->config.irq));
context: auvia_setup(auvia_dev * card){	status_t err = B_OK;	unsigned char cmd;		PRINT(("auvia_setup(%p)\n", card));	make_device_names(card);		card->config.nabmbar = card->info.u.h0.base_registers[0];	card->config.irq = card->info.u.h0.interrupt_line;	card->config.type = 0;	if(card->info.device_id == VIATECH_82C686_AC97_DEVICE_ID)		card->config.type |= TYPE_686;	if(card->info.device_id == VIATECH_8233_AC97_DEVICE_ID)		card->config.type |= TYPE_8233;		PRINT(("%s deviceid = %#04x chiprev = %x model = %x enhanced at %x\n", card->name, card->info.device_id,		card->info.revision, card->info.u.h0.subsystem_id, card->config.nabmbar));			cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);	PRINT(("PCI command before: %x\n", cmd));	(*pci->write_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2, cmd | PCI_command_io);	cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);	PRINT(("PCI command after: %x\n", cmd));	/* reset the codec */		PRINT(("codec reset\n"));	auvia_codec_write(&card->config, 0x00, 0x0000);	snooze(50000); // 50 ms	ac97_init(&card->config);	ac97_amp_enable(&card->config, true);	PRINT(("codec vendor id      = %#08x\n",ac97_get_vendor_id(&card->config)));	PRINT(("codec description     = %s\n",ac97_get_vendor_id_description(&card->config)));	PRINT(("codec 3d enhancement = %s\n",ac97_get_3d_stereo_enhancement(&card->config)));		PRINT(("installing interrupt : %x\n", card->config.irq));	install_io_interrupt_handler(card->config.irq, auvia_int, card, 0);			/*PRINT(("codec master output = %#04x\n",auvia_codec_read(&card->config, 0x02)));	PRINT(("codec aux output    = %#04x\n",auvia_codec_read(&card->config, 0x04)));	PRINT(("codec mono output   = %#04x\n",auvia_codec_read(&card->config, 0x06)));	PRINT(("codec pcm output    = %#04x\n",auvia_codec_read(&card->config, 0x18)));	PRINT(("codec line in	    = %#04x\n",auvia_codec_read(&card->config, 0x10)));	PRINT(("codec record line in= %#04x\n",auvia_codec_read(&card->config, 0x1a)));	PRINT(("codec record gain   = %#04x\n",auvia_codec_read(&card->config, 0x1c)));*/		PRINT(("writing codec registers\n"));	// TODO : to move with AC97	/* enable master output */	auvia_codec_write(&card->config, AC97_MASTER_VOLUME, 0x0000);	/* enable aux output */	auvia_codec_write(&card->config, AC97_AUX_OUT_VOLUME, 0x0000);	/* enable mono output */	//auvia_codec_write(&card->config, AC97_MONO_VOLUME, 0x0004);	/* enable pcm output */	auvia_codec_write(&card->config, AC97_PCM_OUT_VOLUME, 0x0808);	/* enable line in */	//auvia_codec_write(&card->config, AC97_LINE_IN_VOLUME, 0x8808);	/* set record line in */	auvia_codec_write(&card->config, AC97_RECORD_SELECT, 0x0404);	/* set record gain */	//auvia_codec_write(&card->config, AC97_RECORD_GAIN, 0x0000);	PRINT(("codec master output = %#04x\n",auvia_codec_read(&card->config, AC97_MASTER_VOLUME)));	PRINT(("codec aux output    = %#04x\n",auvia_codec_read(&card->config, AC97_AUX_OUT_VOLUME)));	PRINT(("codec mono output   = %#04x\n",auvia_codec_read(&card->config, AC97_MONO_VOLUME)));	PRINT(("codec pcm output    = %#04x\n",auvia_codec_read(&card->config, AC97_PCM_OUT_VOLUME)));	PRINT(("codec line in	    = %#04x\n",auvia_codec_read(&card->config, AC97_LINE_IN_VOLUME)));	PRINT(("codec record line in= %#04x\n",auvia_codec_read(&card->config, AC97_RECORD_SELECT)));	PRINT(("codec record gain   = %#04x\n",auvia_codec_read(&card->config, AC97_RECORD_GAIN)));			if ((err = auvia_init(card)))		return (err);			PRINT(("init_driver done\n"));	return err;}