Ignore:
Timestamp:
Jul 5, 2010, 11:51:20 AM (15 years ago)
Author:
Paul Smedley
Message:

Update Uniaud32-2.1.x branch with necessary changes for ALSA 1.0.23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/atiixp.c

    r488 r499  
    287287/*
    288288 */
    289 static struct pci_device_id snd_atiixp_ids[] = {
     289static DEFINE_PCI_DEVICE_TABLE(snd_atiixp_ids) = {
    290290        { PCI_VDEVICE(ATI, 0x4341), 0 }, /* SB200 */
    291291        { PCI_VDEVICE(ATI, 0x4361), 0 }, /* SB300 */
     
    298298
    299299static struct snd_pci_quirk atiixp_quirks[] __devinitdata = {
     300        SND_PCI_QUIRK(0x105b, 0x0c81, "Foxconn RC4107MA-RS2", 0),
    300301        SND_PCI_QUIRK(0x15bd, 0x3100, "DFI RS482", 0),
    301302        {0} /* terminator */
     
    351352 * a static RING of buffer descriptors is used.
    352353 *
    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. 
    354355 */
    355356static int atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma,
     
    374375        }
    375376
    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); 
    379380                return 0;
    380         }
    381381
    382382        /* reset DMA before changing the descriptor table */
     
    475475{
    476476        unsigned int data;
    477 
     477   
    478478        if (snd_atiixp_acquire_codec(chip) < 0)
    479479                return;
     
    490490        struct atiixp *chip = ac97->private_data;
    491491        return snd_atiixp_codec_read(chip, ac97->num, reg);
    492 
     492   
    493493}
    494494
     
    516516        udelay(10);
    517517        atiixp_update(chip, CMD, ATI_REG_CMD_AC_SOFT_RESET, 0);
    518 
     518   
    519519        timeout = 10;
    520520        while (! (atiixp_read(chip, CMD) & ATI_REG_CMD_ACLINK_ACTIVE)) {
     
    588588                ac97_codec = ac97_probing_bugs(chip->pci);
    589589        if (ac97_codec >= 0) {
    590                 chip->codec_not_ready_bits |=
     590                chip->codec_not_ready_bits |= 
    591591                        CODEC_CHECK_BITS ^ (1 << (ac97_codec + 10));
    592592                return 0;
     
    936936        atiixp_update(chip, 6CH_REORDER, ATI_REG_6CH_REORDER_EN,
    937937                      substream->runtime->channels >= 6 ? ATI_REG_6CH_REORDER_EN: 0);
    938 
     938   
    939939        spin_unlock_irq(&chip->reg_lock);
    940940        return 0;
Note: See TracChangeset for help on using the changeset viewer.