summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hitpoker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hitpoker.c')
-rw-r--r--src/mame/drivers/hitpoker.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mame/drivers/hitpoker.c b/src/mame/drivers/hitpoker.c
index 17681857388..588a1e3aa9f 100644
--- a/src/mame/drivers/hitpoker.c
+++ b/src/mame/drivers/hitpoker.c
@@ -462,17 +462,6 @@ static GFXDECODE_START( hitpoker )
GFXDECODE_ENTRY( "gfx1", 0, hitpoker_layout_8bpp, 0, 8 )
GFXDECODE_END
-static const ay8910_interface ay8910_config =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_INPUT_PORT("DSW1"),
- DEVCB_INPUT_PORT("DSW2"),
- DEVCB_NULL,
- DEVCB_NULL
-};
-
-
INTERRUPT_GEN_MEMBER(hitpoker_state::hitpoker_irq)
{
device.execute().set_input_line(MC68HC11_IRQ_LINE, HOLD_LINE);
@@ -506,7 +495,8 @@ static MACHINE_CONFIG_START( hitpoker, hitpoker_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("aysnd", YM2149, 1500000)
- MCFG_SOUND_CONFIG(ay8910_config)
+ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1"))
+ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END