Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157744
b: refs/heads/master
c: 0b95916
h: refs/heads/master
v: v3
  • Loading branch information
Ondrej Zary authored and Takashi Iwai committed Jul 7, 2009
1 parent 0160d7a commit 78ec17c
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 69eb88825a7a562ee3564bdae20c35b0238307b0
refs/heads/master: 0b959167237208bc1a811e30bf866cd29bff1652
11 changes: 8 additions & 3 deletions trunk/sound/isa/cmi8330.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static int __devinit snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard,
wssport[dev] = pnp_port_start(pdev, 0);
wssdma[dev] = pnp_dma(pdev, 0);
wssirq[dev] = pnp_irq(pdev, 0);
if (acard->type == CMI8330)
if (pnp_port_start(pdev, 1))
fmport[dev] = pnp_port_start(pdev, 1);

/* allocate SB16 resources */
Expand All @@ -377,8 +377,13 @@ static int __devinit snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard,
sbdma8[dev] = pnp_dma(pdev, 0);
sbdma16[dev] = pnp_dma(pdev, 1);
sbirq[dev] = pnp_irq(pdev, 0);
if (acard->type == CMI8329)
fmport[dev] = pnp_port_start(pdev, 1);
/* On CMI8239, the OPL3 port might be present in SB16 PnP resources */
if (fmport[dev] == SNDRV_AUTO_PORT) {
if (pnp_port_start(pdev, 1))
fmport[dev] = pnp_port_start(pdev, 1);
else
fmport[dev] = 0x388; /* Or hardwired */
}

/* allocate MPU-401 resources */
pdev = acard->mpu;
Expand Down

0 comments on commit 78ec17c

Please sign in to comment.