Changeset 278
- Timestamp:
- Dec 24, 2007, 9:21:51 PM (18 years ago)
- 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 2180 2180 } 2181 2181 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) 2183 static int snd_seq_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) 2184 2184 { 2185 2185 struct snd_seq_client *client = file->private_data; -
GPL/branches/alsa-resync1/alsa-kernel/pci/hda/hda_intel.c
r206 r278 256 256 257 257 struct azx_dev { 258 u32 *bdl; /* virtual address of the BDL */ 258 #ifdef TARGET_OS2 259 volatile u32 *bdl; /* virtual address of the BDL */ 259 260 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 261 267 262 268 unsigned int bufsize; /* size of the play buffer in bytes */ … … 265 271 unsigned int fifo_size; /* FIFO size */ 266 272 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 */ 268 278 269 279 u32 sd_int_sta_mask; /* stream int status mask */ … … 283 293 /* CORB/RIRB */ 284 294 struct azx_rb { 285 u32 *buf;/* CORB/RIRB buffer295 volatile u32 *buf; /* CORB/RIRB buffer 286 296 * Each CORB entry is 4byte, RIRB is 8byte 287 297 */ … … 307 317 /* pci resources */ 308 318 unsigned long addr; 319 #ifdef TARGET_OS2 320 volatile void __iomem *remap_addr; 321 #else /* !TARGET_OS2 */ 309 322 void __iomem *remap_addr; 323 #endif /* !TARGET_OS2 */ 310 324 int irq; 311 325 … … 880 894 static void azx_setup_periods(struct azx_dev *azx_dev) 881 895 { 896 #ifdef TARGET_OS2 897 volatile u32 *bdl = azx_dev->bdl; 898 #else /* !TARGET_OS2 */ 882 899 u32 *bdl = azx_dev->bdl; 900 #endif /* !TARGET_OS2 */ 883 901 dma_addr_t dma_addr = azx_dev->substream->runtime->dma_addr; 884 902 int idx; … … 1196 1214 cmd == SNDRV_PCM_TRIGGER_SUSPEND || 1197 1215 cmd == SNDRV_PCM_TRIGGER_STOP) { 1216 #ifndef TARGET_OS2 1198 1217 int timeout = 5000; 1218 #else /* TARGET_OS2 */ 1219 int timeout = 100000; 1220 #endif /* TARGET_OS2 */ 1199 1221 while (azx_sd_readb(azx_dev, SD_CTL) & SD_CTL_DMA_START && --timeout) 1200 1222 ; … … 1482 1504 pci_disable_msi(chip->pci); 1483 1505 if (chip->remap_addr) 1506 #ifdef TARGET_OS2 1507 iounmap((void *)chip->remap_addr); 1508 #else /* !TARGET_OS2 */ 1484 1509 iounmap(chip->remap_addr); 1510 #endif /* !TARGET_OS2 */ 1485 1511 1486 1512 if (chip->bdl.area) -
GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c
r277 r278 2659 2659 iputbyte(chip, port + ICH_REG_OFF_CR, ICH_RESETREGS); 2660 2660 spin_unlock_irq(&chip->reg_lock); 2661 #if 0 2661 2662 2662 t = stop_time.tv_sec - start_time.tv_sec; 2663 2663 t *= 1000000; 2664 2664 t += stop_time.tv_usec - start_time.tv_usec; 2665 #else2666 t = 50000; /* patch, suggested by r.ihle */2667 #endif2668 2665 printk(KERN_INFO "%s: measured %lu usecs\n", __FUNCTION__, t); 2669 2666 if (t == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.