Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47190
b: refs/heads/master
c: 377a4f7
h: refs/heads/master
v: v3
  • Loading branch information
Peter Eriksen authored and Jaroslav Kysela committed Feb 9, 2007
1 parent d7cb20a commit 97535f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: cd7509a43c3047a6339484e5009c2db7ee4c7a51
refs/heads/master: 377a4f7ea35d7d6cc05faea7030522d93435dc11
6 changes: 3 additions & 3 deletions trunk/sound/isa/gus/gus_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ static int snd_gus_init_dma_irq(struct snd_gus_card * gus, int latches)
gus->mix_cntrl_reg |= 4; /* enable MIC */
}
dma1 = gus->gf1.dma1;
dma1 = dma1 < 0 ? -dma1 : dma1;
dma1 = abs(dma1);
dma1 = dmas[dma1 & 7];
dma2 = gus->gf1.dma2;
dma2 = dma2 < 0 ? -dma2 : dma2;
dma2 = abs(dma2);
dma2 = dmas[dma2 & 7];
dma1 |= gus->equal_dma ? 0x40 : (dma2 << 3);

Expand All @@ -306,7 +306,7 @@ static int snd_gus_init_dma_irq(struct snd_gus_card * gus, int latches)
return -EINVAL;
}
irq = gus->gf1.irq;
irq = irq < 0 ? -irq : irq;
irq = abs(irq);
irq = irqs[irq & 0x0f];
if (irq == 0) {
snd_printk(KERN_ERR "Error! IRQ isn't defined.\n");
Expand Down

0 comments on commit 97535f7

Please sign in to comment.