From da1252459f7578b481e8be16cc701c185e44fc73 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Tue, 6 May 2014 17:37:43 +0000 Subject: ay8910_device and extended family: converted to devcb2 (nw) This is easily the commit I ever did that touches the most drivers. I payed extra attention while doing it, stared at the diff really hard to find any errors and did some testing. Obviously I can't test every single game / system, so please report any regression you might find. --- src/emu/sound/2203intf.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src/emu/sound/2203intf.c') diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c index ff535762d49..559255f0c68 100644 --- a/src/emu/sound/2203intf.c +++ b/src/emu/sound/2203intf.c @@ -188,28 +188,6 @@ const device_type YM2203 = &device_creator; ym2203_device::ym2203_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ay8910_device(mconfig, YM2203, "YM2203", tag, owner, clock, "ym2203", __FILE__), - m_irq_handler(*this), - m_ay8910_config(NULL) + m_irq_handler(*this) { } - -//------------------------------------------------- -// device_config_complete - perform any -// operations now that the configuration is -// complete -//------------------------------------------------- - -void ym2203_device::device_config_complete() -{ - static const ay8910_interface default_ay8910_config = - { - AY8910_LEGACY_OUTPUT, - AY8910_DEFAULT_LOADS, - DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL - }; - - if (m_ay8910_config != NULL) - device_t::static_set_static_config(*this, m_ay8910_config); - else - device_t::static_set_static_config(*this, &(default_ay8910_config)); -} -- cgit v1.2.3-70-g09d2