summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/changela.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/changela.c')
-rw-r--r--src/mame/drivers/changela.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/mame/drivers/changela.c b/src/mame/drivers/changela.c
index 521ebe88bf1..7aec5cc449e 100644
--- a/src/mame/drivers/changela.c
+++ b/src/mame/drivers/changela.c
@@ -379,28 +379,6 @@ static INPUT_PORTS_START( changela )
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_MINMAX(0x00, 0xff) PORT_SENSITIVITY(50) PORT_KEYDELTA(8) PORT_CONDITION("DSWA", 0x20, EQUALS, 0x00)
INPUT_PORTS_END
-
-static const ay8910_interface ay8910_interface_1 =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_INPUT_PORT("DSWA"),
- DEVCB_INPUT_PORT("DSWB"),
- DEVCB_NULL,
- DEVCB_NULL
-};
-
-static const ay8910_interface ay8910_interface_2 =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_INPUT_PORT("DSWC"),
- DEVCB_INPUT_PORT("DSWD"),
- DEVCB_NULL,
- DEVCB_NULL
-};
-
-
TIMER_DEVICE_CALLBACK_MEMBER(changela_state::changela_scanline)
{
int scanline = param;
@@ -517,11 +495,13 @@ static MACHINE_CONFIG_START( changela, changela_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("ay1", AY8910, 1250000)
- MCFG_SOUND_CONFIG(ay8910_interface_1)
+ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWA"))
+ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSWB"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_SOUND_ADD("ay2", AY8910, 1250000)
- MCFG_SOUND_CONFIG(ay8910_interface_2)
+ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWC"))
+ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSWD"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END