void ca_midi_interrupt(ca_midi_t *midi, unsigned int status) { 
static void ca_midi_interrupt(ca_midi_t *midi, unsigned int status) { 
void ca_midi_interrupt(ca_midi_t *midi, unsigned int status) {	unsigned char byte;	if (midi->rmidi == NULL) {		midi->interrupt_disable(midi,midi->tx_enable | midi->rx_enable);		return;	}	spin_lock(&midi->input_lock);	if ((status & midi->ipr_rx) && ca_midi_input_avail(midi)) {		if (!(midi->midi_mode & CA_MIDI_MODE_INPUT)) {			ca_midi_clear_rx(midi);		} else {			byte = ca_midi_read_data(midi);			if(midi->substream_input)				snd_rawmidi_receive(midi->substream_input, &byte, 1);		}	}	spin_unlock(&midi->input_lock);	spin_lock(&midi->output_lock);	if ((status & midi->ipr_tx) && ca_midi_output_ready(midi)) {		if (midi->substream_output &&		    snd_rawmidi_transmit(midi->substream_output, &byte, 1) == 1) {			ca_midi_write_data(midi, byte);		} else {			midi->interrupt_disable(midi,midi->tx_enable);		}	}	spin_unlock(&midi->output_lock);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/7cf4783b31607ad13b84bed14ea2ca446364985a/ca_midi.c/clean/sound/pci/ca0106/ca_midi.c