Changeset 34 for GPL/trunk/lib32
- Timestamp:
- Dec 11, 2005, 5:57:39 PM (20 years ago)
- Location:
- GPL/trunk/lib32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/fminstrload.c
r33 r34 178 178 * Send patch to destination port 179 179 */ 180 static int load_patch (midihandle *pHandle, fm_instrument_t * fm_instr, int bank, int prg, char *name)180 static int load_patch (midihandle *pHandle, struct fm_instrument * fm_instr, int bank, int prg, char *name) 181 181 { 182 182 snd_seq_instr_header_t *put; … … 231 231 232 232 sbi_inst_t sbi_instr; 233 fm_instrument_t fm_instr;233 struct fm_instrument fm_instr; 234 234 int fm_instr_type; 235 235 … … 311 311 { 312 312 snd_instr_header_t *put; 313 fm_instrument_t *instr;313 struct fm_instrument *instr; 314 314 fm_xinstrument_t *xinstr; 315 315 int idx; … … 317 317 if (fm == NULL || __data == NULL) 318 318 return -EINVAL; 319 instr = ( fm_instrument_t *)fm;319 instr = (struct fm_instrument *)fm; 320 320 *__data = NULL; 321 321 *__size = 0; … … 415 415 { 416 416 assert(info && id); 417 info->id.instr = *(struct snd rv_seq_instr *)id;417 info->id.instr = *(struct snd_seq_instr *)id; 418 418 } 419 419 -
GPL/trunk/lib32/irq.c
r33 r34 47 47 //****************************************************************************** 48 48 int request_irq(unsigned int irq, 49 void (*handler)(int, void *, struct pt_regs *),49 int (near *handler)(int, void *, struct pt_regs *), 50 50 unsigned long x0, const char *x1, void *x2) 51 51 { … … 54 54 if(RMRequestIRQ(hResMgr, irq, (x0 & SA_SHIRQ) ? TRUE : FALSE) == FALSE) { 55 55 dprintf(("RMRequestIRQ failed for irq %d", irq)); 56 return NULL;56 return 0; 57 57 } 58 58 … … 109 109 void eoi_irq(unsigned int irq) 110 110 { 111 if(irq > 0xf ) {111 if(irq > 0xff) { 112 112 DebugInt3(); 113 113 return; … … 119 119 BOOL oss_process_interrupt(int irq) 120 120 { 121 BOOLrc;121 int rc; 122 122 int i; 123 123 … … 142 142 { 143 143 fInInterrupt = TRUE; 144 irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0);145 rc = (eoiIrq[irq] > 0);144 rc = irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0); 145 //rc = (eoiIrq[irq] > 0); 146 146 fInInterrupt = FALSE; 147 if(rc ) {147 if(rc == 1) { 148 148 //ok, this interrupt was intended for us; notify the 16 bits MMPM/2 driver 149 149 OSS32_ProcessIRQ(); -
GPL/trunk/lib32/ossidc.cpp
r33 r34 100 100 }; 101 101 //****************************************************************************** 102 OSSRET OSS32_Initialize() 103 { 102 OSSRET OSS32_Initialize(void) 103 { 104 int i; 105 104 106 fStrategyInit = TRUE; 105 int i;106 107 107 108 if(DevSetTimer(TimerHandler16) != 0) { -
GPL/trunk/lib32/pci.c
r33 r34 32 32 #include <asm/io.h> 33 33 #include <sound/config.h> 34 #include <sound/driver.h> 34 35 #include <sound/asound.h> 35 36 … … 526 527 //return 1; 527 528 } 528 else pcidev->devfn = NULL;529 else pcidev->devfn = 0; 529 530 530 531 RMDestroy(hResMgr); … … 765 766 u32 config[16]; 766 767 }; 767 stat uc struct saved_config_tbl saved_tbl[16];768 static struct saved_config_tbl saved_tbl[16]; 768 769 769 770 void pci_save_state(struct pci_dev *pci) -
GPL/trunk/lib32/sound.c
r33 r34 1157 1157 buffer += ret; 1158 1158 size -= ret; 1159 if( size <= 0) {1159 if((int)size <= 0) { 1160 1160 break; 1161 1161 } … … 1257 1257 int ret; 1258 1258 int leftvol, rightvol; 1259 s nd_pcm_volume_tpcm_volume;1259 struct snd_pcm_volume pcm_volume; 1260 1260 1261 1261 if(pHandle == NULL || pHandle->magic != MAGIC_WAVE_ALSA32) { -
GPL/trunk/lib32/soundmidi.c
r33 r34 48 48 midihandle *pHandle; 49 49 int ret, i; 50 struct snd rv_seq_port_subscribe subs;51 struct snd rv_seq_client_info clientinfo;52 struct snd rv_seq_port_info portinfo;50 struct snd_seq_port_subscribe subs; 51 struct snd_seq_client_info clientinfo; 52 struct snd_seq_port_info portinfo; 53 53 54 54 *pStreamId = 0; … … 203 203 //unsubscribe 204 204 if(pHandle->state & MIDISTATE_SUBSCRIBED) { 205 struct snd rv_seq_port_subscribe subs;205 struct snd_seq_port_subscribe subs; 206 206 207 207 memset(&subs, 0, sizeof(subs)); … … 219 219 //delete port 220 220 if(pHandle->state & MIDISTATE_SUBSCRIBED) { 221 struct snd rv_seq_port_info portinfo;221 struct snd_seq_port_info portinfo; 222 222 223 223 memset(&portinfo, 0, sizeof(portinfo)); … … 287 287 int ret; 288 288 LONG transferred; 289 struct snd rv_seq_event fmevent;289 struct snd_seq_event fmevent; 290 290 291 291 if(pHandle == NULL || pHandle->magic != MAGIC_MIDI_ALSA32) {
Note:
See TracChangeset
for help on using the changeset viewer.