summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rmhaihai.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rmhaihai.c')
-rw-r--r--src/mame/drivers/rmhaihai.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mame/drivers/rmhaihai.c b/src/mame/drivers/rmhaihai.c
index f18c2a9e3af..63463470401 100644
--- a/src/mame/drivers/rmhaihai.c
+++ b/src/mame/drivers/rmhaihai.c
@@ -451,15 +451,6 @@ static GFXDECODE_START( themj )
GFXDECODE_END
-
-static const ay8910_interface ay8910_config =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_INPUT_PORT("DSW2"),
- DEVCB_INPUT_PORT("DSW1")
-};
-
static MACHINE_CONFIG_START( rmhaihai, rmhaihai_state )
/* basic machine hardware */
@@ -485,7 +476,8 @@ static MACHINE_CONFIG_START( rmhaihai, rmhaihai_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("aysnd", AY8910, 20000000/16)
- MCFG_SOUND_CONFIG(ay8910_config)
+ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2"))
+ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
MCFG_SOUND_ADD("msm", MSM5205, 500000)