|
@@ -323,11 +323,11 @@ static int synth_probe(struct spk_synth *synth)
|
|
if (port_forced) {
|
|
if (port_forced) {
|
|
speakup_info.port_tts = port_forced;
|
|
speakup_info.port_tts = port_forced;
|
|
pr_info("probe forced to %x by kernel command line\n",
|
|
pr_info("probe forced to %x by kernel command line\n",
|
|
- speakup_info.port_tts);
|
|
|
|
|
|
+ speakup_info.port_tts);
|
|
if ((port_forced & 0xf) != 0xf)
|
|
if ((port_forced & 0xf) != 0xf)
|
|
pr_info("warning: port base should probably end with f\n");
|
|
pr_info("warning: port base should probably end with f\n");
|
|
if (synth_request_region(speakup_info.port_tts - 1,
|
|
if (synth_request_region(speakup_info.port_tts - 1,
|
|
- SYNTH_IO_EXTENT)) {
|
|
|
|
|
|
+ SYNTH_IO_EXTENT)) {
|
|
pr_warn("sorry, port already reserved\n");
|
|
pr_warn("sorry, port already reserved\n");
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
}
|
|
}
|
|
@@ -336,7 +336,7 @@ static int synth_probe(struct spk_synth *synth)
|
|
} else {
|
|
} else {
|
|
for (i = 0; synth_portlist[i]; i++) {
|
|
for (i = 0; synth_portlist[i]; i++) {
|
|
if (synth_request_region(synth_portlist[i],
|
|
if (synth_request_region(synth_portlist[i],
|
|
- SYNTH_IO_EXTENT))
|
|
|
|
|
|
+ SYNTH_IO_EXTENT))
|
|
continue;
|
|
continue;
|
|
port_val = inw(synth_portlist[i]) & 0xfbff;
|
|
port_val = inw(synth_portlist[i]) & 0xfbff;
|
|
if (port_val == 0x107f) {
|
|
if (port_val == 0x107f) {
|
|
@@ -345,7 +345,7 @@ static int synth_probe(struct spk_synth *synth)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
synth_release_region(synth_portlist[i],
|
|
synth_release_region(synth_portlist[i],
|
|
- SYNTH_IO_EXTENT);
|
|
|
|
|
|
+ SYNTH_IO_EXTENT);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
port_val &= 0xfbff;
|
|
port_val &= 0xfbff;
|