summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/es8712.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/es8712.cpp')
-rw-r--r--src/devices/sound/es8712.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/sound/es8712.cpp b/src/devices/sound/es8712.cpp
index 9440bd7ce60..e0b2699edd0 100644
--- a/src/devices/sound/es8712.cpp
+++ b/src/devices/sound/es8712.cpp
@@ -57,10 +57,11 @@ es8712_device::es8712_device(const machine_config &mconfig, const char *tag, dev
// configuration addiitons
//-------------------------------------------------
-MACHINE_CONFIG_START(es8712_device::device_add_mconfig)
- MCFG_DEVICE_ADD("adpcm_select", HCT157, 0) // TODO : gcpinbal case, differs per games?
- MCFG_74157_OUT_CB(WRITE8(*this, es8712_device, msm_w))
-MACHINE_CONFIG_END
+void es8712_device::device_add_mconfig(machine_config &config)
+{
+ HCT157(config, m_adpcm_select, 0); // TODO : gcpinbal case, differs per games?
+ m_adpcm_select->out_callback().set(FUNC(es8712_device::msm_w));
+}
//-------------------------------------------------