summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dec0.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dec0.cpp')
-rw-r--r--src/mame/drivers/dec0.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/dec0.cpp b/src/mame/drivers/dec0.cpp
index ce24fe9289a..07ac946a6d8 100644
--- a/src/mame/drivers/dec0.cpp
+++ b/src/mame/drivers/dec0.cpp
@@ -1790,11 +1790,11 @@ MACHINE_CONFIG_START(dec0_automat_state::automat)
MCFG_SOUND_ROUTE(2, "mono", 0.90)
MCFG_SOUND_ROUTE(3, "mono", 0.35)
- MCFG_DEVICE_ADD("adpcm_select1", LS157, 0)
- MCFG_74157_OUT_CB(WRITE8("msm1", msm5205_device, data_w))
+ LS157(config, m_adpcm_select[0], 0);
+ m_adpcm_select[0]->out_callback().set("msm1", FUNC(msm5205_device::data_w));
- MCFG_DEVICE_ADD("adpcm_select2", LS157, 0)
- MCFG_74157_OUT_CB(WRITE8("msm2", msm5205_device, data_w))
+ LS157(config, m_adpcm_select[1], 0);
+ m_adpcm_select[1]->out_callback().set("msm2", FUNC(msm5205_device::data_w));
MCFG_DEVICE_ADD("msm1", MSM5205, 384000)
MCFG_MSM5205_VCLK_CB(WRITELINE(*this, dec0_automat_state, msm1_vclk_cb))
@@ -1862,11 +1862,11 @@ MACHINE_CONFIG_START(dec0_automat_state::secretab)
MCFG_DEVICE_ADD("ym3812", YM3812, 2500000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
- MCFG_DEVICE_ADD("adpcm_select1", LS157, 0)
- MCFG_74157_OUT_CB(WRITE8("msm1", msm5205_device, data_w))
+ LS157(config, m_adpcm_select[0], 0);
+ m_adpcm_select[0]->out_callback().set("msm1", FUNC(msm5205_device::data_w));
- MCFG_DEVICE_ADD("adpcm_select2", LS157, 0)
- MCFG_74157_OUT_CB(WRITE8("msm2", msm5205_device, data_w))
+ LS157(config, m_adpcm_select[1], 0);
+ m_adpcm_select[1]->out_callback().set("msm2", FUNC(msm5205_device::data_w));
MCFG_DEVICE_ADD("msm1", MSM5205, 384000)
MCFG_MSM5205_VCLK_CB(WRITELINE(*this, dec0_automat_state, msm1_vclk_cb))