summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/merit.c
diff options
context:
space:
mode:
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
commitda1252459f7578b481e8be16cc701c185e44fc73 (patch)
tree3c83f920691467be40ee9a63801dd1ab6a4224d4 /src/mame/drivers/merit.c
parentc407543c9f5ff650f92ab736c0018f2185db7b21 (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/merit.c')
-rw-r--r--src/mame/drivers/merit.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mame/drivers/merit.c b/src/mame/drivers/merit.c
index 8e06b873f71..8153344482b 100644
--- a/src/mame/drivers/merit.c
+++ b/src/mame/drivers/merit.c
@@ -1121,14 +1121,6 @@ static INPUT_PORTS_START( couplep )
INPUT_PORTS_END
-static const ay8910_interface merit_ay8912_interface =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_NULL, DEVCB_NULL,
- DEVCB_DRIVER_MEMBER(merit_state,led2_w), DEVCB_NULL
-};
-
void merit_state::dodge_nvram_init(nvram_device &nvram, void *base, size_t size)
{
memset(base, 0x00, size);
@@ -1176,7 +1168,7 @@ static MACHINE_CONFIG_START( pitboss, merit_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("aysnd", AY8910, CRTC_CLOCK)
- MCFG_SOUND_CONFIG(merit_ay8912_interface)
+ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(merit_state, led2_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33)
MACHINE_CONFIG_END