unsigned char ca0106_midi_read(ca_midi_t *midi, int idx){
static unsigned char ca0106_midi_read(ca_midi_t *midi, int idx) {
unsigned char ca0106_midi_read(ca_midi_t *midi, int idx){	return (unsigned char)snd_ca0106_ptr_read((ca0106_t *)(midi->dev_id), midi->port + idx, 0);}