diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2014-05-06 17:37:43 +0000 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2014-05-06 17:37:43 +0000 |
commit | da1252459f7578b481e8be16cc701c185e44fc73 (patch) | |
tree | 3c83f920691467be40ee9a63801dd1ab6a4224d4 /src/mame/drivers/mazerbla.c | |
parent | c407543c9f5ff650f92ab736c0018f2185db7b21 (diff) |
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.
Diffstat (limited to 'src/mame/drivers/mazerbla.c')
-rw-r--r-- | src/mame/drivers/mazerbla.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/mame/drivers/mazerbla.c b/src/mame/drivers/mazerbla.c index 0b9d927258a..73014eab723 100644 --- a/src/mame/drivers/mazerbla.c +++ b/src/mame/drivers/mazerbla.c @@ -1346,27 +1346,6 @@ INPUT_PORTS_END * *************************************/ -/* only Great Guns */ -static const ay8910_interface ay8912_interface_1 = -{ - AY8910_LEGACY_OUTPUT, - AY8910_DEFAULT_LOADS, - DEVCB_NULL, - DEVCB_DRIVER_MEMBER(mazerbla_state,soundcommand_r), - DEVCB_NULL, - DEVCB_NULL -}; - -static const ay8910_interface ay8912_interface_2 = -{ - AY8910_LEGACY_OUTPUT, - AY8910_DEFAULT_LOADS, - DEVCB_NULL, - DEVCB_NULL, - DEVCB_NULL, - DEVCB_DRIVER_MEMBER(mazerbla_state,gg_led_ctrl_w) -}; - IRQ_CALLBACK_MEMBER(mazerbla_state::irq_callback) { /* all data lines are tied to +5V via 10K resistors */ @@ -1547,11 +1526,11 @@ static MACHINE_CONFIG_START( greatgun, mazerbla_state ) MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_SOUND_ADD("ay1", AY8910, SOUND_CLOCK / 8) - MCFG_SOUND_CONFIG(ay8912_interface_1) + MCFG_AY8910_PORT_B_READ_CB(READ8(mazerbla_state, soundcommand_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MCFG_SOUND_ADD("ay2", AY8910, SOUND_CLOCK / 8) - MCFG_SOUND_CONFIG(ay8912_interface_2) + MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(mazerbla_state, gg_led_ctrl_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END |