Changeset 499 for GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/atiixp.c
- Timestamp:
- Jul 5, 2010, 11:51:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/atiixp.c
r488 r499 287 287 /* 288 288 */ 289 static struct pci_device_id snd_atiixp_ids[]= {289 static DEFINE_PCI_DEVICE_TABLE(snd_atiixp_ids) = { 290 290 { PCI_VDEVICE(ATI, 0x4341), 0 }, /* SB200 */ 291 291 { PCI_VDEVICE(ATI, 0x4361), 0 }, /* SB300 */ … … 298 298 299 299 static struct snd_pci_quirk atiixp_quirks[] __devinitdata = { 300 SND_PCI_QUIRK(0x105b, 0x0c81, "Foxconn RC4107MA-RS2", 0), 300 301 SND_PCI_QUIRK(0x15bd, 0x3100, "DFI RS482", 0), 301 302 {0} /* terminator */ … … 351 352 * a static RING of buffer descriptors is used. 352 353 * 353 * the ring is built in this function, and is set up to the hardware. 354 * the ring is built in this function, and is set up to the hardware. 354 355 */ 355 356 static int atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma, … … 374 375 } 375 376 376 if (dma->periods == periods && dma->period_bytes == period_bytes) { 377 writel((u32)dma->desc_buf.addr | ATI_REG_LINKPTR_EN, 378 (char*)chip->remap_addr + dma->ops->llp_offset); 377 if (dma->periods == periods && dma->period_bytes == period_bytes) { 378 writel((u32)dma->desc_buf.addr | ATI_REG_LINKPTR_EN, 379 (char*)chip->remap_addr + dma->ops->llp_offset); 379 380 return 0; 380 }381 381 382 382 /* reset DMA before changing the descriptor table */ … … 475 475 { 476 476 unsigned int data; 477 477 478 478 if (snd_atiixp_acquire_codec(chip) < 0) 479 479 return; … … 490 490 struct atiixp *chip = ac97->private_data; 491 491 return snd_atiixp_codec_read(chip, ac97->num, reg); 492 492 493 493 } 494 494 … … 516 516 udelay(10); 517 517 atiixp_update(chip, CMD, ATI_REG_CMD_AC_SOFT_RESET, 0); 518 518 519 519 timeout = 10; 520 520 while (! (atiixp_read(chip, CMD) & ATI_REG_CMD_ACLINK_ACTIVE)) { … … 588 588 ac97_codec = ac97_probing_bugs(chip->pci); 589 589 if (ac97_codec >= 0) { 590 chip->codec_not_ready_bits |= 590 chip->codec_not_ready_bits |= 591 591 CODEC_CHECK_BITS ^ (1 << (ac97_codec + 10)); 592 592 return 0; … … 936 936 atiixp_update(chip, 6CH_REORDER, ATI_REG_6CH_REORDER_EN, 937 937 substream->runtime->channels >= 6 ? ATI_REG_6CH_REORDER_EN: 0); 938 938 939 939 spin_unlock_irq(&chip->reg_lock); 940 940 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.