From c6984ade99a6c01fdb70f5c7534ce31bd40440ae Mon Sep 17 00:00:00 2001 From: Sergey Svishchev Date: Sun, 2 Nov 2014 00:47:39 +0300 Subject: Allow sound output if 8253 is never programmed, i.e. all output is done by modulating speaker output line. --- src/emu/bus/lpci/southbridge.c | 2 +- src/mame/drivers/pcxt.c | 2 +- src/mess/drivers/pasogo.c | 2 +- src/mess/drivers/pc1512.c | 1 + src/mess/machine/at.c | 2 +- src/mess/machine/genpc.c | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/emu/bus/lpci/southbridge.c b/src/emu/bus/lpci/southbridge.c index d6797fdef06..bb1a8cf629b 100644 --- a/src/emu/bus/lpci/southbridge.c +++ b/src/emu/bus/lpci/southbridge.c @@ -203,7 +203,7 @@ void southbridge_device::device_start() void southbridge_device::device_reset() { m_at_spkrdata = 0; - m_pit_out2 = 0; + m_pit_out2 = 1; m_dma_channel = -1; m_cur_eop = false; m_nmi_enabled = 0; diff --git a/src/mame/drivers/pcxt.c b/src/mame/drivers/pcxt.c index 2b1f984da8a..b8971ada485 100644 --- a/src/mame/drivers/pcxt.c +++ b/src/mame/drivers/pcxt.c @@ -685,7 +685,7 @@ void pcxt_state::machine_reset() m_lastvalue = -1; m_pc_spkrdata = 0; - m_pit_out2 = 0; + m_pit_out2 = 1; m_wss2_data = 0; m_speaker->level_w(0); } diff --git a/src/mess/drivers/pasogo.c b/src/mess/drivers/pasogo.c index de50b63ea2c..c2ad1c0218a 100644 --- a/src/mess/drivers/pasogo.c +++ b/src/mess/drivers/pasogo.c @@ -688,7 +688,7 @@ void pasogo_state::machine_reset() m_u73_q2 = 0; m_out1 = 2; // initial state of pit output is undefined m_pc_spkrdata = 0; - m_pit_out2 = 0; + m_pit_out2 = 1; m_dma_channel = -1; m_cur_eop = false; } diff --git a/src/mess/drivers/pc1512.c b/src/mess/drivers/pc1512.c index e75fdbe33ad..9bb0cdc52fc 100644 --- a/src/mess/drivers/pc1512.c +++ b/src/mess/drivers/pc1512.c @@ -1131,6 +1131,7 @@ void pc1512_state::machine_reset() m_nmi_enable = 0; m_toggle = 0; m_kb_bits = 0; + m_pit2 = 1; m_lpen = 0; m_blink = 0; diff --git a/src/mess/machine/at.c b/src/mess/machine/at.c index ab6141261fa..f9bf630c72e 100644 --- a/src/mess/machine/at.c +++ b/src/mess/machine/at.c @@ -300,7 +300,7 @@ MACHINE_START_MEMBER(at_state,at) MACHINE_RESET_MEMBER(at_state,at) { m_at_spkrdata = 0; - m_pit_out2 = 0; + m_pit_out2 = 1; m_dma_channel = -1; m_cur_eop = false; } diff --git a/src/mess/machine/genpc.c b/src/mess/machine/genpc.c index b49aa1c2749..366e3b69ed6 100644 --- a/src/mess/machine/genpc.c +++ b/src/mess/machine/genpc.c @@ -572,7 +572,7 @@ void ibm5160_mb_device::device_reset() m_u73_q2 = 0; m_out1 = 2; // initial state of pit output is undefined m_pc_spkrdata = 0; - m_pit_out2 = 0; + m_pit_out2 = 1; m_dma_channel = -1; m_cur_eop = false; memset(m_dma_offset,0,sizeof(m_dma_offset)); -- cgit v1.2.3