Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28541
b: refs/heads/master
c: 63eb1e4
h: refs/heads/master
i:
  28539: ef54b56
v: v3
  • Loading branch information
Jesper Juhl authored and Jaroslav Kysela committed Jun 22, 2006
1 parent 014562c commit 8edc2dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 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: 6540dffa6ecfe0d99fb263548dcc4b35ccefe784
refs/heads/master: 63eb1e4bd2975f1d1102c1f44e4fd6fcd76f7792
20 changes: 7 additions & 13 deletions trunk/sound/isa/sb/sb8_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,22 @@
#include <sound/core.h>
#include <sound/sb.h>

/*
*/

irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb * chip)
irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip)
{
struct snd_rawmidi *rmidi;
int max = 64;
char byte;

if (chip == NULL || (rmidi = chip->rmidi) == NULL) {
if (!chip)
return IRQ_NONE;

rmidi = chip->rmidi;
if (!rmidi) {
inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */
return IRQ_NONE;
}

spin_lock(&chip->midi_input_lock);
while (max-- > 0) {
if (inb(SBP(chip, DATA_AVAIL)) & 0x80) {
Expand All @@ -59,10 +61,6 @@ irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb * chip)
return IRQ_HANDLED;
}

/*
*/

static int snd_sb8dsp_midi_input_open(struct snd_rawmidi_substream *substream)
{
unsigned long flags;
Expand Down Expand Up @@ -252,10 +250,6 @@ static void snd_sb8dsp_midi_output_trigger(struct snd_rawmidi_substream *substre
snd_sb8dsp_midi_output_write(substream);
}

/*
*/

static struct snd_rawmidi_ops snd_sb8dsp_midi_output =
{
.open = snd_sb8dsp_midi_output_open,
Expand Down

0 comments on commit 8edc2dc

Please sign in to comment.