diff options
author | Vas Crabb <vas@vastheman.com> | 2018-01-13 02:05:54 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-01-13 02:06:27 +1100 |
commit | ba5715596ae3e88664ed32ea3bd32fd898902c73 (patch) | |
tree | ab43d9837f14cccbc5c51f220823bff29968d37c /src/mame/drivers/atari_s2.cpp | |
parent | 45854ff96c87baf0c5be3b5bf46fbdb28831aeb4 (diff) |
This causes huge changes in behaviour that can't be hand-waved away.
Revert "Removal of voltage_regulator_device (nw)"
This reverts commit 1af133752a05079060c462e372c369ad0b7296ee.
Revert "New way to provide DAC reference inputs (nw)"
This reverts commit 1c6a7ab40ccd23b753777204c7a289e830b2adcb.
Diffstat (limited to 'src/mame/drivers/atari_s2.cpp')
-rw-r--r-- | src/mame/drivers/atari_s2.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/atari_s2.cpp b/src/mame/drivers/atari_s2.cpp index a447acdceb2..7ca3b2b1628 100644 --- a/src/mame/drivers/atari_s2.cpp +++ b/src/mame/drivers/atari_s2.cpp @@ -28,6 +28,7 @@ ToDo: #include "machine/timer.h" #include "machine/watchdog.h" #include "sound/dac.h" +#include "sound/volt_reg.h" #include "speaker.h" #include "atari_s2.lh" @@ -476,9 +477,10 @@ static MACHINE_CONFIG_START( atari_s2 ) MCFG_SPEAKER_STANDARD_MONO("speaker") MCFG_SOUND_ADD("dac", DAC_4BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) // r23-r26 (68k,33k,18k,8.2k) - MCFG_SOUND_REFERENCE_INPUT(DAC_VREF_POS_INPUT, 1.0) MCFG_SOUND_REFERENCE_INPUT(DAC_VREF_NEG_INPUT, -1.0) MCFG_SOUND_ADD("dac1", DAC_3BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) // r18-r20 (100k,47k,100k) - MCFG_SOUND_REFERENCE_INPUT(DAC_VREF_POS_INPUT, 1.0) MCFG_SOUND_REFERENCE_INPUT(DAC_VREF_NEG_INPUT, -1.0) + MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) + MCFG_SOUND_ROUTE_EX(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE_EX(0, "dac", -1.0, DAC_VREF_NEG_INPUT) + MCFG_SOUND_ROUTE_EX(0, "dac1", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE_EX(0, "dac1", -1.0, DAC_VREF_NEG_INPUT) /* Video */ MCFG_DEFAULT_LAYOUT(layout_atari_s2) |