unsigned char tcsel_reg, ati_misc_cntl2; 
unsigned char reg; 
static void azx_init_chip(azx_t *chip){	unsigned char tcsel_reg, ati_misc_cntl2;	/* Clear bits 0-2 of PCI register TCSEL (at offset 0x44)	 * TCSEL == Traffic Class Select Register, which sets PCI express QOS	 * Ensuring these bits are 0 clears playback static on some HD Audio codecs	 */	pci_read_config_byte (chip->pci, ICH6_PCIREG_TCSEL, &tcsel_reg);	pci_write_config_byte(chip->pci, ICH6_PCIREG_TCSEL, tcsel_reg & 0xf8);	/* reset controller */	azx_reset(chip);	/* initialize interrupts */	azx_int_clear(chip);	azx_int_enable(chip);	/* initialize the codec command I/O */	azx_init_cmd_io(chip);	/* program the position buffer */	azx_writel(chip, DPLBASE, (u32)chip->posbuf.addr);	azx_writel(chip, DPUBASE, upper_32bit(chip->posbuf.addr));	/* For ATI SB450 azalia HD audio, we need to enable snoop */	if (chip->driver_type == AZX_DRIVER_ATI) {		pci_read_config_byte(chip->pci, ATI_SB450_HDAUDIO_MISC_CNTR2_ADDR, 				     &ati_misc_cntl2);		pci_write_config_byte(chip->pci, ATI_SB450_HDAUDIO_MISC_CNTR2_ADDR, 				      (ati_misc_cntl2 & 0xf8) | ATI_SB450_HDAUDIO_ENABLE_SNOOP);	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/da3fca21996414a263d36804d9afb2e701abbfef/hda_intel.c/clean/sound/pci/hda/hda_intel.c