Changeset 488
- Timestamp:
- Jun 21, 2010, 6:12:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/atiixp.c
r464 r488 351 351 * a static RING of buffer descriptors is used. 352 352 * 353 * the ring is built in this function, and is set up to the hardware. 353 * the ring is built in this function, and is set up to the hardware. 354 354 */ 355 355 static int atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma, … … 374 374 } 375 375 376 if (dma->periods == periods && dma->period_bytes == period_bytes) 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 379 return 0; 380 } 378 381 379 382 /* reset DMA before changing the descriptor table */ … … 472 475 { 473 476 unsigned int data; 474 477 475 478 if (snd_atiixp_acquire_codec(chip) < 0) 476 479 return; … … 487 490 struct atiixp *chip = ac97->private_data; 488 491 return snd_atiixp_codec_read(chip, ac97->num, reg); 489 492 490 493 } 491 494 … … 513 516 udelay(10); 514 517 atiixp_update(chip, CMD, ATI_REG_CMD_AC_SOFT_RESET, 0); 515 518 516 519 timeout = 10; 517 520 while (! (atiixp_read(chip, CMD) & ATI_REG_CMD_ACLINK_ACTIVE)) { … … 585 588 ac97_codec = ac97_probing_bugs(chip->pci); 586 589 if (ac97_codec >= 0) { 587 chip->codec_not_ready_bits |= 590 chip->codec_not_ready_bits |= 588 591 CODEC_CHECK_BITS ^ (1 << (ac97_codec + 10)); 589 592 return 0; … … 933 936 atiixp_update(chip, 6CH_REORDER, ATI_REG_6CH_REORDER_EN, 934 937 substream->runtime->channels >= 6 ? ATI_REG_6CH_REORDER_EN: 0); 935 938 936 939 spin_unlock_irq(&chip->reg_lock); 937 940 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.