Permalink
Browse files

softusb: don't forget notifying the host when there are news from MIDI

The host interrupt wasn't asserted when enqueuing MIDI messages.
No surprise some controls acted strangely ...
  • Loading branch information...
1 parent 9ede465 commit dbcce91a6494735557fd0a98b1515460a8e7fd40 @wpwrak wpwrak committed with sbourdeauducq Dec 1, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 softusb-input/main.c
View
4 softusb-input/main.c
@@ -485,6 +485,7 @@ static char process_midi(unsigned char *buf, unsigned char len)
{
unsigned char end = len & ~3;
unsigned char i, m, j;
+ char sent_something = 0;
/*
* In theory, control changes should be heralded by a CIN of 0xB,
@@ -502,8 +503,9 @@ static char process_midi(unsigned char *buf, unsigned char len)
for(j = 0; j != 4; j++)
COMLOC_MIDI(4*m+j) = buf[i+j];
COMLOC_MIDI_PRODUCE = (m + 1) & 15;
+ sent_something = 1;
}
- return 0;
+ return sent_something;
}
static void poll(struct ep_status *ep,

0 comments on commit dbcce91

Please sign in to comment.