summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/gaiden.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gaiden.cpp')
-rw-r--r--src/mame/drivers/gaiden.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/gaiden.cpp b/src/mame/drivers/gaiden.cpp
index 065dfc3cd93..abf369bb1ba 100644
--- a/src/mame/drivers/gaiden.cpp
+++ b/src/mame/drivers/gaiden.cpp
@@ -1053,15 +1053,15 @@ MACHINE_CONFIG_START(gaiden_state::mastninj)
MCFG_DEVICE_ADD("adpcm_select2", LS157, 0)
MCFG_74157_OUT_CB(WRITE8("msm2", msm5205_device, data_w))
- MCFG_DEVICE_ADD("msm1", MSM5205, 384000)
- MCFG_MSM5205_VCK_CALLBACK(WRITELINE("msm2", msm5205_device, vclk_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(*this, gaiden_state, vck_flipflop_w))
- MCFG_MSM5205_PRESCALER_SELECTOR(S96_4B)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
-
- MCFG_DEVICE_ADD("msm2", MSM5205, 384000)
- MCFG_MSM5205_PRESCALER_SELECTOR(SEX_4B)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
+ MSM5205(config, m_msm[0], 384000);
+ m_msm[0]->vck_callback().set(m_msm[1], FUNC(msm5205_device::vclk_w));
+ m_msm[0]->vck_callback().append(FUNC(gaiden_state::vck_flipflop_w));
+ m_msm[0]->set_prescaler_selector(msm5205_device::S96_4B);
+ m_msm[0]->add_route(ALL_OUTPUTS, "mono", 0.20);
+
+ MSM5205(config, m_msm[1], 384000);
+ m_msm[1]->set_prescaler_selector(msm5205_device::SEX_4B);
+ m_msm[1]->add_route(ALL_OUTPUTS, "mono", 0.20);
MACHINE_CONFIG_END
/***************************************************************************