Changeset 278


Ignore:
Timestamp:
Dec 24, 2007, 9:21:51 PM (18 years ago)
Author:
Brendan Oakley
Message:

Merge latest trunk development to alsa-resync branch

Location:
GPL/branches/alsa-resync1/alsa-kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/alsa-resync1/alsa-kernel/core/seq/seq_clientmgr.c

    r206 r278  
    21802180}
    21812181
    2182 
    2183 static int snd_seq_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
     2182//PS++ static int snd_seq_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
     2183static int snd_seq_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
    21842184{
    21852185        struct snd_seq_client *client = file->private_data;
  • GPL/branches/alsa-resync1/alsa-kernel/pci/hda/hda_intel.c

    r206 r278  
    256256
    257257struct azx_dev {
    258         u32 *bdl;                       /* virtual address of the BDL */
     258#ifdef TARGET_OS2
     259        volatile u32 *bdl;                      /* virtual address of the BDL */
    259260        dma_addr_t bdl_addr;            /* physical address of the BDL */
    260         u32 *posbuf;                    /* position buffer pointer */
     261        volatile u32 *posbuf;                   /* position buffer pointer */
     262#else
     263        u32 *bdl;               /* virtual address of the BDL */
     264        dma_addr_t bdl_addr;    /* physical address of the BDL */
     265        u32 *posbuf;            /* position buffer pointer */
     266#endif
    261267
    262268        unsigned int bufsize;           /* size of the play buffer in bytes */
     
    265271        unsigned int fifo_size;         /* FIFO size */
    266272
    267         void __iomem *sd_addr;          /* stream descriptor pointer */
     273#ifdef TARGET_OS2
     274        volatile void __iomem *sd_addr;         /* stream descriptor pointer */
     275#else /* !TARGET_OS2 */
     276        void __iomem *sd_addr;  /* stream descriptor pointer */
     277#endif /* !TARGET_OS2 */
    268278
    269279        u32 sd_int_sta_mask;            /* stream int status mask */
     
    283293/* CORB/RIRB */
    284294struct azx_rb {
    285         u32 *buf;               /* CORB/RIRB buffer
     295        volatile u32 *buf;      /* CORB/RIRB buffer
    286296                                 * Each CORB entry is 4byte, RIRB is 8byte
    287297                                 */
     
    307317        /* pci resources */
    308318        unsigned long addr;
     319#ifdef TARGET_OS2
     320        volatile void __iomem *remap_addr;
     321#else /* !TARGET_OS2 */
    309322        void __iomem *remap_addr;
     323#endif /* !TARGET_OS2 */
    310324        int irq;
    311325
     
    880894static void azx_setup_periods(struct azx_dev *azx_dev)
    881895{
     896#ifdef TARGET_OS2
     897        volatile u32 *bdl = azx_dev->bdl;
     898#else /* !TARGET_OS2 */
    882899        u32 *bdl = azx_dev->bdl;
     900#endif /* !TARGET_OS2 */
    883901        dma_addr_t dma_addr = azx_dev->substream->runtime->dma_addr;
    884902        int idx;
     
    11961214            cmd == SNDRV_PCM_TRIGGER_SUSPEND ||
    11971215            cmd == SNDRV_PCM_TRIGGER_STOP) {
     1216#ifndef TARGET_OS2
    11981217                int timeout = 5000;
     1218#else /* TARGET_OS2 */
     1219                int timeout = 100000;
     1220#endif /* TARGET_OS2 */
    11991221                while (azx_sd_readb(azx_dev, SD_CTL) & SD_CTL_DMA_START && --timeout)
    12001222                        ;
     
    14821504                pci_disable_msi(chip->pci);
    14831505        if (chip->remap_addr)
     1506#ifdef TARGET_OS2
     1507                iounmap((void *)chip->remap_addr);
     1508#else /* !TARGET_OS2 */
    14841509                iounmap(chip->remap_addr);
     1510#endif /* !TARGET_OS2 */
    14851511
    14861512        if (chip->bdl.area)
  • GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c

    r277 r278  
    26592659    iputbyte(chip, port + ICH_REG_OFF_CR, ICH_RESETREGS);
    26602660    spin_unlock_irq(&chip->reg_lock);
    2661 #if 0
     2661
    26622662    t = stop_time.tv_sec - start_time.tv_sec;
    26632663    t *= 1000000;
    26642664    t += stop_time.tv_usec - start_time.tv_usec;
    2665 #else
    2666     t = 50000; /* patch, suggested by r.ihle */
    2667 #endif
    26682665    printk(KERN_INFO "%s: measured %lu usecs\n", __FUNCTION__, t);
    26692666    if (t == 0) {
Note: See TracChangeset for help on using the changeset viewer.