summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cb2001.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cb2001.c')
-rw-r--r--src/mame/drivers/cb2001.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mame/drivers/cb2001.c b/src/mame/drivers/cb2001.c
index 9284c9fe91a..d4b758b908c 100644
--- a/src/mame/drivers/cb2001.c
+++ b/src/mame/drivers/cb2001.c
@@ -803,16 +803,6 @@ PALETTE_INIT_MEMBER(cb2001_state, cb2001)
}
}
-static const ay8910_interface cb2001_ay8910_config =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_INPUT_PORT("DSW4"),
- DEVCB_INPUT_PORT("DSW5"),
- DEVCB_NULL,
- DEVCB_NULL
-};
-
static MACHINE_CONFIG_START( cb2001, cb2001_state )
MCFG_CPU_ADD("maincpu", V35, 20000000) // CPU91A-011-0016JK004; encrypted cpu like nec v25/35 used in some irem game
MCFG_V25_CONFIG(cb2001_decryption_table)
@@ -845,7 +835,8 @@ static MACHINE_CONFIG_START( cb2001, cb2001_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("aysnd", AY8910, 1500000) // wrong
- MCFG_SOUND_CONFIG(cb2001_ay8910_config)
+ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4"))
+ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW5"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END