Changeset 488


Ignore:
Timestamp:
Jun 21, 2010, 6:12:57 PM (15 years ago)
Author:
David Azarewicz
Message:

sound fragment fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/pci/atiixp.c

    r464 r488  
    351351 * a static RING of buffer descriptors is used.
    352352 *
    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.
    354354 */
    355355static int atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma,
     
    374374        }
    375375
    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);
    377379                return 0;
     380        }
    378381
    379382        /* reset DMA before changing the descriptor table */
     
    472475{
    473476        unsigned int data;
    474    
     477
    475478        if (snd_atiixp_acquire_codec(chip) < 0)
    476479                return;
     
    487490        struct atiixp *chip = ac97->private_data;
    488491        return snd_atiixp_codec_read(chip, ac97->num, reg);
    489    
     492
    490493}
    491494
     
    513516        udelay(10);
    514517        atiixp_update(chip, CMD, ATI_REG_CMD_AC_SOFT_RESET, 0);
    515    
     518
    516519        timeout = 10;
    517520        while (! (atiixp_read(chip, CMD) & ATI_REG_CMD_ACLINK_ACTIVE)) {
     
    585588                ac97_codec = ac97_probing_bugs(chip->pci);
    586589        if (ac97_codec >= 0) {
    587                 chip->codec_not_ready_bits |= 
     590                chip->codec_not_ready_bits |=
    588591                        CODEC_CHECK_BITS ^ (1 << (ac97_codec + 10));
    589592                return 0;
     
    933936        atiixp_update(chip, 6CH_REORDER, ATI_REG_6CH_REORDER_EN,
    934937                      substream->runtime->channels >= 6 ? ATI_REG_6CH_REORDER_EN: 0);
    935    
     938
    936939        spin_unlock_irq(&chip->reg_lock);
    937940        return 0;
Note: See TracChangeset for help on using the changeset viewer.