summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sbc6510.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sbc6510.cpp')
-rw-r--r--src/mame/drivers/sbc6510.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/sbc6510.cpp b/src/mame/drivers/sbc6510.cpp
index 922006d8a63..9acf0c8bea7 100644
--- a/src/mame/drivers/sbc6510.cpp
+++ b/src/mame/drivers/sbc6510.cpp
@@ -296,11 +296,11 @@ MACHINE_CONFIG_START(sbc6510_state::sbc6510)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(1'000'000))
+ ay8910_device &ay8910(AY8910(config, "ay8910", XTAL(1'000'000)));
// Ports A and B connect to the IDE socket
- MCFG_AY8910_PORT_A_READ_CB(READ8(*this, sbc6510_state, psg_a_r)) // port A read
- MCFG_AY8910_PORT_B_READ_CB(READ8(*this, sbc6510_state, psg_b_r)) // port B read
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
+ ay8910.port_a_read_callback().set(FUNC(sbc6510_state::psg_a_r));
+ ay8910.port_b_read_callback().set(FUNC(sbc6510_state::psg_b_r));
+ ay8910.add_route(ALL_OUTPUTS, "mono", 1.00);
MCFG_DEVICE_ADD("cia6526", MOS6526, XTAL(1'000'000))
MCFG_MOS6526_TOD(50)