summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dai.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dai.cpp')
-rw-r--r--src/mame/drivers/dai.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/dai.cpp b/src/mame/drivers/dai.cpp
index 27c4c73df38..2c08f556e9f 100644
--- a/src/mame/drivers/dai.cpp
+++ b/src/mame/drivers/dai.cpp
@@ -195,15 +195,15 @@ MACHINE_CONFIG_START(dai_state::dai)
MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(dai_state,int_ack)
MCFG_QUANTUM_TIME(attotime::from_hz(60))
- MCFG_DEVICE_ADD("pit8253", PIT8253, 0)
- MCFG_PIT8253_CLK0(2000000)
- MCFG_PIT8253_OUT0_HANDLER(WRITELINE("custom", dai_sound_device, set_input_ch0))
- MCFG_PIT8253_CLK1(2000000)
- MCFG_PIT8253_OUT1_HANDLER(WRITELINE("custom", dai_sound_device, set_input_ch1))
- MCFG_PIT8253_CLK2(2000000)
- MCFG_PIT8253_OUT2_HANDLER(WRITELINE("custom", dai_sound_device, set_input_ch2))
+ PIT8253(config, m_pit, 0);
+ m_pit->set_clk<0>(2000000);
+ m_pit->out_handler<0>().set(m_sound, FUNC(dai_sound_device::set_input_ch0));
+ m_pit->set_clk<1>(2000000);
+ m_pit->out_handler<1>().set(m_sound, FUNC(dai_sound_device::set_input_ch1));
+ m_pit->set_clk<2>(2000000);
+ m_pit->out_handler<2>().set(m_sound, FUNC(dai_sound_device::set_input_ch2));
- MCFG_DEVICE_ADD("ppi8255", I8255, 0)
+ I8255(config, "ppi8255");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -224,7 +224,7 @@ MACHINE_CONFIG_START(dai_state::dai)
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.25);
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- DAI_SOUND(config, "custom").add_route(0, "lspeaker", 0.50).add_route(1, "rspeaker", 0.50);
+ DAI_SOUND(config, m_sound).add_route(0, "lspeaker", 0.50).add_route(1, "rspeaker", 0.50);
/* cassette */
MCFG_CASSETTE_ADD( "cassette" )