From cc056b92db3117fe3549f491d21026dd95b32cbc Mon Sep 17 00:00:00 2001 From: ekeeke Date: Sun, 2 Apr 2017 21:40:24 +0200 Subject: [PATCH] [Core/Sound] fixed PSG power-on latched register (verified on VA4 MD1 hardware) Initial test that indicated power-on latched register was noise attenuation register was flawed because it wasn't done after a "cold" power-on. It appears the latched value is not totally reseted when doing a quick power off/on cycle (which was done with initial test) and would keep last value being set. --- core/sound/psg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sound/psg.c b/core/sound/psg.c index a170df2..544cfa3 100644 --- a/core/sound/psg.c +++ b/core/sound/psg.c @@ -130,8 +130,8 @@ void psg_reset() psg.chanOut[i][1] = 0; } - /* noise attenuation register is latched on power-on (verified on 315-5313A & 315-5660 integrated version only) */ - psg.latch = 7; + /* tone #2 attenuation register is latched on power-on (verified on 315-5313A integrated version only) */ + psg.latch = 3; /* reset noise shift register */ psg.noiseShiftValue = 1 << psg.noiseShiftWidth;