Changeset 434
- Timestamp:
- May 31, 2009, 6:14:56 AM (16 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/hda/hda_intel.c
r427 r434 617 617 struct azx *chip = bus->private_data; 618 618 unsigned long timeout; 619 #ifdef TARGET_OS2 620 int count = 0; 621 #endif 619 622 620 623 again: … … 632 635 if (time_after(jiffies, timeout)) 633 636 break; 637 #ifdef TARGET_OS2 638 if (count >= 5000) /* Hack on OS/2 to stop infinite loop as jiffies sometimes don't increment */ 639 break; 640 #endif 634 641 if (bus->needs_damn_long_delay) 635 642 msleep(2); /* temporary workaround */ … … 638 645 cond_resched(); 639 646 } 640 } 641 647 #ifdef TARGET_OS2 648 count++; 649 #endif 650 } 651 #ifdef TARGET_OS2 652 if (count >= 5000) 653 snd_printk(KERN_WARNING "hda_intel: count >= 5000, aborting loop in azx_rirb_get_response\n"); 654 655 #endif 642 656 if (chip->msi) { 643 657 snd_printk(KERN_WARNING "hda_intel: No response from codec, " … … 999 1013 struct azx_dev *azx_dev; 1000 1014 u32 status; 1001 #ifdef TARGET_OS21002 u32 ignore_irq = 0;1003 #endif1004 1015 int i, ok; 1005 1016 … … 1018 1029 if (!azx_dev->substream || !azx_dev->running) 1019 1030 continue; 1020 #if 0 /* ??????? */1021 #ifdef TARGET_OS21022 ignore_irq |= azx_dev->sd_int_sta_mask;1023 #endif1024 continue;1025 #endif1026 1031 /* check whether this IRQ is really acceptable */ 1027 1032 ok = azx_position_ok(chip, azx_dev); … … 1055 1060 spin_unlock(&chip->reg_lock); 1056 1061 1057 1058 if ( (status & RIRB_INT_MASK) || ignore_irq) {1062 #ifdef TARGET_OS2 1063 if (status & RIRB_INT_MASK) { 1059 1064 return 2; 1060 1065 } 1061 1066 #endif 1062 1067 1063 1068 return IRQ_HANDLED; … … 1108 1113 struct azx_dev *azx_dev) 1109 1114 { 1110 #ifdef TARGET_OS2xx /* Anyone know why this is set to volatile - causes a warning when it is set */1111 volatile u32 *bdl;1112 #else1113 1115 u32 *bdl; 1114 #endif1115 1116 int i, ofs, periods, period_bytes; 1116 1117 int pos_adj; -
GPL/trunk/drv32/devhlp.asm
r32 r434 143 143 iodelay32_ endp 144 144 145 ;iodelay32_ proc near 146 ; mov ax,DOSIODELAYCNT 147 ; top: 148 ; dec ax 149 ; jnz top 150 ;iodelay32_ ENDP 151 145 152 CODE32 ends 146 153
Note:
See TracChangeset
for help on using the changeset viewer.