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/carrera.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/carrera.c')
-rw-r--r-- | src/mame/drivers/carrera.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mame/drivers/carrera.c b/src/mame/drivers/carrera.c index 94cf851fbf6..2c163970c11 100644 --- a/src/mame/drivers/carrera.c +++ b/src/mame/drivers/carrera.c @@ -277,17 +277,6 @@ READ8_MEMBER(carrera_state::unknown_r) return machine().rand(); } -/* these are set as input, but I have no idea which input port it uses is for the AY */ -static const ay8910_interface ay8910_config = -{ - AY8910_LEGACY_OUTPUT, - AY8910_DEFAULT_LOADS, - DEVCB_DRIVER_MEMBER(carrera_state,unknown_r), - DEVCB_DRIVER_MEMBER(carrera_state,unknown_r), - DEVCB_NULL, - DEVCB_NULL -}; - PALETTE_INIT_MEMBER(carrera_state, carrera) { const UINT8 *color_prom = memregion("proms")->base(); @@ -343,7 +332,9 @@ static MACHINE_CONFIG_START( carrera, carrera_state ) MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_SOUND_ADD("aysnd", AY8910, MASTER_CLOCK/12) - MCFG_SOUND_CONFIG(ay8910_config) + /* these are set as input, but I have no idea which input port it uses is for the AY */ + MCFG_AY8910_PORT_A_READ_CB(READ8(carrera_state, unknown_r)) + MCFG_AY8910_PORT_B_READ_CB(READ8(carrera_state, unknown_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END |