Changeset 151 for sbliveos2/trunk/sblive
- Timestamp:
- May 28, 2000, 6:50:46 PM (25 years ago)
- Location:
- sbliveos2/trunk/sblive
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/sblive/cardmi.c
r142 r151 37 37 #include "cardmi.h" 38 38 39 #ifdef TARGET_OS2 40 extern int OSS32_ProcessMidiIRQ(unsigned long streamid); 41 #endif 42 39 43 static struct { 40 44 int (*Fn) (struct emu10k1_mpuin *, u8); … … 96 100 emu10k1_mpu_acquire(card); 97 101 102 #ifdef TARGET_OS2 103 emu10k1_irq_enable(card, INTE_MIDIRXENABLE); 104 #endif 98 105 return CTSTATUS_SUCCESS; 99 106 } … … 343 350 */ 344 351 352 #ifdef TARGET_OS2 353 OSS32_ProcessMidiIRQ((unsigned long)card_mpuin->openinfo.refdata); 354 return CTSTATUS_SUCCESS; 355 #else 345 356 count = 0; 346 357 idx = card_mpuin->qtail; … … 364 375 365 376 return CTSTATUS_SUCCESS; 377 #endif 366 378 } 367 379 -
sbliveos2/trunk/sblive/cardmi.h
r142 r151 58 58 /* flags for card MIDI in object */ 59 59 #define FLAGS_MIDM_STARTED 0x00001000 // Data has started to come in after Midm Start 60 61 #ifdef TARGET_OS2 62 #define MIDIIN_MAX_BUFFER_SIZE 4 63 #else 60 64 #define MIDIIN_MAX_BUFFER_SIZE 200 // Definition for struct emu10k1_mpuin 65 #endif 61 66 62 67 struct midi_data -
sbliveos2/trunk/sblive/midi.c
r142 r151 55 55 struct midi_hdr *midihdr; 56 56 57 #ifdef TARGET_OS2 58 if ((midihdr = (struct midi_hdr *) kmalloc(sizeof(struct midi_hdr), GFP_KERNEL)) == NULL) { 59 #else 57 60 if ((midihdr = (struct midi_hdr *) kmalloc(sizeof(struct midi_hdr *), GFP_KERNEL)) == NULL) { 61 #endif 58 62 ERROR(); 59 63 return -EINVAL; … … 336 340 return -EFAULT; 337 341 342 #ifdef TARGET_OS2 343 if ((midihdr = (struct midi_hdr *) kmalloc(sizeof(struct midi_hdr), GFP_KERNEL)) == NULL) 344 #else 338 345 if ((midihdr = (struct midi_hdr *) kmalloc(sizeof(struct midi_hdr *), GFP_KERNEL)) == NULL) 346 #endif 339 347 return -EINVAL; 340 348 -
sbliveos2/trunk/sblive/midi.h
r142 r151 42 42 #define MIDIIN_STATE_STOPPED 0x00000002 43 43 44 #ifdef TARGET_OS2 45 #define MIDIIN_BUFLEN 16 46 #else 44 47 #define MIDIIN_BUFLEN 1024 48 #endif 45 49 46 50 struct emu10k1_mididevice
Note:
See TracChangeset
for help on using the changeset viewer.