Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148496
b: refs/heads/master
c: 0cfcded
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Helt authored and Takashi Iwai committed Apr 24, 2009
1 parent 48e9121 commit 3dc9397
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 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: c282866101bfde888a44da3babd2f9ab265ca6f9
refs/heads/master: 0cfcdedaddf2468cb53e3cff9c3abfef14b4d784
22 changes: 12 additions & 10 deletions trunk/sound/isa/sc6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ static int __devinit sc6000_init_board(char __iomem *vport,
int config = mss_config |
sc6000_mpu_irq_to_softcfg(mpu_irq[dev]);
int err;
int cfg[2];
int old = 0;

err = sc6000_dsp_reset(vport);
Expand Down Expand Up @@ -421,11 +420,18 @@ static int __devinit sc6000_init_board(char __iomem *vport,
answer, version[0], version[1]);

/* set configuration */
sc6000_hw_cfg_encode(vport, &cfg[0], port[dev], mpu_port[dev],
mss_port[dev]);
if (sc6000_hw_cfg_write(vport, cfg) < 0) {
snd_printk(KERN_ERR "sc6000_hw_cfg_write: failed!\n");
return -EIO;
sc6000_write(vport, COMMAND_5C);
if (sc6000_read(vport) < 0)
old = 1;

if (!old) {
int cfg[2];
sc6000_hw_cfg_encode(vport, &cfg[0], port[dev], mpu_port[dev],
mss_port[dev]);
if (sc6000_hw_cfg_write(vport, cfg) < 0) {
snd_printk(KERN_ERR "sc6000_hw_cfg_write: failed!\n");
return -EIO;
}
}
err = sc6000_setup_board(vport, config);
if (err < 0) {
Expand All @@ -434,10 +440,6 @@ static int __devinit sc6000_init_board(char __iomem *vport,
}

sc6000_dsp_reset(vport);
sc6000_write(vport, COMMAND_5C);
if (sc6000_read(vport) < 0)
old = 1;
sc6000_dsp_reset(vport);

if (!old) {
sc6000_write(vport, COMMAND_60);
Expand Down

0 comments on commit 3dc9397

Please sign in to comment.