summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bking.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bking.c')
-rw-r--r--src/mame/drivers/bking.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mame/drivers/bking.c b/src/mame/drivers/bking.c
index 6a0183e4092..a297b407517 100644
--- a/src/mame/drivers/bking.c
+++ b/src/mame/drivers/bking.c
@@ -376,16 +376,6 @@ WRITE8_MEMBER(bking_state::port_b_w)
logerror("port_b = %02x\n", data);
}
-static const ay8910_interface ay8910_config =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_NULL,
- DEVCB_NULL,
- DEVCB_DEVICE_MEMBER("dac", dac_device, write_signed8),
- DEVCB_DRIVER_MEMBER(bking_state,port_b_w)
-};
-
void bking_state::machine_start()
{
/* video */
@@ -492,7 +482,8 @@ static MACHINE_CONFIG_START( bking, bking_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MCFG_SOUND_ADD("ay2", AY8910, XTAL_6MHz/4)
- MCFG_SOUND_CONFIG(ay8910_config)
+ MCFG_AY8910_PORT_A_WRITE_CB(DEVWRITE8("dac", dac_device, write_signed8))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(bking_state, port_b_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MCFG_DAC_ADD("dac")