Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45416
b: refs/heads/master
c: 5929546
h: refs/heads/master
v: v3
  • Loading branch information
Giuliano Pochini authored and Jaroslav Kysela committed Jan 9, 2007
1 parent 097ad51 commit dcc4846
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b005a0126bc2a2be3ae2c333d56e91bd5e2d8a6
refs/heads/master: 5929546a96d55962bdcabae0c4e25dfcd9f1fda9
6 changes: 4 additions & 2 deletions trunk/sound/pci/echoaudio/midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void snd_echo_midi_output_write(unsigned long data)
sent = bytes = 0;
spin_lock_irqsave(&chip->lock, flags);
chip->midi_full = 0;
if (chip->midi_out && !snd_rawmidi_transmit_empty(chip->midi_out)) {
if (!snd_rawmidi_transmit_empty(chip->midi_out)) {
bytes = snd_rawmidi_transmit_peek(chip->midi_out, buf,
MIDI_OUT_BUFFER_SIZE - 1);
DE_MID(("Try to send %d bytes...\n", bytes));
Expand Down Expand Up @@ -264,9 +264,11 @@ static void snd_echo_midi_output_trigger(struct snd_rawmidi_substream *substream
}
} else {
if (chip->tinuse) {
del_timer(&chip->timer);
chip->tinuse = 0;
spin_unlock_irq(&chip->lock);
del_timer_sync(&chip->timer);
DE_MID(("Timer removed\n"));
return;
}
}
spin_unlock_irq(&chip->lock);
Expand Down

0 comments on commit dcc4846

Please sign in to comment.