summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/poker72.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/poker72.c')
-rw-r--r--src/mame/drivers/poker72.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mame/drivers/poker72.c b/src/mame/drivers/poker72.c
index c58f7606ced..1f8df5c34fc 100644
--- a/src/mame/drivers/poker72.c
+++ b/src/mame/drivers/poker72.c
@@ -337,16 +337,6 @@ PALETTE_INIT_MEMBER(poker72_state, poker72)
}
}
-static const ay8910_interface ay8910_config =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_INPUT_PORT("DSW0"),
- DEVCB_INPUT_PORT("DSW1"),
- DEVCB_NULL,
- DEVCB_NULL
-};
-
void poker72_state::machine_reset()
{
UINT8 *ROM = memregion("maincpu")->base();
@@ -379,7 +369,8 @@ static MACHINE_CONFIG_START( poker72, poker72_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("ay", AY8910, 8000000/8) /* ? Mhz */
- MCFG_SOUND_CONFIG(ay8910_config)
+ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0"))
+ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END