patch-1.3.58 linux/drivers/sound/opl3.c
Next file: linux/drivers/sound/os.h
Previous file: linux/drivers/sound/mpu401.c
Back to the patch index
Back to the overall index
- Lines: 84
- Date:
Tue Jan 9 00:37:27 1996
- Orig file:
v1.3.57/linux/drivers/sound/opl3.c
- Orig date:
Wed Nov 8 07:11:36 1995
diff -u --recursive --new-file v1.3.57/linux/drivers/sound/opl3.c linux/drivers/sound/opl3.c
@@ -36,7 +36,7 @@
#include "sound_config.h"
-#if defined(CONFIGURE_SOUNDCARD) && !defined(EXCLUDE_YM3812)
+#if defined(CONFIG_YM3812)
#include "opl3.h"
@@ -226,7 +226,7 @@
*/
for (i = 0; i < 50; i++)
- tenmicrosec ();
+ tenmicrosec (devc->osp);
stat2 = inb (ioaddr); /*
* Read status after timers have expired
@@ -281,18 +281,18 @@
int tmp;
outb (0x02, ioaddr - 8); /* Select OPL4 ID register */
- tenmicrosec ();
+ tenmicrosec (devc->osp);
tmp = inb (ioaddr - 7); /* Read it */
- tenmicrosec ();
+ tenmicrosec (devc->osp);
if (tmp == 0x20) /* OPL4 should return 0x20 here */
{
detected_model = 4;
outb (0xF8, ioaddr - 8); /* Select OPL4 FM mixer control */
- tenmicrosec ();
+ tenmicrosec (devc->osp);
outb (0x1B, ioaddr - 7); /* Write value */
- tenmicrosec ();
+ tenmicrosec (devc->osp);
}
else
detected_model = 3;
@@ -775,7 +775,7 @@
outb ((unsigned char) (addr & 0xff), io_addr);
if (!devc->model != 2)
- tenmicrosec ();
+ tenmicrosec (devc->osp);
else
for (i = 0; i < 2; i++)
inb (io_addr);
@@ -784,9 +784,9 @@
if (devc->model != 2)
{
- tenmicrosec ();
- tenmicrosec ();
- tenmicrosec ();
+ tenmicrosec (devc->osp);
+ tenmicrosec (devc->osp);
+ tenmicrosec (devc->osp);
}
else
for (i = 0; i < 2; i++)
@@ -1222,9 +1222,9 @@
if (devc->model == 2)
{
if (devc->is_opl4)
- printk (" <Yamaha OPL4/OPL3 FM>");
+ conf_printf2 ("Yamaha OPL4/OPL3 FM", ioaddr, 0, -1, -1);
else
- printk (" <Yamaha OPL-3 FM>");
+ conf_printf2 ("Yamaha OPL3 FM", ioaddr, 0, -1, -1);
devc->v_alloc->max_voice = devc->nr_voice = 18;
devc->fm_info.nr_drums = 0;
@@ -1242,7 +1242,7 @@
}
else
{
- printk (" <Yamaha 2-OP FM>");
+ conf_printf2 ("Yamaha OPL2 FM", ioaddr, 0, -1, -1);
devc->v_alloc->max_voice = devc->nr_voice = 9;
devc->fm_info.nr_drums = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this