diff --git a/scripts/src/sound.lua b/scripts/src/sound.lua index c28d9bf0d71..4d5f53de389 100644 --- a/scripts/src/sound.lua +++ b/scripts/src/sound.lua @@ -1416,17 +1416,6 @@ if (SOUNDS["PCD3311"]~=null) then } end ---------------------------------------------------- --- Voltage Regulator ---@src/devices/sound/volt_reg.h,SOUNDS["VOLT_REG"] = true ---------------------------------------------------- -if (SOUNDS["VOLT_REG"]~=null) then - files { - MAME_DIR .. "src/devices/sound/volt_reg.cpp", - MAME_DIR .. "src/devices/sound/volt_reg.h", - } -end - --------------------------------------------------- -- DAC-76 COMDAC --@src/devices/sound/dac76.h,SOUNDS["DAC76"] = true diff --git a/scripts/target/mame/arcade.lua b/scripts/target/mame/arcade.lua index 91f71a55c1c..beb20b94ab3 100644 --- a/scripts/target/mame/arcade.lua +++ b/scripts/target/mame/arcade.lua @@ -274,7 +274,6 @@ SOUNDS["ES1373"] = true SOUNDS["L7A1045"] = true SOUNDS["AD1848"] = true --SOUNDS["UPD1771"] = true -SOUNDS["VOLT_REG"] = true SOUNDS["MEA8000"] = true SOUNDS["DAC76"] = true SOUNDS["TA7630"] = true diff --git a/scripts/target/mame/ci.lua b/scripts/target/mame/ci.lua index d4f1014864d..6af7a666f76 100644 --- a/scripts/target/mame/ci.lua +++ b/scripts/target/mame/ci.lua @@ -47,7 +47,6 @@ SOUNDS["HC55516"] = true SOUNDS["YM3812"] = true SOUNDS["CEM3394"] = true SOUNDS["VOTRAX"] = true -SOUNDS["VOLT_REG"] = true SOUNDS["DMADAC"] = true SOUNDS["CDDA"] = true SOUNDS["POKEY"] = true diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua index 5bbfbd61ee6..eb9d4b60704 100644 --- a/scripts/target/mame/mess.lua +++ b/scripts/target/mame/mess.lua @@ -295,7 +295,6 @@ SOUNDS["L7A1045"] = true SOUNDS["UPD1771"] = true SOUNDS["GB_SOUND"] = true SOUNDS["PCD3311"] = true -SOUNDS["VOLT_REG"] = true SOUNDS["MEA8000"] = true --SOUNDS["DAC76"] = true --SOUNDS["MM5837"] = true diff --git a/scripts/target/mame/nl.lua b/scripts/target/mame/nl.lua index 15306b6d881..e39bf03df15 100644 --- a/scripts/target/mame/nl.lua +++ b/scripts/target/mame/nl.lua @@ -54,7 +54,6 @@ SOUNDS["UPD7759"] = true SOUNDS["YM2151"] = true SOUNDS["YM2413"] = true SOUNDS["BEEP"] = true -SOUNDS["VOLT_REG"] = true SOUNDS["SPEAKER"] = true SOUNDS["DIGITALKER"] = true SOUNDS["SN76477"] = true diff --git a/scripts/target/mame/tiny.lua b/scripts/target/mame/tiny.lua index 89d3e36284f..9734cffa0c9 100644 --- a/scripts/target/mame/tiny.lua +++ b/scripts/target/mame/tiny.lua @@ -44,7 +44,6 @@ SOUNDS["HC55516"] = true SOUNDS["YM3812"] = true SOUNDS["CEM3394"] = true SOUNDS["VOTRAX"] = true -SOUNDS["VOLT_REG"] = true -------------------------------------------------- -- specify available video cores diff --git a/scripts/target/mame/virtual.lua b/scripts/target/mame/virtual.lua index 2c7760fdb7c..7f386b34fec 100644 --- a/scripts/target/mame/virtual.lua +++ b/scripts/target/mame/virtual.lua @@ -47,7 +47,6 @@ SOUNDS["RF5C68"] = true SOUNDS["SAA1099"] = true SOUNDS["SCSP"] = true SOUNDS["DAC"] = true -SOUNDS["VOLT_REG"] = true SOUNDS["SEGAPCM"] = true SOUNDS["SN76496"] = true SOUNDS["UPD7759"] = true diff --git a/src/devices/bus/a2bus/a2dx1.cpp b/src/devices/bus/a2bus/a2dx1.cpp index 9c1a0733405..994be433e35 100644 --- a/src/devices/bus/a2bus/a2dx1.cpp +++ b/src/devices/bus/a2bus/a2dx1.cpp @@ -10,7 +10,6 @@ #include "emu.h" #include "a2dx1.h" -#include "sound/volt_reg.h" #include "speaker.h" /*************************************************************************** @@ -35,9 +34,10 @@ void a2bus_dx1_device::device_add_mconfig(machine_config &config) { SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - DAC_8BIT_R2R(config, m_dacvol, 0).add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT); + DAC_8BIT_R2R(config, m_dacvol, 0) + .set_output_range(0, 1) + .add_route(0, "dac", 1.0, DAC_INPUT_RANGE_HI) + .add_route(0, "dac", -1.0, DAC_INPUT_RANGE_LO); // unknown DAC } //************************************************************************** diff --git a/src/devices/bus/a2bus/a2sam.cpp b/src/devices/bus/a2bus/a2sam.cpp index 16b8b5affe8..b796b3008d3 100644 --- a/src/devices/bus/a2bus/a2sam.cpp +++ b/src/devices/bus/a2bus/a2sam.cpp @@ -10,7 +10,6 @@ #include "emu.h" #include "a2sam.h" -#include "sound/volt_reg.h" #include "speaker.h" /*************************************************************************** @@ -35,9 +34,6 @@ void a2bus_sam_device::device_add_mconfig(machine_config &config) { SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } //************************************************************************** diff --git a/src/devices/bus/cbus/pc9801_86.cpp b/src/devices/bus/cbus/pc9801_86.cpp index 60a1d89870b..6f4f14c6224 100644 --- a/src/devices/bus/cbus/pc9801_86.cpp +++ b/src/devices/bus/cbus/pc9801_86.cpp @@ -23,7 +23,6 @@ #include "emu.h" #include "bus/cbus/pc9801_86.h" -#include "sound/volt_reg.h" #include "speaker.h" #define QUEUE_SIZE 32768 @@ -74,11 +73,6 @@ void pc9801_86_device::pc9801_86_config(machine_config &config) DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // burr brown pcm61p DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // burr brown pcm61p - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } void pc9801_86_device::device_add_mconfig(machine_config &config) diff --git a/src/devices/bus/centronics/covox.cpp b/src/devices/bus/centronics/covox.cpp index 6cafe74cb42..d37d96ce958 100644 --- a/src/devices/bus/centronics/covox.cpp +++ b/src/devices/bus/centronics/covox.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "covox.h" -#include "sound/volt_reg.h" #include "speaker.h" //************************************************************************** @@ -43,9 +42,6 @@ void centronics_covox_device::device_add_mconfig(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void centronics_covox_device::device_start() @@ -96,11 +92,6 @@ void centronics_covox_stereo_device::device_add_mconfig(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_8BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC DAC_8BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } void centronics_covox_stereo_device::device_start() diff --git a/src/devices/bus/centronics/digiblst.cpp b/src/devices/bus/centronics/digiblst.cpp index 97a37054172..76c2aee636a 100644 --- a/src/devices/bus/centronics/digiblst.cpp +++ b/src/devices/bus/centronics/digiblst.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "digiblst.h" -#include "sound/volt_reg.h" #include "speaker.h" //************************************************************************** @@ -43,9 +42,6 @@ void centronics_digiblaster_device::device_add_mconfig(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void centronics_digiblaster_device::device_start() diff --git a/src/devices/bus/centronics/epson_lx810l.cpp b/src/devices/bus/centronics/epson_lx810l.cpp index 2744ea3e3ac..a5f0fbff7cb 100644 --- a/src/devices/bus/centronics/epson_lx810l.cpp +++ b/src/devices/bus/centronics/epson_lx810l.cpp @@ -27,7 +27,6 @@ #include "emu.h" #include "epson_lx810l.h" -#include "sound/volt_reg.h" #include "speaker.h" //#define VERBOSE 1 @@ -152,8 +151,6 @@ void epson_lx810l_device::device_add_mconfig(machine_config &config) /* audio hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* gate array */ e05a30_device &e05a30(E05A30(config, m_e05a30, 0)); diff --git a/src/devices/bus/centronics/samdac.cpp b/src/devices/bus/centronics/samdac.cpp index b976f521947..01b18963e44 100644 --- a/src/devices/bus/centronics/samdac.cpp +++ b/src/devices/bus/centronics/samdac.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "samdac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -29,12 +28,6 @@ void centronics_samdac_device::device_add_mconfig(machine_config &config) DAC_8BIT_R2R(config, m_dac[0], 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); DAC_8BIT_R2R(config, m_dac[1], 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); - - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, m_dac[0], 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac[0], -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, m_dac[1], 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac[1], -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/devices/bus/coco/coco_orch90.cpp b/src/devices/bus/coco/coco_orch90.cpp index 8978aa8d65a..df650ccff82 100644 --- a/src/devices/bus/coco/coco_orch90.cpp +++ b/src/devices/bus/coco/coco_orch90.cpp @@ -30,7 +30,6 @@ #include "cococart.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -122,9 +121,6 @@ void coco_orch90_device::device_add_mconfig(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_8BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // ls374.ic5 + r7 (8x20k) + r9 (8x10k) DAC_8BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // ls374.ic4 + r6 (8x20k) + r8 (8x10k) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } //------------------------------------------------- diff --git a/src/devices/bus/cpc/amdrum.cpp b/src/devices/bus/cpc/amdrum.cpp index 3b3472876bf..26345f48bc9 100644 --- a/src/devices/bus/cpc/amdrum.cpp +++ b/src/devices/bus/cpc/amdrum.cpp @@ -9,7 +9,6 @@ #include "emu.h" #include "amdrum.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -24,9 +23,6 @@ void cpc_amdrum_device::device_add_mconfig(machine_config &config) { SPEAKER(config, "speaker").front_center(); ZN428E(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // no pass-through } diff --git a/src/devices/bus/cpc/magicsound.cpp b/src/devices/bus/cpc/magicsound.cpp index 5994c7a832b..194791f4a38 100644 --- a/src/devices/bus/cpc/magicsound.cpp +++ b/src/devices/bus/cpc/magicsound.cpp @@ -9,7 +9,6 @@ #include "emu.h" #include "magicsound.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -59,9 +58,6 @@ void al_magicsound_device::device_add_mconfig(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // no pass-through(?) } diff --git a/src/devices/bus/cpc/musicmachine.cpp b/src/devices/bus/cpc/musicmachine.cpp index 6dbdd5a8845..a02be0c70b7 100644 --- a/src/devices/bus/cpc/musicmachine.cpp +++ b/src/devices/bus/cpc/musicmachine.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "musicmachine.h" -#include "sound/volt_reg.h" #include "bus/midi/midi.h" #include "machine/clock.h" #include "speaker.h" @@ -31,9 +30,6 @@ void cpc_musicmachine_device::device_add_mconfig(machine_config &config) SPEAKER(config, "speaker").front_center(); ZN429E(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.2); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // no pass-through } diff --git a/src/devices/bus/isa/dectalk.cpp b/src/devices/bus/isa/dectalk.cpp index 6482ccbf7e6..9312d063158 100644 --- a/src/devices/bus/isa/dectalk.cpp +++ b/src/devices/bus/isa/dectalk.cpp @@ -3,7 +3,6 @@ #include "emu.h" #include "dectalk.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -172,9 +171,6 @@ void dectalk_isa_device::device_add_mconfig(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_12BIT_R2R(config, m_dac, 0).add_route(0, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void dectalk_isa_device::write(offs_t offset, uint8_t data) diff --git a/src/devices/bus/isa/p1_sound.cpp b/src/devices/bus/isa/p1_sound.cpp index 0a6c04bc04f..2c0700d6282 100644 --- a/src/devices/bus/isa/p1_sound.cpp +++ b/src/devices/bus/isa/p1_sound.cpp @@ -14,7 +14,6 @@ #include "emu.h" #include "p1_sound.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -67,9 +66,6 @@ void p1_sound_device::device_add_mconfig(machine_config &config) SPEAKER(config, "speaker").front_center(); FILTER_RC(config, m_filter).add_route(ALL_OUTPUTS, "speaker", 1.0); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "filter", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/devices/bus/isa/sblaster.cpp b/src/devices/bus/isa/sblaster.cpp index ab6c899bdf8..554eabf6763 100644 --- a/src/devices/bus/isa/sblaster.cpp +++ b/src/devices/bus/isa/sblaster.cpp @@ -16,7 +16,6 @@ #include "machine/pic8259.h" #include "sound/262intf.h" #include "sound/spkrdev.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -1151,11 +1150,6 @@ void sb_device::common(machine_config &config) DAC_16BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC DAC_16BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); PC_JOY(config, m_joy); diff --git a/src/devices/bus/isa/stereo_fx.cpp b/src/devices/bus/isa/stereo_fx.cpp index d5569c845d9..5eeb17b0eeb 100644 --- a/src/devices/bus/isa/stereo_fx.cpp +++ b/src/devices/bus/isa/stereo_fx.cpp @@ -8,7 +8,6 @@ #include "stereo_fx.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -134,11 +133,6 @@ void stereo_fx_device::device_add_mconfig(machine_config &config) DAC_8BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC DAC_8BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); PC_JOY(config, m_joy); } diff --git a/src/devices/bus/msx_cart/konami.cpp b/src/devices/bus/msx_cart/konami.cpp index f2caa5f6940..022f45a4c2a 100644 --- a/src/devices/bus/msx_cart/konami.cpp +++ b/src/devices/bus/msx_cart/konami.cpp @@ -3,7 +3,6 @@ #include "emu.h" #include "konami.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -489,9 +488,6 @@ void msx_cart_synthesizer_device::device_add_mconfig(machine_config &config) // This is actually incorrect. The sound output is passed back into the MSX machine where it is mixed internally and output through the system 'speaker'. SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/devices/bus/msx_cart/majutsushi.cpp b/src/devices/bus/msx_cart/majutsushi.cpp index 66efee9188f..c94f5a00dc5 100644 --- a/src/devices/bus/msx_cart/majutsushi.cpp +++ b/src/devices/bus/msx_cart/majutsushi.cpp @@ -3,7 +3,6 @@ #include "emu.h" #include "majutsushi.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -31,9 +30,6 @@ void msx_cart_majutsushi_device::device_add_mconfig(machine_config &config) // This is actually incorrect. The sound output is passed back into the MSX machine where it is mixed internally and output through the system 'speaker'. SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.05); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/devices/bus/pet/2joysnd.cpp b/src/devices/bus/pet/2joysnd.cpp index 7bc3915a283..6d65b70542a 100644 --- a/src/devices/bus/pet/2joysnd.cpp +++ b/src/devices/bus/pet/2joysnd.cpp @@ -49,7 +49,6 @@ Connections #include "emu.h" #include "2joysnd.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -97,8 +96,6 @@ void pet_userport_joystick_and_sound_device::device_add_mconfig(machine_config & { SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } //************************************************************************** diff --git a/src/devices/bus/pet/cb2snd.cpp b/src/devices/bus/pet/cb2snd.cpp index fffbb70923e..b80d2efcce8 100644 --- a/src/devices/bus/pet/cb2snd.cpp +++ b/src/devices/bus/pet/cb2snd.cpp @@ -11,7 +11,6 @@ #include "emu.h" #include "cb2snd.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -30,8 +29,6 @@ void pet_userport_cb2_sound_device::device_add_mconfig(machine_config &config) { SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } //************************************************************************** diff --git a/src/devices/bus/samcoupe/expansion/blue_sampler.cpp b/src/devices/bus/samcoupe/expansion/blue_sampler.cpp index bffdd1c8a4f..9a70d3cac3d 100644 --- a/src/devices/bus/samcoupe/expansion/blue_sampler.cpp +++ b/src/devices/bus/samcoupe/expansion/blue_sampler.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "machine/rescap.h" -#include "sound/volt_reg.h" #include "blue_sampler.h" #include "speaker.h" @@ -33,9 +32,6 @@ void sam_blue_sound_sampler_device::device_add_mconfig(machine_config &config) m_ppi->in_pc_callback().set(FUNC(sam_blue_sound_sampler_device::ppi_portc_r)); ZN426E(config, m_dac, 0).add_route(ALL_OUTPUTS, "mono", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // TODO: ZN449E ADC diff --git a/src/devices/bus/spectrum/specdrum.cpp b/src/devices/bus/spectrum/specdrum.cpp index 9c809a1b36a..49764da5da5 100644 --- a/src/devices/bus/spectrum/specdrum.cpp +++ b/src/devices/bus/spectrum/specdrum.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "specdrum.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -27,9 +26,6 @@ void spectrum_specdrum_device::device_add_mconfig(machine_config &config) { SPEAKER(config, "speaker").front_center(); ZN428E(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/devices/machine/acorn_vidc.cpp b/src/devices/machine/acorn_vidc.cpp index f0ebf10f612..3ea63a91740 100644 --- a/src/devices/machine/acorn_vidc.cpp +++ b/src/devices/machine/acorn_vidc.cpp @@ -111,12 +111,10 @@ void acorn_vidc10_device::device_add_mconfig(machine_config &config) { SPEAKER(config, m_lspeaker).front_left(); SPEAKER(config, m_rspeaker).front_right(); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); for (int i = 0; i < m_sound_max_channels; i++) { // custom DAC DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac[i], 0).add_route(0, m_lspeaker, m_sound_input_gain).add_route(0, m_rspeaker, m_sound_input_gain); - vref.add_route(0, m_dac[i], 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, m_dac[i], -1.0, DAC_VREF_NEG_INPUT); } } diff --git a/src/devices/machine/acorn_vidc.h b/src/devices/machine/acorn_vidc.h index c7620ecec65..2bf2bcde1de 100644 --- a/src/devices/machine/acorn_vidc.h +++ b/src/devices/machine/acorn_vidc.h @@ -13,7 +13,6 @@ #include "speaker.h" #include "sound/dac.h" -#include "sound/volt_reg.h" //************************************************************************** // INTERFACE CONFIGURATION MACROS diff --git a/src/devices/sound/ad1848.cpp b/src/devices/sound/ad1848.cpp index 368025c83cb..b9fec7e6125 100644 --- a/src/devices/sound/ad1848.cpp +++ b/src/devices/sound/ad1848.cpp @@ -7,7 +7,6 @@ #include "emu.h" #include "sound/ad1848.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -28,11 +27,6 @@ void ad1848_device::device_add_mconfig(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_16BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC DAC_16BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/devices/sound/dac.h b/src/devices/sound/dac.h index 823df5ea124..ee6f5df0fe9 100644 --- a/src/devices/sound/dac.h +++ b/src/devices/sound/dac.h @@ -27,9 +27,6 @@ #define DAC_INPUT_RANGE_HI (0) #define DAC_INPUT_RANGE_LO (1) -#define DAC_VREF_POS_INPUT (DAC_INPUT_RANGE_HI) -#define DAC_VREF_NEG_INPUT (DAC_INPUT_RANGE_LO) - //************************************************************************** @@ -102,7 +99,8 @@ protected: } public: - // configuration + // configuration: default output range is -1..1 for all cases except + // for 1-bit DACs, which default to 0..1 dac_device_base &set_output_range(stream_buffer::sample_t range_min, stream_buffer::sample_t range_max) { m_range_min = range_min; diff --git a/src/devices/sound/volt_reg.cpp b/src/devices/sound/volt_reg.cpp deleted file mode 100644 index 14ccdfaab16..00000000000 --- a/src/devices/sound/volt_reg.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:smf -/*************************************************************************** - - volt_reg.cpp - - Direct current. - - TODO: - - If we continue having this device in MAME, add support for default voltage other - than (currently hardcoded) 5.0 - -***************************************************************************/ - -#include "emu.h" -#include "volt_reg.h" - -DEFINE_DEVICE_TYPE(VOLTAGE_REGULATOR, voltage_regulator_device, "volt_reg", "Voltage Regulator") - -voltage_regulator_device::voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, VOLTAGE_REGULATOR, tag, owner, clock), - device_sound_interface(mconfig, *this), - m_stream(nullptr), - m_output(1.0) -{ -} - -void voltage_regulator_device::device_start() -{ - m_stream = stream_alloc(0, 1, SAMPLE_RATE_MINIMUM); -} - -void voltage_regulator_device::sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) -{ - outputs[0].fill(m_output); -} diff --git a/src/devices/sound/volt_reg.h b/src/devices/sound/volt_reg.h deleted file mode 100644 index c672878fd4b..00000000000 --- a/src/devices/sound/volt_reg.h +++ /dev/null @@ -1,40 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:smf -/*************************************************************************** - - volt_reg.h - - Voltage Regulator - -***************************************************************************/ - -#ifndef MAME_SOUND_VOLT_REG_H -#define MAME_SOUND_VOLT_REG_H - -#pragma once - - -class voltage_regulator_device : public device_t, public device_sound_interface -{ -public: - voltage_regulator_device &set_output(double analogue_dc) { m_output = analogue_dc / 5.0f; return *this; } - - voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - - virtual bool issound() override { return false; } - -protected: - // device-level overrides - virtual void device_start() override; - - // sound stream update overrides - virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; - -private: - sound_stream* m_stream; - stream_buffer::sample_t m_output; -}; - -DECLARE_DEVICE_TYPE(VOLTAGE_REGULATOR, voltage_regulator_device) - -#endif // MAME_SOUND_VOLT_REG_H diff --git a/src/mame/audio/ad_sound.cpp b/src/mame/audio/ad_sound.cpp index 3b7fe72959f..3a85470006f 100644 --- a/src/mame/audio/ad_sound.cpp +++ b/src/mame/audio/ad_sound.cpp @@ -79,7 +79,6 @@ #include "cpu/z80/z80.h" #include "sound/ay8910.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -370,11 +369,6 @@ void ad_59mc07_device::device_add_mconfig(machine_config &config) DAC_6BIT_R2R(config, m_dac_1, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC DAC_6BIT_R2R(config, m_dac_2, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); SAMPLES(config, m_samples); m_samples->set_channels(3); diff --git a/src/mame/audio/alesis.cpp b/src/mame/audio/alesis.cpp index ee62c0d6ab2..b36a6fa060e 100644 --- a/src/mame/audio/alesis.cpp +++ b/src/mame/audio/alesis.cpp @@ -13,7 +13,6 @@ #include "emu.h" #include "includes/alesis.h" -#include "sound/volt_reg.h" #include "speaker.h" #define LOG 1 @@ -48,9 +47,6 @@ void alesis_dm3ag_device::device_add_mconfig(machine_config &config) SPEAKER(config, "lspeaker2").front_left(); SPEAKER(config, "rspeaker2").front_right(); PCM54HP(config, m_dac, 0).add_route(ALL_OUTPUTS, "lspeaker1", 1.0).add_route(ALL_OUTPUTS, "rspeaker1", 1.0); // PCM54HP DAC + R63/R73-75 + Sample and hold - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } //------------------------------------------------- diff --git a/src/mame/audio/atarisac.cpp b/src/mame/audio/atarisac.cpp index a0fef91cb29..3232dc570a0 100644 --- a/src/mame/audio/atarisac.cpp +++ b/src/mame/audio/atarisac.cpp @@ -12,7 +12,6 @@ #include "audio/atarisac.h" #include "cpu/m68000/m68000.h" -#include "sound/volt_reg.h" //************************************************************************** @@ -272,11 +271,6 @@ void atari_sac_device::device_add_mconfig(machine_config &config) // FIXME: there is actually only one DAC (plus some analog switches) AM6012(config, m_rdac).add_route(ALL_OUTPUTS, *this, 0.5, AUTO_ALLOC_INPUT, 1); // AM6012.6j AM6012(config, m_ldac).add_route(ALL_OUTPUTS, *this, 0.5, AUTO_ALLOC_INPUT, 0); // AM6012.6j - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/audio/bally.cpp b/src/mame/audio/bally.cpp index 23506f47b53..fbe8453f795 100644 --- a/src/mame/audio/bally.cpp +++ b/src/mame/audio/bally.cpp @@ -10,7 +10,6 @@ #include "emu.h" #include "audio/bally.h" -#include "sound/volt_reg.h" //************************************************************************** @@ -510,9 +509,6 @@ void bally_cheap_squeak_device::device_add_mconfig(machine_config &config) m_cpu->out_p2_cb().set(FUNC(bally_cheap_squeak_device::out_p2_cb)); ZN429E(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 1.00, AUTO_ALLOC_INPUT, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } //------------------------------------------------- @@ -661,9 +657,6 @@ void bally_squawk_n_talk_device::device_add_mconfig(machine_config &config) m_dac_filter->add_route(ALL_OUTPUTS, *this, 1.0); m_dac_filter->set_rc(filter_rc_device::HIGHPASS, 2000, 0, 0, CAP_U(2)); AD558(config, "dac", 0).add_route(ALL_OUTPUTS, "dac_filter", 0.75); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // TODO: Calculate exact filter values. An AC filter is good enough for now // and required as the chip likes to output a DC offset at idle. diff --git a/src/mame/audio/carnival.cpp b/src/mame/audio/carnival.cpp index 88c1b90195f..5bf7366efaf 100644 --- a/src/mame/audio/carnival.cpp +++ b/src/mame/audio/carnival.cpp @@ -253,8 +253,5 @@ void carnival_state::carnivalb_audio(machine_config &config) m_pit->out_handler<2>().set(m_dac[2], FUNC(dac_bit_interface::write)); for (int i = 0; i < 3; i++) - { DAC_1BIT(config, m_dac[i]).add_route(ALL_OUTPUTS, "mono", 0.15); - VOLTAGE_REGULATOR(config, m_vref[i]).add_route(0, m_dac[i], 1.0, DAC_VREF_POS_INPUT); - } } diff --git a/src/mame/audio/csd.cpp b/src/mame/audio/csd.cpp index 202351d5612..6550548a43b 100644 --- a/src/mame/audio/csd.cpp +++ b/src/mame/audio/csd.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "csd.h" -#include "sound/volt_reg.h" //************************************************************************** @@ -48,9 +47,6 @@ void midway_cheap_squeak_deluxe_device::device_add_mconfig(machine_config &confi m_pia->irqb_handler().set(FUNC(midway_cheap_squeak_deluxe_device::irq_w)); AD7533(config, m_dac, 0).add_route(ALL_OUTPUTS, *this, 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } //------------------------------------------------- diff --git a/src/mame/audio/gottlieb.cpp b/src/mame/audio/gottlieb.cpp index 69dbeb41a1d..4c56cff5e23 100644 --- a/src/mame/audio/gottlieb.cpp +++ b/src/mame/audio/gottlieb.cpp @@ -15,7 +15,6 @@ #include "sound/dac.h" #include "machine/input_merger.h" -#include "sound/volt_reg.h" namespace { @@ -128,9 +127,6 @@ void gottlieb_sound_r0_device::device_add_mconfig(machine_config &config) // sound devices DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -261,9 +257,6 @@ void gottlieb_sound_r1_device::device_add_mconfig(machine_config &config) // sound devices DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -666,9 +659,10 @@ void gottlieb_sound_r2_device::device_add_mconfig(machine_config &config) // sound hardware DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.075); // unknown DAC - DAC_8BIT_R2R(config, "dacvol", 0).add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT); + DAC_8BIT_R2R(config, "dacvol", 0) + .set_output_range(0, 1) + .add_route(0, "dac", 1.0, DAC_INPUT_RANGE_HI) + .add_route(0, "dac", -1.0, DAC_INPUT_RANGE_LO); // unknown DAC AY8913(config, m_ay1, SOUND2_CLOCK/2).add_route(ALL_OUTPUTS, *this, 0.15); diff --git a/src/mame/audio/harddriv.cpp b/src/mame/audio/harddriv.cpp index 45537c6c652..eef4fe6e3a5 100644 --- a/src/mame/audio/harddriv.cpp +++ b/src/mame/audio/harddriv.cpp @@ -10,7 +10,6 @@ #include "includes/harddriv.h" #include "cpu/tms32010/tms32010.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -455,7 +454,4 @@ void harddriv_sound_board_device::device_add_mconfig(machine_config &config) SPEAKER(config, "speaker").front_center(); AM6012(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // ls374d.75e + ls374d.90e + am6012 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/audio/leland.cpp b/src/mame/audio/leland.cpp index a07895324e3..ddeb4f1c286 100644 --- a/src/mame/audio/leland.cpp +++ b/src/mame/audio/leland.cpp @@ -83,7 +83,6 @@ #include "audio/leland.h" #include "cpu/z80/z80.h" -#include "sound/volt_reg.h" #include "speaker.h" #define LOG_COMM 0 diff --git a/src/mame/audio/midway.cpp b/src/mame/audio/midway.cpp index 427565e9f55..6a1b9972ff4 100644 --- a/src/mame/audio/midway.cpp +++ b/src/mame/audio/midway.cpp @@ -12,7 +12,6 @@ #include "includes/mcr.h" #include "audio/midway.h" #include "audio/williams.h" -#include "sound/volt_reg.h" #include @@ -583,9 +582,6 @@ void midway_sounds_good_device::device_add_mconfig(machine_config &config) m_pia->irqb_handler().set(FUNC(midway_sounds_good_device::irq_w)); AD7533(config, m_dac, 0).add_route(ALL_OUTPUTS, *this, 1.0); /// ad7533jn.u10 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -740,9 +736,6 @@ void midway_turbo_cheap_squeak_device::device_add_mconfig(machine_config &config m_pia->irqb_handler().set(FUNC(midway_turbo_cheap_squeak_device::irq_w)); AD7533(config, m_dac, 0).add_route(ALL_OUTPUTS, *this, 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/audio/n8080.cpp b/src/mame/audio/n8080.cpp index 4d86d867692..16f78afbedd 100644 --- a/src/mame/audio/n8080.cpp +++ b/src/mame/audio/n8080.cpp @@ -8,7 +8,6 @@ #include "emu.h" #include "includes/n8080.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -474,8 +473,6 @@ void spacefev_state::spacefev_sound(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_n8080_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "n8080_dac", 1.0, DAC_VREF_POS_INPUT); SN76477(config, m_sn); m_sn->set_noise_params(RES_K(36), RES_K(150), CAP_N(1)); @@ -508,8 +505,6 @@ void sheriff_state::sheriff_sound(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_n8080_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "n8080_dac", 1.0, DAC_VREF_POS_INPUT); SN76477(config, m_sn); m_sn->set_noise_params(RES_K(36), RES_K(100), CAP_N(1)); @@ -545,7 +540,4 @@ void helifire_state::helifire_sound(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "helifire_dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "helifire_dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/audio/nichisnd.cpp b/src/mame/audio/nichisnd.cpp index 8902eb8fc96..b54ae645559 100644 --- a/src/mame/audio/nichisnd.cpp +++ b/src/mame/audio/nichisnd.cpp @@ -100,9 +100,6 @@ void nichisnd_device::device_add_mconfig(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.37); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.37); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/audio/nichisnd.h b/src/mame/audio/nichisnd.h index 7b31cf13528..897ed87ac6f 100644 --- a/src/mame/audio/nichisnd.h +++ b/src/mame/audio/nichisnd.h @@ -14,7 +14,6 @@ #include "cpu/z80/tmpz84c011.h" #include "sound/3812intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "machine/gen_latch.h" diff --git a/src/mame/audio/pinsnd88.cpp b/src/mame/audio/pinsnd88.cpp index 63b3fcd3f85..5e26d397e56 100644 --- a/src/mame/audio/pinsnd88.cpp +++ b/src/mame/audio/pinsnd88.cpp @@ -104,7 +104,6 @@ #include "emu.h" #include "pinsnd88.h" -#include "sound/volt_reg.h" DEFINE_DEVICE_TYPE(PINSND88, pinsnd88_device, "pinsnd88", "Williams Pin Sound '88 Audio Board") @@ -221,9 +220,6 @@ void pinsnd88_device::device_add_mconfig(machine_config &config) // TODO: analog filters and "volume" controls for the two channels AD7224(config, m_dac, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); m_dac->add_route(ALL_OUTPUTS, *this, 0.41/2.0, AUTO_ALLOC_INPUT, 0); // 470K m_dac->add_route(ALL_OUTPUTS, *this, 0.5/2.0, AUTO_ALLOC_INPUT, 1); // 330K diff --git a/src/mame/audio/s11c_bg.cpp b/src/mame/audio/s11c_bg.cpp index 33fd826e1b8..27e59b1eeaa 100644 --- a/src/mame/audio/s11c_bg.cpp +++ b/src/mame/audio/s11c_bg.cpp @@ -216,7 +216,6 @@ #include "emu.h" #include "s11c_bg.h" -#include "sound/volt_reg.h" DEFINE_DEVICE_TYPE(S11C_BG, s11c_bg_device, "s11c_bg", "Williams System 11C Background Audio Board") // D-11581-20xx or D-11581-400xx or A-13971-50003 @@ -369,9 +368,6 @@ void s11c_bg_device::s11_bg_base(machine_config &config) config.set_maximum_quantum(attotime::from_hz(50)); MC1408(config, m_dac, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); PIA6821(config, m_pia40, 0); m_pia40->writepa_handler().set("dac", FUNC(dac_byte_interface::data_w)); diff --git a/src/mame/audio/segag80r.cpp b/src/mame/audio/segag80r.cpp index 4acd7c2104a..32088ede5a4 100644 --- a/src/mame/audio/segag80r.cpp +++ b/src/mame/audio/segag80r.cpp @@ -14,7 +14,6 @@ #include "audio/segag80r.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -583,9 +582,6 @@ void monsterb_sound_device::device_add_mconfig(machine_config &config) m_music->add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // 50K (R91-97)/100K (R98-106) ladder network - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SPEAKER(config, "speaker").front_center(); } diff --git a/src/mame/audio/spacefb.cpp b/src/mame/audio/spacefb.cpp index 3ae055f03b5..5d70b81c4f2 100644 --- a/src/mame/audio/spacefb.cpp +++ b/src/mame/audio/spacefb.cpp @@ -12,7 +12,6 @@ #include "cpu/mcs48/mcs48.h" #include "sound/dac.h" #include "sound/samples.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -81,9 +80,6 @@ void spacefb_state::spacefb_audio(machine_config &config) { SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SAMPLES(config, m_samples); m_samples->set_channels(3); diff --git a/src/mame/audio/targ.cpp b/src/mame/audio/targ.cpp index a08d5d76473..12c799c8776 100644 --- a/src/mame/audio/targ.cpp +++ b/src/mame/audio/targ.cpp @@ -15,7 +15,6 @@ #include "emu.h" #include "includes/exidy.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -187,8 +186,6 @@ void exidy_state::spectar_audio(machine_config &config) m_samples->add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void exidy_state::targ_audio(machine_config &config) @@ -202,6 +199,4 @@ void exidy_state::targ_audio(machine_config &config) m_samples->add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/audio/williams.cpp b/src/mame/audio/williams.cpp index e20ef10f8ed..f08a0d4d5d5 100644 --- a/src/mame/audio/williams.cpp +++ b/src/mame/audio/williams.cpp @@ -39,7 +39,6 @@ #include "sound/okim6295.h" #include "sound/hc55516.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #define NARC_MASTER_CLOCK XTAL(8'000'000) @@ -195,9 +194,6 @@ void williams_cvsd_sound_device::device_add_mconfig(machine_config &config) m_ym2151->add_route(ALL_OUTPUTS, *this, 0.10); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); HC55516(config, m_hc55516, 0); m_hc55516->add_route(ALL_OUTPUTS, *this, 0.60); @@ -516,9 +512,6 @@ void williams_narc_sound_device::device_add_mconfig(machine_config &config) AD7224(config, "dac1", 0).add_route(ALL_OUTPUTS, *this, 0.25); AD7224(config, "dac2", 0).add_route(ALL_OUTPUTS, *this, 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, *this, 0.60); } @@ -769,9 +762,6 @@ void williams_adpcm_sound_device::device_add_mconfig(machine_config &config) ym2151.add_route(ALL_OUTPUTS, *this, 0.10); AD7524(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.10); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); okim6295_device &oki(OKIM6295(config, "oki", ADPCM_MASTER_CLOCK/8, okim6295_device::PIN7_HIGH)); // clock frequency & pin 7 not verified oki.set_addrmap(0, &williams_adpcm_sound_device::williams_adpcm_oki_map); diff --git a/src/mame/audio/wpcsnd.cpp b/src/mame/audio/wpcsnd.cpp index 85fdb14ddf2..3852ffd55e2 100644 --- a/src/mame/audio/wpcsnd.cpp +++ b/src/mame/audio/wpcsnd.cpp @@ -43,7 +43,6 @@ #include "emu.h" #include "wpcsnd.h" #include "sound/dac.h" -#include "sound/volt_reg.h" //#define VERBOSE 1 #include "logmacro.h" @@ -113,9 +112,6 @@ void wpcsnd_device::device_add_mconfig(machine_config &config) m_ym2151->add_route(ALL_OUTPUTS, *this, 0.25); AD7524(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, *this, 0.5); } diff --git a/src/mame/audio/zaccaria.cpp b/src/mame/audio/zaccaria.cpp index f7b31e245e5..3fb78ce3121 100644 --- a/src/mame/audio/zaccaria.cpp +++ b/src/mame/audio/zaccaria.cpp @@ -8,7 +8,6 @@ #include "machine/clock.h" #include "machine/rescap.h" #include "sound/dac.h" -#include "sound/volt_reg.h" //************************************************************************** @@ -438,9 +437,6 @@ void zac1b11142_audio_device::device_add_mconfig(machine_config &config) //MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.30, AUTO_ALLOC_INPUT, 0); // mc1408.1f MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "sound_nl", 1.0, 7); // mc1408.1f - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // There is no xtal, the clock is obtained from a RC oscillator as shown in the TMS5220 datasheet (R=100kOhm C=22pF) // 162kHz measured on pin 3 20 minutes after power on, clock would then be 162.3*4=649.2kHz diff --git a/src/mame/drivers/20pacgal.cpp b/src/mame/drivers/20pacgal.cpp index 2958a899e8f..d545d740511 100644 --- a/src/mame/drivers/20pacgal.cpp +++ b/src/mame/drivers/20pacgal.cpp @@ -90,7 +90,6 @@ Graphics: CY37256P160-83AC x 2 (Ultra37000 CPLD family - 160 pin TQFP, 256 Macro #include "machine/eepromser.h" #include "machine/watchdog.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -418,9 +417,6 @@ void _20pacgal_state::_20pacgal(machine_config &config) namco.add_route(ALL_OUTPUTS, "speaker", 1.0); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void _25pacman_state::_25pacman(machine_config &config) diff --git a/src/mame/drivers/4004clk.cpp b/src/mame/drivers/4004clk.cpp index 6190be43acd..08f7610c997 100644 --- a/src/mame/drivers/4004clk.cpp +++ b/src/mame/drivers/4004clk.cpp @@ -12,7 +12,6 @@ #include "cpu/mcs40/mcs40.h" #include "machine/clock.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "4004clk.lh" @@ -151,8 +150,6 @@ void nixieclock_state::_4004clk(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); clock_device &clk(CLOCK(config, "clk", 60)); clk.signal_handler().set_inputline("maincpu", I4004_TEST_LINE); diff --git a/src/mame/drivers/40love.cpp b/src/mame/drivers/40love.cpp index 917c8dfd49d..58bce57d3b2 100644 --- a/src/mame/drivers/40love.cpp +++ b/src/mame/drivers/40love.cpp @@ -229,7 +229,6 @@ Notes - Has jumper setting for 122HZ or 61HZ) #include "machine/input_merger.h" #include "machine/mb14241.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -685,9 +684,6 @@ void fortyl_state::common(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.2); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void fortyl_state::_40love(machine_config &config) diff --git a/src/mame/drivers/aa310.cpp b/src/mame/drivers/aa310.cpp index 782d4b5e744..0b7f495899d 100644 --- a/src/mame/drivers/aa310.cpp +++ b/src/mame/drivers/aa310.cpp @@ -93,7 +93,6 @@ #include "formats/pc_dsk.h" #include "machine/ram.h" #include "machine/wd_fdc.h" -#include "sound/volt_reg.h" #include "screen.h" #include "softlist.h" #include "speaker.h" diff --git a/src/mame/drivers/aci_ggm.cpp b/src/mame/drivers/aci_ggm.cpp index d2ae921c8a1..e1681f4ca84 100644 --- a/src/mame/drivers/aci_ggm.cpp +++ b/src/mame/drivers/aci_ggm.cpp @@ -51,7 +51,6 @@ TODO: #include "machine/timer.h" #include "video/pwm.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -439,7 +438,6 @@ void ggm_state::ggm(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, m_cart, generic_plain_slot, "ggm"); diff --git a/src/mame/drivers/aci_prodigy.cpp b/src/mame/drivers/aci_prodigy.cpp index e3ad7abf893..15254482257 100644 --- a/src/mame/drivers/aci_prodigy.cpp +++ b/src/mame/drivers/aci_prodigy.cpp @@ -69,7 +69,6 @@ The keypad is connected to the 12 pin KPDCN connector left to right KP1: #include "machine/sensorboard.h" #include "video/pwm.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" // internal artwork @@ -279,7 +278,6 @@ void prodigy_state::prodigy(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/advision.cpp b/src/mame/drivers/advision.cpp index 65bbce03615..c7033776ca3 100644 --- a/src/mame/drivers/advision.cpp +++ b/src/mame/drivers/advision.cpp @@ -18,7 +18,6 @@ #include "emu.h" #include "includes/advision.h" -#include "sound/volt_reg.h" #include "screen.h" #include "softlist.h" #include "speaker.h" @@ -90,9 +89,6 @@ void advision_state::advision(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_2BIT_BINARY_WEIGHTED(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, m_cart, generic_plain_slot, "advision_cart"); diff --git a/src/mame/drivers/alpha68k.cpp b/src/mame/drivers/alpha68k.cpp index 23ccda80585..4497d2b9865 100644 --- a/src/mame/drivers/alpha68k.cpp +++ b/src/mame/drivers/alpha68k.cpp @@ -1273,9 +1273,6 @@ void alpha68k_II_state::base_config(machine_config &config) ym2.add_route(ALL_OUTPUTS, "speaker", 1.0); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.75); // ALPHA-VOICE88 custom DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void alpha68k_II_state::video_config(machine_config &config, u16 num_pens) diff --git a/src/mame/drivers/alpha68k_n.cpp b/src/mame/drivers/alpha68k_n.cpp index f96df81f754..04960429bf5 100644 --- a/src/mame/drivers/alpha68k_n.cpp +++ b/src/mame/drivers/alpha68k_n.cpp @@ -787,9 +787,6 @@ void sstingray_state::sstingry(machine_config &config) ym3.add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.75); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void kyros_state::kyros(machine_config &config) @@ -823,9 +820,6 @@ void kyros_state::kyros(machine_config &config) ym3.add_route(ALL_OUTPUTS, "speaker", 0.9); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.75); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void jongbou_state::jongbou(machine_config &config) diff --git a/src/mame/drivers/apple3.cpp b/src/mame/drivers/apple3.cpp index b0c79838079..4e284c1d2aa 100644 --- a/src/mame/drivers/apple3.cpp +++ b/src/mame/drivers/apple3.cpp @@ -18,7 +18,6 @@ #include "emu.h" #include "includes/apple3.h" -#include "sound/volt_reg.h" #include "formats/ap2_dsk.h" #include "bus/a2bus/a2cffa.h" @@ -156,10 +155,6 @@ void apple3_state::apple3(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_bell, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); DAC_6BIT_BINARY_WEIGHTED(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.125); // 6522.b5(pb0-pb5) + 320k,160k,80k,40k,20k,10k - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "bell", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); TIMER(config, "c040").configure_periodic(FUNC(apple3_state::apple3_c040_tick), attotime::from_hz(2000)); diff --git a/src/mame/drivers/applix.cpp b/src/mame/drivers/applix.cpp index 14c28072e3a..584b6429b05 100644 --- a/src/mame/drivers/applix.cpp +++ b/src/mame/drivers/applix.cpp @@ -47,7 +47,6 @@ #include "machine/wd_fdc.h" #include "machine/z80scc.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "emupal.h" @@ -908,9 +907,6 @@ void applix_state::applix(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC0800(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // 74ls374.u20 + dac0800.u21 + 4052.u23 DAC0800(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // 74ls374.u20 + dac0800.u21 + 4052.u23 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); /* Devices */ MC6845(config, m_crtc, 30_MHz_XTAL / 16); // MC6545 @ 1.875 MHz diff --git a/src/mame/drivers/armedf.cpp b/src/mame/drivers/armedf.cpp index f64ed231a64..1489c13abe4 100644 --- a/src/mame/drivers/armedf.cpp +++ b/src/mame/drivers/armedf.cpp @@ -323,7 +323,6 @@ Notes: #include "sound/3526intf.h" #include "sound/3812intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #define LEGION_HACK 0 @@ -1120,9 +1119,6 @@ void armedf_state::sound_config(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // 10-pin SIP with 74HC374P latch DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // 10-pin SIP with 74HC374P latch - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void armedf_state::terraf(machine_config &config) @@ -1167,9 +1163,6 @@ void armedf_state::terrafjb(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void armedf_state::terrafb(machine_config &config) @@ -1218,9 +1211,6 @@ void armedf_state::armedf(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void armedf_state::cclimbr2(machine_config &config) @@ -1248,9 +1238,6 @@ void armedf_state::cclimbr2(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void armedf_state::legion_common(machine_config &config) @@ -1272,9 +1259,6 @@ void armedf_state::legion_common(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // 10-pin SIP with 74HC374P latch DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // 10-pin SIP with 74HC374P latch - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void armedf_state::legion(machine_config &config) diff --git a/src/mame/drivers/atari400.cpp b/src/mame/drivers/atari400.cpp index daa194c4cc1..ebb5c0739e2 100644 --- a/src/mame/drivers/atari400.cpp +++ b/src/mame/drivers/atari400.cpp @@ -50,7 +50,6 @@ #include "machine/atarifdc.h" #include "sound/dac.h" #include "sound/pokey.h" -#include "sound/volt_reg.h" #include "bus/a800/a800_slot.h" #include "bus/a800/a800_carts.h" @@ -2165,7 +2164,6 @@ void a400_state::atari_common(machine_config &config) atari_common_nodac(config); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.03); - VOLTAGE_REGULATOR(config, "vref", 0).add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* internal ram */ RAM(config, m_ram).set_default_size("48K"); diff --git a/src/mame/drivers/atari_s1.cpp b/src/mame/drivers/atari_s1.cpp index fbadc60c190..7313814fcf3 100644 --- a/src/mame/drivers/atari_s1.cpp +++ b/src/mame/drivers/atari_s1.cpp @@ -50,7 +50,6 @@ ToDo: #include "machine/timer.h" #include "machine/watchdog.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "atari_s1.lh" @@ -463,9 +462,6 @@ void atari_s1_state::atari_s1(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* Video */ config.set_default_layout(layout_atari_s1); diff --git a/src/mame/drivers/atari_s2.cpp b/src/mame/drivers/atari_s2.cpp index b7208b9d4b7..381f360bd8b 100644 --- a/src/mame/drivers/atari_s2.cpp +++ b/src/mame/drivers/atari_s2.cpp @@ -28,7 +28,6 @@ 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" @@ -493,9 +492,6 @@ void atari_s2_state::atari_s2(machine_config &config) DAC_4BIT_BINARY_WEIGHTED(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // r23-r26 (68k,33k,18k,8.2k) DAC_3BIT_BINARY_WEIGHTED(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // r18-r20 (100k,47k,100k) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); /* Video */ config.set_default_layout(layout_atari_s2); diff --git a/src/mame/drivers/ave_arb.cpp b/src/mame/drivers/ave_arb.cpp index 6c73b124f26..603e3735468 100644 --- a/src/mame/drivers/ave_arb.cpp +++ b/src/mame/drivers/ave_arb.cpp @@ -45,7 +45,6 @@ TODO: #include "machine/6522via.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -287,7 +286,6 @@ void arb_state::v2(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void arb_state::arb(machine_config &config) diff --git a/src/mame/drivers/bigevglf.cpp b/src/mame/drivers/bigevglf.cpp index b5892da6ace..c9c585b8ed6 100644 --- a/src/mame/drivers/bigevglf.cpp +++ b/src/mame/drivers/bigevglf.cpp @@ -65,7 +65,6 @@ J1100072A #include "machine/input_merger.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -439,9 +438,6 @@ void bigevglf_state::bigevglf(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.50); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } /*************************************************************************** diff --git a/src/mame/drivers/bking.cpp b/src/mame/drivers/bking.cpp index a7552593bba..38a2c18f3af 100644 --- a/src/mame/drivers/bking.cpp +++ b/src/mame/drivers/bking.cpp @@ -25,7 +25,6 @@ DIP Locations verified for: #include "machine/watchdog.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -435,9 +434,6 @@ void bking_state::bking(machine_config &config) ay2.add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void bking_state::bking3(machine_config &config) diff --git a/src/mame/drivers/bw12.cpp b/src/mame/drivers/bw12.cpp index d9928ac612c..bc8caefa4f0 100644 --- a/src/mame/drivers/bw12.cpp +++ b/src/mame/drivers/bw12.cpp @@ -29,7 +29,6 @@ #include "includes/bw12.h" #include "bus/rs232/rs232.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "softlist.h" #include "speaker.h" @@ -539,9 +538,6 @@ void bw12_state::common(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); // ls273.ic5 + mc1408.ic4 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* devices */ TIMER(config, FLOPPY_TIMER_TAG).configure_generic(FUNC(bw12_state::floppy_motor_off_tick)); diff --git a/src/mame/drivers/bwing.cpp b/src/mame/drivers/bwing.cpp index d16ce37a618..d1d941f5ddf 100644 --- a/src/mame/drivers/bwing.cpp +++ b/src/mame/drivers/bwing.cpp @@ -31,7 +31,6 @@ Known issues: #include "cpu/m6809/m6809.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -405,9 +404,6 @@ void bwing_state::bwing(machine_config &config) AY8912(config, "ay2", XTAL(24'000'000) / 2 / 8).add_route(ALL_OUTPUTS, "speaker", 0.5); DAC08(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } //**************************************************************************** diff --git a/src/mame/drivers/byvid.cpp b/src/mame/drivers/byvid.cpp index a95a4b25143..3b1bc3a854f 100644 --- a/src/mame/drivers/byvid.cpp +++ b/src/mame/drivers/byvid.cpp @@ -45,7 +45,6 @@ ToDo (granny): #include "machine/timer.h" #include "sound/beep.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/tms9928a.h" #include "speaker.h" @@ -793,9 +792,6 @@ void by133_state::babypac(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); ZN429E(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // U32 (Vidiot) or U6 (Cheap Squeak) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SPEAKER(config, "beee").front_center(); BEEP(config, m_beep, 600).add_route(ALL_OUTPUTS, "beee", 0.10); diff --git a/src/mame/drivers/calchase.cpp b/src/mame/drivers/calchase.cpp index d0ec40da6bb..3b71cc8ef9f 100644 --- a/src/mame/drivers/calchase.cpp +++ b/src/mame/drivers/calchase.cpp @@ -140,7 +140,6 @@ something wrong in the disk geometry reported by calchase.chd (20,255,63) since #include "machine/ds128x.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pc_vga.h" #include "screen.h" #include "speaker.h" @@ -659,9 +658,6 @@ void calchase_state::calchase(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_12BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC DAC_12BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } void calchase_state::hostinv(machine_config &config) @@ -690,9 +686,6 @@ void calchase_state::hostinv(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_12BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC DAC_12BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/camplynx.cpp b/src/mame/drivers/camplynx.cpp index 81d46cc91ff..9698fd1bc21 100644 --- a/src/mame/drivers/camplynx.cpp +++ b/src/mame/drivers/camplynx.cpp @@ -164,7 +164,6 @@ #include "imagedev/floppy.h" #include "machine/wd_fdc.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "machine/ram.h" #include "emupal.h" @@ -862,7 +861,6 @@ void camplynx_state::lynx_common(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_6BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.375); // unknown DAC - VOLTAGE_REGULATOR(config, "vref").add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT).add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); } void camplynx_state::lynx_disk(machine_config &config) diff --git a/src/mame/drivers/capbowl.cpp b/src/mame/drivers/capbowl.cpp index 41d20f2af52..6cefec0ffbc 100644 --- a/src/mame/drivers/capbowl.cpp +++ b/src/mame/drivers/capbowl.cpp @@ -95,7 +95,6 @@ #include "cpu/m6809/m6809.h" #include "sound/2203intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #define MASTER_CLOCK XTAL(8'000'000) @@ -362,9 +361,6 @@ void capbowl_state::capbowl(machine_config &config) ymsnd.add_route(3, "speaker", 0.75); DAC0832(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/cc40.cpp b/src/mame/drivers/cc40.cpp index c0f60554e7e..669d2536155 100644 --- a/src/mame/drivers/cc40.cpp +++ b/src/mame/drivers/cc40.cpp @@ -78,7 +78,6 @@ #include "cpu/tms7000/tms7000.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/hd44780.h" #include "emupal.h" @@ -614,7 +613,6 @@ void cc40_state::cc40(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "cc40_cart", "bin,rom,256").set_device_load(FUNC(cc40_state::cart_load)); diff --git a/src/mame/drivers/cchasm.cpp b/src/mame/drivers/cchasm.cpp index 4982db9d9d2..48f8214a692 100644 --- a/src/mame/drivers/cchasm.cpp +++ b/src/mame/drivers/cchasm.cpp @@ -23,7 +23,6 @@ #include "machine/z80ctc.h" #include "machine/watchdog.h" #include "sound/ay8910.h" -#include "sound/volt_reg.h" #include "speaker.h" #define CCHASM_68K_CLOCK (XTAL(8'000'000)) @@ -186,9 +185,6 @@ void cchasm_state::cchasm(machine_config &config) DAC_1BIT(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); /* 6840 PTM */ ptm6840_device &ptm(PTM6840(config, "6840ptm", CCHASM_68K_CLOCK/10)); diff --git a/src/mame/drivers/champbas.cpp b/src/mame/drivers/champbas.cpp index d802707a1b4..082ef6625f1 100644 --- a/src/mame/drivers/champbas.cpp +++ b/src/mame/drivers/champbas.cpp @@ -86,7 +86,6 @@ TODO: #include "machine/watchdog.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -598,9 +597,6 @@ void champbas_state::champbas(machine_config &config) AY8910(config, "ay1", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.3); DAC_6BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.7); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void champbas_state::champbasj(machine_config &config) @@ -717,9 +713,6 @@ void exctsccr_state::exctsccr(machine_config &config) DAC_6BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC DAC_6BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void exctsccr_state::exctscc2(machine_config &config) @@ -780,9 +773,6 @@ void exctsccr_state::exctsccrb(machine_config &config) AY8910(config, "ay1", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.3); DAC_6BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.7); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/chessmate.cpp b/src/mame/drivers/chessmate.cpp index e1514874ecc..8abc005eb4d 100644 --- a/src/mame/drivers/chessmate.cpp +++ b/src/mame/drivers/chessmate.cpp @@ -47,7 +47,6 @@ MOS MPS 6332 005 2179 #include "cpu/m6502/m6504.h" #include "machine/mos6530.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -287,7 +286,6 @@ void chmate_state::chmate(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void chmate_state::mk2(machine_config &config) diff --git a/src/mame/drivers/chsuper.cpp b/src/mame/drivers/chsuper.cpp index bdc0f1e887c..6593e92101f 100644 --- a/src/mame/drivers/chsuper.cpp +++ b/src/mame/drivers/chsuper.cpp @@ -24,7 +24,6 @@ #include "cpu/z180/z180.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/ramdac.h" #include "emupal.h" #include "screen.h" @@ -393,9 +392,6 @@ void chsuper_state::chsuper(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // 74HC273 latch + R2R network (unknown values) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/circusc.cpp b/src/mame/drivers/circusc.cpp index fb3ff5dc849..5474ca1f266 100644 --- a/src/mame/drivers/circusc.cpp +++ b/src/mame/drivers/circusc.cpp @@ -61,7 +61,6 @@ This bug is due to 380_r02.6h, it differs from 380_q02.6h by 2 bytes, at #include "machine/konami1.h" #include "machine/watchdog.h" #include "sound/discrete.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -383,9 +382,7 @@ void circusc_state::circusc(machine_config &config) SN76496(config, m_sn_2, XTAL(14'318'181)/8).add_route(0, "fltdisc", 1.0, 1); - DAC_8BIT_R2R(config, "dac", 0).add_route(0, "fltdisc", 1.0, 2); // ls374.7g + r44+r45+r47+r48+r50+r56+r57+r58+r59 (20k) + r46+r49+r51+r52+r53+r54+r55 (10k) + upc324.3h - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); + DAC_8BIT_R2R(config, "dac", 0).set_output_range(0, 1).add_route(0, "fltdisc", 1.0, 2); // ls374.7g + r44+r45+r47+r48+r50+r56+r57+r58+r59 (20k) + r46+r49+r51+r52+r53+r54+r55 (10k) + upc324.3h DISCRETE(config, m_discrete, circusc_discrete).add_route(ALL_OUTPUTS, "mono", 1.0); } diff --git a/src/mame/drivers/cking_master.cpp b/src/mame/drivers/cking_master.cpp index c5f580105ef..c2622c13fa6 100644 --- a/src/mame/drivers/cking_master.cpp +++ b/src/mame/drivers/cking_master.cpp @@ -25,7 +25,6 @@ TODO: #include "machine/bankdev.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -241,9 +240,6 @@ void master_state::master(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.125); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/cntsteer.cpp b/src/mame/drivers/cntsteer.cpp index 286dd718b68..f157b39d256 100644 --- a/src/mame/drivers/cntsteer.cpp +++ b/src/mame/drivers/cntsteer.cpp @@ -40,7 +40,6 @@ #include "machine/gen_latch.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -1023,9 +1022,6 @@ void cntsteer_state::cntsteer(machine_config &config) YM2149(config, "ay2", XTAL(12'000'000)/8).add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // labeled DAC-08CQ - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void cntsteer_state::zerotrgt(machine_config &config) diff --git a/src/mame/drivers/coco12.cpp b/src/mame/drivers/coco12.cpp index 83f06dd04a9..4de76feb4c9 100644 --- a/src/mame/drivers/coco12.cpp +++ b/src/mame/drivers/coco12.cpp @@ -42,7 +42,6 @@ #include "cpu/m6809/m6809.h" #include "cpu/m6809/hd6309.h" #include "imagedev/cassette.h" -#include "sound/volt_reg.h" #include "softlist.h" #include "speaker.h" @@ -443,12 +442,9 @@ void coco_state::coco_sound(machine_config &config) // 6-bit D/A: R10-15 = 10K, 20K, 40.2K, 80.6K, 162K, 324K (according to parts list); output also controls joysticks DAC_6BIT_BINARY_WEIGHTED(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.125); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "sbs", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "sbs", -1.0, DAC_VREF_NEG_INPUT); // Single-bit sound: R22 = 10K - DAC_1BIT(config, "sbs", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); + DAC_1BIT(config, "sbs", 0).set_output_range(-1, 1).add_route(ALL_OUTPUTS, "speaker", 0.125); } diff --git a/src/mame/drivers/conic_cchess2.cpp b/src/mame/drivers/conic_cchess2.cpp index 2b56ffd24ba..3f5150d7de3 100644 --- a/src/mame/drivers/conic_cchess2.cpp +++ b/src/mame/drivers/conic_cchess2.cpp @@ -31,7 +31,6 @@ BTANB: #include "machine/6821pia.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -259,7 +258,6 @@ void cchess2_state::cncchess2(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/coolpool.cpp b/src/mame/drivers/coolpool.cpp index f5fad8a2a87..576bec7aff8 100644 --- a/src/mame/drivers/coolpool.cpp +++ b/src/mame/drivers/coolpool.cpp @@ -35,7 +35,6 @@ #include "cpu/tms32025/tms32025.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -745,9 +744,6 @@ void coolpool_state::amerdart(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); MP1210(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -793,9 +789,6 @@ void coolpool_state::coolpool(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); MP1210(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/cop01.cpp b/src/mame/drivers/cop01.cpp index 4647c04bd75..e13e93df911 100644 --- a/src/mame/drivers/cop01.cpp +++ b/src/mame/drivers/cop01.cpp @@ -63,7 +63,6 @@ Mighty Guy board layout: #include "screen.h" #include "speaker.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #define MIGHTGUY_HACK 0 @@ -519,9 +518,6 @@ void mightguy_state::mightguy(machine_config &config) YM3526(config, "ymsnd", AUDIOCPU_CLOCK/2).add_route(ALL_OUTPUTS, "mono", 1.0); /* unknown divider */ DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/cosmic.cpp b/src/mame/drivers/cosmic.cpp index c5d5b976777..07a805194d1 100644 --- a/src/mame/drivers/cosmic.cpp +++ b/src/mame/drivers/cosmic.cpp @@ -40,7 +40,6 @@ cosmicg - board can operate in b&w mode if there is no PROM, in this case #include "cpu/tms9900/tms9980a.h" #include "cpu/z80/z80.h" #include "sound/samples.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -1064,8 +1063,6 @@ void cosmic_state::panic(machine_config &config) m_samples->add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void cosmic_state::cosmica(machine_config &config) @@ -1119,8 +1116,6 @@ void cosmic_state::cosmicg(machine_config &config) m_samples->add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // NE556 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); // Other DACs include 3-bit binary-weighted (100K/50K/25K) DAC combined with another NE556 for attack march } @@ -1142,8 +1137,6 @@ void cosmic_state::magspot(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void cosmic_state::devzone(machine_config &config) @@ -1171,8 +1164,6 @@ void cosmic_state::nomnlnd(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/cubeqst.cpp b/src/mame/drivers/cubeqst.cpp index 96a799ac89b..ee4c26987ea 100644 --- a/src/mame/drivers/cubeqst.cpp +++ b/src/mame/drivers/cubeqst.cpp @@ -25,7 +25,6 @@ #include "machine/ldpr8210.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" class cubeqst_state : public driver_device @@ -560,18 +559,13 @@ void cubeqst_state::cubeqst(machine_config &config) m_laserdisc->add_route(0, "lspeaker", 1.0); m_laserdisc->add_route(1, "rspeaker", 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); for (int i = 0; i < 8; i++) { // ad7521jn.2d (59) + cd4051be.1d (24) + 1500pf.c22 (34) + tl074cn.1b (53) + r10k.rn1 (30) AD7521(config, m_dacs[i*2+0], 0).add_route(0, "rspeaker", 0.125); - vref.add_route(0, m_dacs[i*2+0], 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dacs[i*2+0], -1.0, DAC_VREF_NEG_INPUT); // ad7521jn.2d (59) + cd4051be.3d (24) + 1500pf.c13 (34) + tl074cn.3b (53) + r10k.rn3 (30) AD7521(config, m_dacs[i*2+1], 0).add_route(0, "lspeaker", 0.125); - vref.add_route(0, m_dacs[i*2+1], 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dacs[i*2+1], -1.0, DAC_VREF_NEG_INPUT); } } diff --git a/src/mame/drivers/cvs.cpp b/src/mame/drivers/cvs.cpp index a3ebda42db6..5a9a90bb808 100644 --- a/src/mame/drivers/cvs.cpp +++ b/src/mame/drivers/cvs.cpp @@ -97,7 +97,6 @@ Todo & FIXME: #include "emu.h" #include "includes/cvs.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -1018,12 +1017,6 @@ void cvs_state::cvs(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC DAC_4BIT_R2R(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC DAC_1BIT(config, m_dac3, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac3", 1.0, DAC_VREF_POS_INPUT); TMS5100(config, m_tms5110, XTAL(640'000)); m_tms5110->data().set(FUNC(cvs_state::speech_rom_read_bit)); diff --git a/src/mame/drivers/cxg_ch2001.cpp b/src/mame/drivers/cxg_ch2001.cpp index be9b15e54ed..eb12c4f9b26 100644 --- a/src/mame/drivers/cxg_ch2001.cpp +++ b/src/mame/drivers/cxg_ch2001.cpp @@ -25,7 +25,6 @@ Hardware notes: #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -201,7 +200,6 @@ void ch2001_state::ch2001(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/cxg_dominator.cpp b/src/mame/drivers/cxg_dominator.cpp index 94571012159..ccd521273f4 100644 --- a/src/mame/drivers/cxg_dominator.cpp +++ b/src/mame/drivers/cxg_dominator.cpp @@ -24,7 +24,6 @@ This engine was also used in the newer Mephisto Modena. #include "machine/nvram.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "video/lc7582.h" #include "speaker.h" @@ -223,7 +222,6 @@ void dominator_state::dominator(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/cxg_scptchess.cpp b/src/mame/drivers/cxg_scptchess.cpp index 761343029d6..a0b0931c177 100644 --- a/src/mame/drivers/cxg_scptchess.cpp +++ b/src/mame/drivers/cxg_scptchess.cpp @@ -53,7 +53,6 @@ HD44801C89 used in: #include "cpu/hmcs40/hmcs40.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -219,7 +218,6 @@ void scptchess_state::scptchess_v1(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void scptchess_state::prtchess_v2(machine_config &config) diff --git a/src/mame/drivers/cxg_sphinx40.cpp b/src/mame/drivers/cxg_sphinx40.cpp index 67e006d62fc..8735fdce5dc 100644 --- a/src/mame/drivers/cxg_sphinx40.cpp +++ b/src/mame/drivers/cxg_sphinx40.cpp @@ -48,7 +48,6 @@ LCD module #include "machine/nvram.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "video/hd61603.h" #include "speaker.h" @@ -304,7 +303,6 @@ void sphinx40_state::sphinx40(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/cyberbal.cpp b/src/mame/drivers/cyberbal.cpp index 60784857c68..b856ea9e91b 100644 --- a/src/mame/drivers/cyberbal.cpp +++ b/src/mame/drivers/cyberbal.cpp @@ -26,7 +26,6 @@ #include "machine/eeprompar.h" #include "machine/watchdog.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "rendlay.h" diff --git a/src/mame/drivers/debut.cpp b/src/mame/drivers/debut.cpp index 50b727ac677..50c7922998f 100644 --- a/src/mame/drivers/debut.cpp +++ b/src/mame/drivers/debut.cpp @@ -47,7 +47,6 @@ keypad legend: #include "cpu/i86/i86.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -249,7 +248,6 @@ void debut_state::debutm(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/dectalk.cpp b/src/mame/drivers/dectalk.cpp index 3043b3d8c80..3c9685f2044 100644 --- a/src/mame/drivers/dectalk.cpp +++ b/src/mame/drivers/dectalk.cpp @@ -245,7 +245,6 @@ dgc (dg(no!spam)cx@mac.com) #include "machine/mc68681.h" #include "machine/x2212.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -905,9 +904,6 @@ void dectalk_state::dectalk(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); AD7541(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.9); // ad7541.e107 (E88 10KHz OSC, handled by timer) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* Y2 is a 3.579545 MHz xtal for the dtmf decoder chip */ diff --git a/src/mame/drivers/esripsys.cpp b/src/mame/drivers/esripsys.cpp index 609d207bbc7..edaa9ff6ca3 100644 --- a/src/mame/drivers/esripsys.cpp +++ b/src/mame/drivers/esripsys.cpp @@ -33,7 +33,6 @@ #include "cpu/m6809/m6809.h" #include "machine/6840ptm.h" #include "machine/nvram.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -700,11 +699,8 @@ void esripsys_state::esripsys(machine_config &config) SPEAKER(config, "speaker").front_center(); MC3410(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - mc3408_device &dacvol(MC3408(config, "dacvol", 0)); // unknown DAC - dacvol.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - dacvol.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT); + mc3408_device &dacvol(MC3408(config, "dacvol", 0)); + dacvol.set_output_range(0, 1).add_route(0, m_dac, 1.0, DAC_INPUT_RANGE_HI).add_route(0, m_dac, -1.0, DAC_INPUT_RANGE_LO); // unknown DAC TMS5220(config, m_tms, 640000).add_route(ALL_OUTPUTS, "speaker", 1.0); diff --git a/src/mame/drivers/exterm.cpp b/src/mame/drivers/exterm.cpp index fd1020d4374..c037bcdbe69 100644 --- a/src/mame/drivers/exterm.cpp +++ b/src/mame/drivers/exterm.cpp @@ -69,7 +69,6 @@ #include "machine/nvram.h" #include "machine/watchdog.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -416,9 +415,10 @@ void exterm_state::exterm(machine_config &config) SPEAKER(config, "speaker").front_center(); AD7528(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // ad7528j.e2 - AD7528(config, "dacvol", 0).add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // ad7528j.e2 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT); + AD7528(config, "dacvol", 0) + .set_output_range(0, 1) + .add_route(0, "dac", 1.0, DAC_INPUT_RANGE_HI) + .add_route(0, "dac", -1.0, DAC_INPUT_RANGE_LO); // ad7528j.e2 YM2151(config, m_ym2151, 4000000).add_route(ALL_OUTPUTS, "speaker", 1.0); } diff --git a/src/mame/drivers/fantland.cpp b/src/mame/drivers/fantland.cpp index 97fa51eb099..5098ff18b66 100644 --- a/src/mame/drivers/fantland.cpp +++ b/src/mame/drivers/fantland.cpp @@ -49,7 +49,6 @@ Year + Game Main CPU Sound CPU Sound Video #include "sound/3526intf.h" #include "sound/dac.h" #include "sound/sn76496.h" -#include "sound/volt_reg.h" #include "sound/ym2151.h" #include "speaker.h" @@ -839,9 +838,6 @@ void fantland_state::fantland(machine_config &config) YM2151(config, "ymsnd", 3000000).add_route(0, "speaker", 0.35).add_route(1, "speaker", 0.35); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/fidel_as12.cpp b/src/mame/drivers/fidel_as12.cpp index 2ced7866196..4d72347dba2 100644 --- a/src/mame/drivers/fidel_as12.cpp +++ b/src/mame/drivers/fidel_as12.cpp @@ -22,7 +22,6 @@ magnetic chess board sensors. See fidel_sc12.cpp for a more technical descriptio #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -213,7 +212,6 @@ void as12_state::as12(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "fidel_scc"); diff --git a/src/mame/drivers/fidel_card.cpp b/src/mame/drivers/fidel_card.cpp index 9717115c937..14ce3145ea6 100644 --- a/src/mame/drivers/fidel_card.cpp +++ b/src/mame/drivers/fidel_card.cpp @@ -176,7 +176,6 @@ Two card decks exist (red and blue), each has the same set of barcodes. #include "machine/timer.h" #include "sound/dac.h" #include "sound/s14001a.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -609,7 +608,6 @@ void card_state::brc(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void card_state::vbrc(machine_config &config) diff --git a/src/mame/drivers/fidel_cc7.cpp b/src/mame/drivers/fidel_cc7.cpp index 1c4eaa3a279..a8815f53bee 100644 --- a/src/mame/drivers/fidel_cc7.cpp +++ b/src/mame/drivers/fidel_cc7.cpp @@ -46,7 +46,6 @@ D0-D3: keypad row #include "emu.h" #include "cpu/z80/z80.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -242,7 +241,6 @@ void bcc_state::bcc(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/fidel_chesster.cpp b/src/mame/drivers/fidel_chesster.cpp index 46f23745f26..ecf21f42d4a 100644 --- a/src/mame/drivers/fidel_chesster.cpp +++ b/src/mame/drivers/fidel_chesster.cpp @@ -31,7 +31,6 @@ the S14001A in the 70s), this time a 65C02 software solution. #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -207,9 +206,6 @@ void chesster_state::chesster(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.5); // m74hc374b1.ic1 + 8l513_02.z2 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void chesster_state::kishon(machine_config &config) diff --git a/src/mame/drivers/fidel_csc.cpp b/src/mame/drivers/fidel_csc.cpp index 447d6faa8e4..3c99441987c 100644 --- a/src/mame/drivers/fidel_csc.cpp +++ b/src/mame/drivers/fidel_csc.cpp @@ -205,7 +205,6 @@ clicking on the game board. #include "machine/sensorboard.h" #include "sound/s14001a.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -658,7 +657,6 @@ void csc_state::csc(machine_config &config) m_speech->add_route(ALL_OUTPUTS, "speaker", 0.75); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void csc_state::csce(machine_config &config) @@ -710,7 +708,6 @@ void csc_state::rsc(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/fidel_dames.cpp b/src/mame/drivers/fidel_dames.cpp index 35b24e8cb78..2ddb59dbc3b 100644 --- a/src/mame/drivers/fidel_dames.cpp +++ b/src/mame/drivers/fidel_dames.cpp @@ -27,7 +27,6 @@ TODO: #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -252,7 +251,6 @@ void dsc_state::dsc(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/fidel_desdis.cpp b/src/mame/drivers/fidel_desdis.cpp index 203121600a9..a00fd5b207d 100644 --- a/src/mame/drivers/fidel_desdis.cpp +++ b/src/mame/drivers/fidel_desdis.cpp @@ -42,7 +42,6 @@ Designer Mach IV Master 2325 (model 6129) overview: #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -313,7 +312,6 @@ void desdis_state::fdes2100d(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void desdis_state::fdes2000d(machine_config &config) diff --git a/src/mame/drivers/fidel_eag68k.cpp b/src/mame/drivers/fidel_eag68k.cpp index a4e629e0a98..016d1071ae4 100644 --- a/src/mame/drivers/fidel_eag68k.cpp +++ b/src/mame/drivers/fidel_eag68k.cpp @@ -168,7 +168,6 @@ B0000x-xxxxxx: see V7, -800000 #include "machine/timer.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -575,7 +574,6 @@ void excel68k_state::fex68k(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void excel68k_state::fex68km2(machine_config &config) @@ -632,7 +630,6 @@ void eag_state::eag_base(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "fidel_scc"); diff --git a/src/mame/drivers/fidel_elite.cpp b/src/mame/drivers/fidel_elite.cpp index 975ac193fa6..8a28145551e 100644 --- a/src/mame/drivers/fidel_elite.cpp +++ b/src/mame/drivers/fidel_elite.cpp @@ -68,7 +68,6 @@ uninteresting to emulate as separate drivers. #include "machine/timer.h" #include "sound/s14001a.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -489,7 +488,6 @@ void elite_state::pc(machine_config &config) m_speech->add_route(ALL_OUTPUTS, "speaker", 0.75); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "fidel_scc"); diff --git a/src/mame/drivers/fidel_excel.cpp b/src/mame/drivers/fidel_excel.cpp index 20df342796f..b165d719f52 100644 --- a/src/mame/drivers/fidel_excel.cpp +++ b/src/mame/drivers/fidel_excel.cpp @@ -137,7 +137,6 @@ Designer 2100 (model 6103): exactly same, but running at 5MHz #include "machine/timer.h" #include "sound/s14001a.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -416,7 +415,6 @@ void excel_state::fexcel(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void excel_state::fexcel4(machine_config &config) diff --git a/src/mame/drivers/fidel_msc.cpp b/src/mame/drivers/fidel_msc.cpp index 4b4f4185a23..6ae9d0a97cf 100644 --- a/src/mame/drivers/fidel_msc.cpp +++ b/src/mame/drivers/fidel_msc.cpp @@ -29,7 +29,6 @@ and one for MCS48. A12 is forced high or low to select the bank. #include "cpu/z8/z8.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -209,7 +208,6 @@ void msc_state::msc(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "fidel_msc"); diff --git a/src/mame/drivers/fidel_phantom.cpp b/src/mame/drivers/fidel_phantom.cpp index 7279459fc15..66e98bf11a0 100644 --- a/src/mame/drivers/fidel_phantom.cpp +++ b/src/mame/drivers/fidel_phantom.cpp @@ -32,7 +32,6 @@ TODO: #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -407,7 +406,6 @@ void phantom_state::fphantom(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/fidel_sc12.cpp b/src/mame/drivers/fidel_sc12.cpp index 28d31f66c50..594ef8c403a 100644 --- a/src/mame/drivers/fidel_sc12.cpp +++ b/src/mame/drivers/fidel_sc12.cpp @@ -52,7 +52,6 @@ If control Q4 is set, printer data can be read from I0. #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -232,7 +231,6 @@ void sc12_state::sc12(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "fidel_scc"); diff --git a/src/mame/drivers/fidel_sc6.cpp b/src/mame/drivers/fidel_sc6.cpp index 47c4b616a39..58918df1872 100644 --- a/src/mame/drivers/fidel_sc6.cpp +++ b/src/mame/drivers/fidel_sc6.cpp @@ -72,7 +72,6 @@ To summarize, known MCU chip ROM serials+year: #include "cpu/mcs48/mcs48.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -297,7 +296,6 @@ void sc6_state::gambit(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void sc6_state::msc(machine_config &config) diff --git a/src/mame/drivers/fidel_sc8.cpp b/src/mame/drivers/fidel_sc8.cpp index 8a69fede6bc..7356031d6af 100644 --- a/src/mame/drivers/fidel_sc8.cpp +++ b/src/mame/drivers/fidel_sc8.cpp @@ -26,7 +26,6 @@ Hardware notes: #include "cpu/z80/z80.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -179,7 +178,6 @@ void scc_state::scc(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/fidel_sc9.cpp b/src/mame/drivers/fidel_sc9.cpp index 21188956e39..efee97d6483 100644 --- a/src/mame/drivers/fidel_sc9.cpp +++ b/src/mame/drivers/fidel_sc9.cpp @@ -39,7 +39,6 @@ IRQ and write strobe are unused. Maximum known size is 16KB. #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -279,7 +278,6 @@ void sc9_state::sc9d(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "fidel_scc"); diff --git a/src/mame/drivers/finalizr.cpp b/src/mame/drivers/finalizr.cpp index dedadfa9afd..787d4d8f0bb 100644 --- a/src/mame/drivers/finalizr.cpp +++ b/src/mame/drivers/finalizr.cpp @@ -22,7 +22,6 @@ #include "machine/watchdog.h" #include "sound/dac.h" #include "sound/sn76496.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -299,9 +298,6 @@ void finalizr_state::finalizr(machine_config &config) SN76489A(config, "snsnd", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.75); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.325); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/flstory.cpp b/src/mame/drivers/flstory.cpp index e27ac29e8d6..929c580f122 100644 --- a/src/mame/drivers/flstory.cpp +++ b/src/mame/drivers/flstory.cpp @@ -17,7 +17,6 @@ #include "cpu/m6805/m6805.h" #include "cpu/z80/z80.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -797,9 +796,6 @@ void flstory_state::common(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void flstory_state::flstory(machine_config &config) diff --git a/src/mame/drivers/galaxian.cpp b/src/mame/drivers/galaxian.cpp index cd93c2042d5..d780d97acc4 100644 --- a/src/mame/drivers/galaxian.cpp +++ b/src/mame/drivers/galaxian.cpp @@ -664,7 +664,6 @@ TODO: #include "machine/nvram.h" #include "machine/watchdog.h" #include "sound/sn76496.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -6455,9 +6454,6 @@ void galaxian_state::kingball(machine_config &config) /* sound hardware */ DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.53); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -6683,9 +6679,6 @@ void galaxian_state::sfx(machine_config &config) /* DAC for the sample player */ DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // 16-pin IC (not identified by schematics) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/galeb.cpp b/src/mame/drivers/galeb.cpp index 091a1a362ee..c792c8e588b 100644 --- a/src/mame/drivers/galeb.cpp +++ b/src/mame/drivers/galeb.cpp @@ -60,7 +60,6 @@ ToDo: #include "emu.h" #include "cpu/m6502/m6502.h" #include "machine/clock.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" #include "machine/6850acia.h" @@ -321,8 +320,6 @@ void galeb_state::galeb(machine_config &config) /* audio hardware */ SPEAKER(config, "mono").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "mono", 0.0625); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); clock_device &acia_clock(CLOCK(config, "acia_clock", 4'800)); // 300 baud x 16(divider) = 4800 acia_clock.signal_handler().set(m_acia, FUNC(acia6850_device::write_txc)); diff --git a/src/mame/drivers/galivan.cpp b/src/mame/drivers/galivan.cpp index 5a3f6b7ea8e..e9134e3dc6f 100644 --- a/src/mame/drivers/galivan.cpp +++ b/src/mame/drivers/galivan.cpp @@ -32,7 +32,6 @@ TODO #include "cpu/z80/z80.h" #include "sound/3526intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -475,9 +474,6 @@ void galivan_state::galivan(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void dangarj_state::dangarj(machine_config &config) @@ -522,9 +518,6 @@ void galivan_state::ninjemak(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void galivan_state::youmab(machine_config &config) diff --git a/src/mame/drivers/gamecom.cpp b/src/mame/drivers/gamecom.cpp index 3cef1677970..5ea07b16cdd 100644 --- a/src/mame/drivers/gamecom.cpp +++ b/src/mame/drivers/gamecom.cpp @@ -32,7 +32,6 @@ Game Status: #include "emu.h" #include "includes/gamecom.h" -#include "sound/volt_reg.h" #include "screen.h" #include "softlist.h" #include "speaker.h" @@ -286,10 +285,6 @@ void gamecom_state::gamecom(machine_config &config) DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC (Digital audio) DAC_4BIT_R2R(config, m_dac0, 0).add_route(ALL_OUTPUTS, "speaker", 0.05); // unknown DAC (Frequency modulation) DAC_4BIT_R2R(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.05); // unknown DAC (Frequency modulation) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac0", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot1", generic_linear_slot, "gamecom_cart", "bin,tgc").set_device_load(FUNC(gamecom_state::cart1_load)); diff --git a/src/mame/drivers/gameking.cpp b/src/mame/drivers/gameking.cpp index 0e02f8f42a5..469e7fb3bc7 100644 --- a/src/mame/drivers/gameking.cpp +++ b/src/mame/drivers/gameking.cpp @@ -24,7 +24,6 @@ #include "bus/generic/slot.h" #include "bus/generic/carts.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "softlist.h" @@ -306,9 +305,6 @@ void gameking_state::gameking(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R_TWOS_COMPLEMENT(config, "dac", 0).add_route(0, "speaker", 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "gameking_cart", "bin").set_device_load(FUNC(gameking_state::cart_load)); diff --git a/src/mame/drivers/gba.cpp b/src/mame/drivers/gba.cpp index dcd863fcf9a..76e8e526333 100644 --- a/src/mame/drivers/gba.cpp +++ b/src/mame/drivers/gba.cpp @@ -17,7 +17,6 @@ #include "cpu/arm7/arm7.h" #include "cpu/arm7/arm7core.h" #include "sound/gb.h" -#include "sound/volt_reg.h" #include "softlist.h" #include "speaker.h" @@ -1452,11 +1451,6 @@ void gba_state::gbadv(machine_config &config) DAC_8BIT_R2R_TWOS_COMPLEMENT(config, m_rdaca, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC DAC_8BIT_R2R_TWOS_COMPLEMENT(config, m_ldacb, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC DAC_8BIT_R2R_TWOS_COMPLEMENT(config, m_rdacb, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldaca", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldaca", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdaca", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdaca", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "ldacb", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldacb", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdacb", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdacb", -1.0, DAC_VREF_NEG_INPUT); GBA_CART_SLOT(config, m_cart, gba_cart, nullptr); SOFTWARE_LIST(config, "cart_list").set_original("gba"); diff --git a/src/mame/drivers/gei.cpp b/src/mame/drivers/gei.cpp index fa12d4e20cf..ad0e966b8c1 100644 --- a/src/mame/drivers/gei.cpp +++ b/src/mame/drivers/gei.cpp @@ -123,7 +123,6 @@ NOTE: Trivia Question ROM names are the internal names used. IE: read from the f #include "machine/nvram.h" #include "machine/ticket.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -1058,8 +1057,6 @@ void gei_state::getrivia(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void gei_state::findout(machine_config &config) diff --git a/src/mame/drivers/gigatron.cpp b/src/mame/drivers/gigatron.cpp index a6c86d2df37..5e38c1b52d9 100644 --- a/src/mame/drivers/gigatron.cpp +++ b/src/mame/drivers/gigatron.cpp @@ -13,7 +13,6 @@ #include "cpu/gigatron/gigatron.h" #include "screen.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "gigatron.lh" @@ -247,9 +246,6 @@ void gigatron_state::gigatron(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_4BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( gigatron ) diff --git a/src/mame/drivers/go2000.cpp b/src/mame/drivers/go2000.cpp index b2c450424af..7e732905504 100644 --- a/src/mame/drivers/go2000.cpp +++ b/src/mame/drivers/go2000.cpp @@ -36,7 +36,6 @@ Notes: #include "cpu/z80/z80.h" #include "machine/gen_latch.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -372,9 +371,6 @@ void go2000_state::go2000(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(0, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( go2000 ) diff --git a/src/mame/drivers/gp32.cpp b/src/mame/drivers/gp32.cpp index 189babc7069..120093ef053 100644 --- a/src/mame/drivers/gp32.cpp +++ b/src/mame/drivers/gp32.cpp @@ -36,7 +36,6 @@ #include "cpu/arm7/arm7.h" #include "cpu/arm7/arm7core.h" -#include "sound/volt_reg.h" #include "softlist.h" #include "speaker.h" @@ -1703,9 +1702,6 @@ void gp32_state::gp32(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // unknown DAC DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); diff --git a/src/mame/drivers/hankin.cpp b/src/mame/drivers/hankin.cpp index d676724c705..3bacccf4218 100644 --- a/src/mame/drivers/hankin.cpp +++ b/src/mame/drivers/hankin.cpp @@ -22,7 +22,6 @@ ToDo: #include "machine/6821pia.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "hankin.lh" @@ -489,9 +488,6 @@ void hankin_state::hankin(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* Devices */ PIA6821(config, m_ic10, 0); diff --git a/src/mame/drivers/hapyfish.cpp b/src/mame/drivers/hapyfish.cpp index 01ffcd813d1..05e9bc20df0 100644 --- a/src/mame/drivers/hapyfish.cpp +++ b/src/mame/drivers/hapyfish.cpp @@ -54,7 +54,6 @@ #include "machine/s3c2440.h" #include "machine/smartmed.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -530,9 +529,6 @@ void hapyfish_state::hapyfish(machine_config &config) SPEAKER(config, "rspeaker").front_right(); UDA1341TS(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // uda1341ts.u12 UDA1341TS(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // uda1341ts.u12 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); S3C2440(config, m_s3c2440, 12000000); m_s3c2440->set_palette_tag("palette"); diff --git a/src/mame/drivers/harddriv.cpp b/src/mame/drivers/harddriv.cpp index 9bea58e1726..5b8e455a45a 100644 --- a/src/mame/drivers/harddriv.cpp +++ b/src/mame/drivers/harddriv.cpp @@ -329,7 +329,6 @@ Notes: #include "machine/timer.h" #include "machine/watchdog.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "racedrivpan.lh" @@ -1622,11 +1621,6 @@ void harddriv_state::ds3(machine_config &config) DAC_16BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // unknown DAC DAC_16BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/hh_cop400.cpp b/src/mame/drivers/hh_cop400.cpp index fd5e02571d6..e1cae755e17 100644 --- a/src/mame/drivers/hh_cop400.cpp +++ b/src/mame/drivers/hh_cop400.cpp @@ -22,7 +22,6 @@ #include "machine/timer.h" #include "sound/spkrdev.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -1552,9 +1551,6 @@ void bship82_state::bship82(machine_config &config) /* sound hardware */ SPEAKER(config, "mono").front_center(); DAC_4BIT_BINARY_WEIGHTED_SIGN_MAGNITUDE(config, "dac").add_route(ALL_OUTPUTS, "mono", 0.125); // see above - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } // roms @@ -1790,9 +1786,6 @@ void vidchal_state::vidchal(machine_config &config) /* sound hardware */ SPEAKER(config, "mono").front_center(); DAC_4BIT_BINARY_WEIGHTED_SIGN_MAGNITUDE(config, "dac").add_route(ALL_OUTPUTS, "mono", 0.125); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } // roms diff --git a/src/mame/drivers/homedata.cpp b/src/mame/drivers/homedata.cpp index 0ee73a93b0a..4ce82246b1f 100644 --- a/src/mame/drivers/homedata.cpp +++ b/src/mame/drivers/homedata.cpp @@ -239,7 +239,6 @@ Custom: GX61A01 #include "cpu/upd7810/upd7810.h" #include "cpu/z80/z80.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -1299,9 +1298,6 @@ void homedata_state::mrokumei(machine_config &config) m_sn->add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -1357,9 +1353,6 @@ void homedata_state::reikaids(machine_config &config) m_ymsnd->add_route(3, "speaker", 1.0); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -1413,9 +1406,6 @@ void homedata_state::pteacher(machine_config &config) m_sn->add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void homedata_state::jogakuen(machine_config &config) diff --git a/src/mame/drivers/hp48.cpp b/src/mame/drivers/hp48.cpp index da3f184b779..85f2607f514 100644 --- a/src/mame/drivers/hp48.cpp +++ b/src/mame/drivers/hp48.cpp @@ -12,7 +12,6 @@ #include "includes/hp48.h" #include "machine/nvram.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -1170,8 +1169,6 @@ void hp48_state::hp48_common(machine_config &config) /* sound */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void hp48_state::hp48gx(machine_config &config) diff --git a/src/mame/drivers/hp80.cpp b/src/mame/drivers/hp80.cpp index 7daea00a448..c45365205c2 100644 --- a/src/mame/drivers/hp80.cpp +++ b/src/mame/drivers/hp80.cpp @@ -78,7 +78,6 @@ #include "machine/timer.h" #include "sound/beep.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "machine/1ma6.h" #include "machine/hp80_optrom.h" #include "machine/ram.h" @@ -273,8 +272,6 @@ void hp80_base_state::hp80_base(machine_config &config) // Beeper SPEAKER(config, "mono").front_center(); DAC_1BIT(config, m_dac , 0).add_route(ALL_OUTPUTS, "mono", 0.5, AUTO_ALLOC_INPUT, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); BEEP(config, m_beep, CPU_CLOCK / 512).add_route(ALL_OUTPUTS, "mono", 0.5, AUTO_ALLOC_INPUT, 0); // Optional ROMs diff --git a/src/mame/drivers/hp95lx.cpp b/src/mame/drivers/hp95lx.cpp index 2c8df7ad204..daf43bacd8f 100644 --- a/src/mame/drivers/hp95lx.cpp +++ b/src/mame/drivers/hp95lx.cpp @@ -66,7 +66,6 @@ #include "machine/bankdev.h" #include "machine/ram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "emupal.h" @@ -753,10 +752,6 @@ void hp95lx_state::hp95lx(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); - // XXX When the AC adapter is plugged in, the LCD refresh rate is 73.14 Hz. // XXX When the AC adapter is not plugged in (ie, running off of batteries) the refresh rate is 56.8 Hz. SCREEN(config, m_screen, SCREEN_TYPE_LCD, rgb_t::white()); diff --git a/src/mame/drivers/hp_ipc.cpp b/src/mame/drivers/hp_ipc.cpp index 3b14722a88a..c963b061497 100644 --- a/src/mame/drivers/hp_ipc.cpp +++ b/src/mame/drivers/hp_ipc.cpp @@ -372,7 +372,6 @@ Software to look for #include "machine/cop452.h" #include "speaker.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "machine/input_merger.h" #include "bus/hp_ipc_io/hp_ipc_io.h" @@ -822,8 +821,6 @@ void hp_ipc_state::hp_ipc_base(machine_config &config) COP452(config , m_spkr , 2_MHz_XTAL); SPEAKER(config, "mono").front_center(); DAC_1BIT(config, m_dac , 0).add_route(ALL_OUTPUTS, "mono", 0.5, AUTO_ALLOC_INPUT, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); m_spkr->oa_w().set(m_dac , FUNC(dac_1bit_device::write)); // IO slots diff --git a/src/mame/drivers/hyhoo.cpp b/src/mame/drivers/hyhoo.cpp index 83ffa054148..7b6a6e9803c 100644 --- a/src/mame/drivers/hyhoo.cpp +++ b/src/mame/drivers/hyhoo.cpp @@ -30,7 +30,6 @@ Memo: #include "machine/nvram.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -250,9 +249,6 @@ void hyhoo_state::hyhoo(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/hyperspt.cpp b/src/mame/drivers/hyperspt.cpp index 7c4511ef6a2..86c972f1faa 100644 --- a/src/mame/drivers/hyperspt.cpp +++ b/src/mame/drivers/hyperspt.cpp @@ -21,7 +21,6 @@ Based on drivers from Juno First emulator by Chris Hardy (chrish@kcbbs.gen.nz) #include "machine/konami1.h" #include "machine/nvram.h" #include "machine/watchdog.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -335,9 +334,6 @@ void hyperspt_state::hyperspt(machine_config &config) TRACKFLD_AUDIO(config, m_soundbrd, 0, m_audiocpu, m_vlm); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SN76496(config, m_sn, XTAL(14'318'181)/8); /* verified on pcb */ m_sn->add_route(ALL_OUTPUTS, "speaker", 1.0); diff --git a/src/mame/drivers/instantm.cpp b/src/mame/drivers/instantm.cpp index 582c836b9e2..62da3a350fc 100644 --- a/src/mame/drivers/instantm.cpp +++ b/src/mame/drivers/instantm.cpp @@ -28,7 +28,6 @@ At the moment it simply outputs all the speech strings, one after the other, the #include "cpu/z80/z80.h" #include "machine/clock.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" class instantm_state : public driver_device @@ -142,9 +141,6 @@ void instantm_state::instantm(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/jaguar.cpp b/src/mame/drivers/jaguar.cpp index f8a01d11e76..360d3553c0c 100644 --- a/src/mame/drivers/jaguar.cpp +++ b/src/mame/drivers/jaguar.cpp @@ -349,7 +349,6 @@ Notes: #include "machine/watchdog.h" #include "machine/vt83c461.h" #include "sound/cdda.h" -#include "sound/volt_reg.h" #include "cdrom.h" #include "softlist.h" #include "speaker.h" @@ -1803,11 +1802,6 @@ void jaguar_state::cojagr3k(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // unknown DAC DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); // TODO: subwoofer speaker } @@ -1858,11 +1852,6 @@ void jaguar_state::jaguar(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // unknown DAC DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); /* quickload */ QUICKLOAD(config, "quickload", "abs,bin,cof,jag,prg").set_load_callback(FUNC(jaguar_state::quickload_cb)); diff --git a/src/mame/drivers/jankenmn.cpp b/src/mame/drivers/jankenmn.cpp index 39a26cde08f..4ce86c50ef8 100644 --- a/src/mame/drivers/jankenmn.cpp +++ b/src/mame/drivers/jankenmn.cpp @@ -151,7 +151,6 @@ #include "machine/z80ctc.h" #include "machine/i8255.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "jankenmn.lh" @@ -412,9 +411,6 @@ void jankenmn_state::jankenmn(machine_config &config) SPEAKER(config, "speaker").front_center(); AD7523(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/juicebox.cpp b/src/mame/drivers/juicebox.cpp index f4f95cfcbcf..bd8cf9f9bdb 100644 --- a/src/mame/drivers/juicebox.cpp +++ b/src/mame/drivers/juicebox.cpp @@ -13,7 +13,6 @@ #include "machine/s3c44b0.h" #include "machine/smartmed.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "softlist.h" @@ -324,9 +323,6 @@ void juicebox_state::juicebox(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); S3C44B0(config, m_s3c44b0, 10000000); m_s3c44b0->set_cpu("maincpu"); diff --git a/src/mame/drivers/junofrst.cpp b/src/mame/drivers/junofrst.cpp index b4c837a21f4..2c77f0ef41a 100644 --- a/src/mame/drivers/junofrst.cpp +++ b/src/mame/drivers/junofrst.cpp @@ -93,7 +93,6 @@ Blitter source graphics #include "sound/ay8910.h" #include "sound/dac.h" #include "sound/flt_rc.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -451,9 +450,6 @@ void junofrst_state::junofrst(machine_config &config) aysnd.add_route(2, "filter.0.2", 0.30); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // 100K (R56-63)/200K (R64-71) ladder network - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); FILTER_RC(config, m_filter_0_0).add_route(ALL_OUTPUTS, "speaker", 1.0); FILTER_RC(config, m_filter_0_1).add_route(ALL_OUTPUTS, "speaker", 1.0); diff --git a/src/mame/drivers/kchamp.cpp b/src/mame/drivers/kchamp.cpp index ae9969334e7..e2ec84fc6e8 100644 --- a/src/mame/drivers/kchamp.cpp +++ b/src/mame/drivers/kchamp.cpp @@ -69,7 +69,6 @@ IO ports and memory map changes. Dip switches differ too. #include "cpu/z80/z80.h" #include "machine/74259.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -503,9 +502,6 @@ void kchamp_state::kchamp(machine_config &config) AY8910(config, m_ay[1], XTAL(12'000'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.3); /* Guess based on actual pcb recordings of karatedo */ DAC08(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // IC11 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void kchamp_state::kchamp_arfyc(machine_config &config) diff --git a/src/mame/drivers/kingobox.cpp b/src/mame/drivers/kingobox.cpp index 370912478d8..a380c9d5cd0 100644 --- a/src/mame/drivers/kingobox.cpp +++ b/src/mame/drivers/kingobox.cpp @@ -24,7 +24,6 @@ Main CPU: #include "machine/clock.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -512,9 +511,6 @@ void kingofb_state::kingofb(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); // 100K (R30-44 even)/200K (R31-45 odd) ladder network - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -569,9 +565,6 @@ void kingofb_state::ringking(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/konamim2.cpp b/src/mame/drivers/konamim2.cpp index f08f21183ae..2ee90e0832a 100644 --- a/src/mame/drivers/konamim2.cpp +++ b/src/mame/drivers/konamim2.cpp @@ -223,7 +223,6 @@ Notes: #include "machine/eepromser.h" #include "machine/timekpr.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "sound/ymz280b.h" #include "cdrom.h" #include "debug/debugcon.h" @@ -1159,12 +1158,6 @@ void konamim2_state::konamim2(machine_config &config) // TODO! DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); - - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/ksayakyu.cpp b/src/mame/drivers/ksayakyu.cpp index 8829ee9fdfb..858bc0323a7 100644 --- a/src/mame/drivers/ksayakyu.cpp +++ b/src/mame/drivers/ksayakyu.cpp @@ -70,7 +70,6 @@ SRAM: #include "cpu/z80/z80.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -300,9 +299,6 @@ void ksayakyu_state::ksayakyu(machine_config &config) ay2.add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_6BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( ksayakyu ) diff --git a/src/mame/drivers/ladyfrog.cpp b/src/mame/drivers/ladyfrog.cpp index 4f510ee8cb3..b7afba6d1a6 100644 --- a/src/mame/drivers/ladyfrog.cpp +++ b/src/mame/drivers/ladyfrog.cpp @@ -57,7 +57,6 @@ Notes: #include "cpu/z80/z80.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -339,9 +338,6 @@ void ladyfrog_state::ladyfrog(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void ladyfrog_state::toucheme(machine_config &config) diff --git a/src/mame/drivers/laserbas.cpp b/src/mame/drivers/laserbas.cpp index 8412283fcac..cca695f5a07 100644 --- a/src/mame/drivers/laserbas.cpp +++ b/src/mame/drivers/laserbas.cpp @@ -64,7 +64,6 @@ expected: 43 FB CC 9A D4 23 6C 01 3E <- From ROM 4 #include "machine/pit8253.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "emupal.h" #include "screen.h" @@ -412,13 +411,6 @@ void laserbas_state::laserbas(machine_config &config) DAC_4BIT_R2R(config, m_dac[3], 0).add_route(ALL_OUTPUTS, "speaker", 0.16); DAC_4BIT_R2R(config, m_dac[4], 0).add_route(ALL_OUTPUTS, "speaker", 0.16); DAC_4BIT_R2R(config, m_dac[5], 0).add_route(ALL_OUTPUTS, "speaker", 0.16); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac3", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac3", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac4", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac4", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac5", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac5", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac6", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac6", -1.0, DAC_VREF_NEG_INPUT); } /* diff --git a/src/mame/drivers/lasso.cpp b/src/mame/drivers/lasso.cpp index 01345292238..f63457cef19 100644 --- a/src/mame/drivers/lasso.cpp +++ b/src/mame/drivers/lasso.cpp @@ -37,7 +37,6 @@ DIP locations verified for: #include "cpu/z80/z80.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -571,9 +570,6 @@ void lasso_state::wwjgtin(machine_config &config) /* sound hardware */ DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void lasso_state::pinbo(machine_config &config) diff --git a/src/mame/drivers/lazercmd.cpp b/src/mame/drivers/lazercmd.cpp index c3247ab40d5..ee01c0edece 100644 --- a/src/mame/drivers/lazercmd.cpp +++ b/src/mame/drivers/lazercmd.cpp @@ -235,7 +235,6 @@ #include "emu.h" #include "includes/lazercmd.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -656,11 +655,6 @@ void lazercmd_state::lazercmd(machine_config &config) DAC_1BIT(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); DAC_1BIT(config, m_dac3, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac3", 1.0, DAC_VREF_POS_INPUT); } @@ -692,9 +686,6 @@ void lazercmd_state::medlanes(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); DAC_1BIT(config, m_dac3, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac3", 1.0, DAC_VREF_POS_INPUT); } @@ -726,9 +717,6 @@ void lazercmd_state::bbonk(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); DAC_1BIT(config, m_dac3, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac3", 1.0, DAC_VREF_POS_INPUT); } /*************************************************************************** diff --git a/src/mame/drivers/leland.cpp b/src/mame/drivers/leland.cpp index f7536a8cdde..3e763debcd5 100644 --- a/src/mame/drivers/leland.cpp +++ b/src/mame/drivers/leland.cpp @@ -64,7 +64,6 @@ #include "cpu/z80/z80.h" #include "machine/nvram.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -1015,9 +1014,6 @@ void leland_state::leland(machine_config &config) DAC_8BIT_BINARY_WEIGHTED(config, m_dac[0], 0).add_route(ALL_OUTPUTS, "speaker", 0.0625); // ls374.u79 + r17-r23 (24k,12k,6.2k,3k,1.5k,750,390,180) DAC_8BIT_BINARY_WEIGHTED(config, m_dac[1], 0).add_route(ALL_OUTPUTS, "speaker", 0.0625); // ls374.u88 + r27-r34 (24k,12k,6.2k,3k,1.5k,750,390,180) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac0", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/lft_chiptune.cpp b/src/mame/drivers/lft_chiptune.cpp index 69adc996446..067945c4e2e 100644 --- a/src/mame/drivers/lft_chiptune.cpp +++ b/src/mame/drivers/lft_chiptune.cpp @@ -9,7 +9,6 @@ #include "emu.h" #include "cpu/avr8/avr8.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #define MASTER_CLOCK 8000000 @@ -72,9 +71,6 @@ void lft_chiptune_state::chiptune(machine_config &config) /* sound hardware */ SPEAKER(config, "avr8").front_center(); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); DAC_8BIT_R2R(config, m_dac, 0).add_route(0, "avr8", 0.9); } diff --git a/src/mame/drivers/lft_craft.cpp b/src/mame/drivers/lft_craft.cpp index 6f6ce148570..df8d1d0531d 100644 --- a/src/mame/drivers/lft_craft.cpp +++ b/src/mame/drivers/lft_craft.cpp @@ -9,7 +9,6 @@ #include "emu.h" #include "cpu/avr8/avr8.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "emupal.h" #include "speaker.h" @@ -228,9 +227,6 @@ void lft_craft_state::craft(machine_config &config) m_screen->set_screen_update(FUNC(lft_craft_state::screen_update)); SPEAKER(config, "avr8").front_center(); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); DAC_6BIT_R2R(config, m_dac, 0).add_route(0, "avr8", 0.25); // pd1/pd2/pd4/pd5/pd6/pd7 + 2k(x7) + 1k(x5) } diff --git a/src/mame/drivers/lft_phasor.cpp b/src/mame/drivers/lft_phasor.cpp index 2f18af496e3..05284b78247 100644 --- a/src/mame/drivers/lft_phasor.cpp +++ b/src/mame/drivers/lft_phasor.cpp @@ -9,7 +9,6 @@ #include "emu.h" #include "cpu/avr8/avr8.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "emupal.h" #include "speaker.h" @@ -248,9 +247,6 @@ void lft_phasor_state::phasor(machine_config &config) m_screen->set_screen_update(FUNC(lft_phasor_state::screen_update)); SPEAKER(config, "avr8").front_center(); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); DAC_6BIT_R2R(config, m_dac, 0).add_route(0, "avr8", 0.5); } diff --git a/src/mame/drivers/littlerb.cpp b/src/mame/drivers/littlerb.cpp index a6a5e8df2b0..565fdda27b3 100644 --- a/src/mame/drivers/littlerb.cpp +++ b/src/mame/drivers/littlerb.cpp @@ -98,7 +98,6 @@ Dip sw.2 #include "machine/inder_vid.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #define littlerb_printf logerror @@ -314,9 +313,6 @@ void littlerb_state::littlerb(machine_config &config) DAC_8BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC DAC_8BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( littlerb ) diff --git a/src/mame/drivers/looping.cpp b/src/mame/drivers/looping.cpp index b46c1bed6d2..0c0bc5f8091 100644 --- a/src/mame/drivers/looping.cpp +++ b/src/mame/drivers/looping.cpp @@ -64,7 +64,6 @@ L056-6 9A " " VLI-8-4 7A " #include "sound/ay8910.h" #include "sound/dac.h" #include "sound/tms5220.h" -#include "sound/volt_reg.h" #include "video/resnet.h" #include "emupal.h" #include "screen.h" @@ -676,9 +675,6 @@ void looping_state::looping(machine_config &config) m_tms->add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_2BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); ls259_device &sen0(LS259(config, "sen0")); // B3 on sound board sen0.q_out_cb<0>().set(FUNC(looping_state::souint_clr)); diff --git a/src/mame/drivers/luckybal.cpp b/src/mame/drivers/luckybal.cpp index 32fc0a45429..1d15e7c51f6 100644 --- a/src/mame/drivers/luckybal.cpp +++ b/src/mame/drivers/luckybal.cpp @@ -276,7 +276,6 @@ #include "machine/i8255.h" #include "video/v9938.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" #include "luckybal.lh" @@ -608,9 +607,6 @@ void luckybal_state::luckybal(machine_config &config) // sound hardware SPEAKER(config, "speaker").front_center(); DAC08(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/m72.cpp b/src/mame/drivers/m72.cpp index 98505de4549..95aec5fba02 100644 --- a/src/mame/drivers/m72.cpp +++ b/src/mame/drivers/m72.cpp @@ -197,7 +197,6 @@ other supported games as well. #include "machine/irem_cpu.h" #include "machine/rstbuf.h" #include "sound/ym2151.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -1825,9 +1824,6 @@ void m72_state::m72_audio_chips(machine_config &config) ymsnd.add_route(ALL_OUTPUTS, "speaker", 1.0); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void m72_state::m72_base(machine_config &config) diff --git a/src/mame/drivers/m90.cpp b/src/mame/drivers/m90.cpp index 4f30e4dcf03..360d7c89d42 100644 --- a/src/mame/drivers/m90.cpp +++ b/src/mame/drivers/m90.cpp @@ -26,7 +26,6 @@ #include "machine/rstbuf.h" #include "sound/dac.h" #include "sound/ym2151.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -769,9 +768,6 @@ void m90_state::m90(machine_config &config) ymsnd.add_route(1, "speaker", 0.15); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void m90_state::hasamu(machine_config &config) diff --git a/src/mame/drivers/mac.cpp b/src/mame/drivers/mac.cpp index 2d4adf755b5..04897673d7d 100644 --- a/src/mame/drivers/mac.cpp +++ b/src/mame/drivers/mac.cpp @@ -65,7 +65,6 @@ #include "bus/scsi/scsi.h" #include "bus/scsi/scsihd.h" #include "bus/scsi/scsicd.h" -#include "sound/volt_reg.h" // NuBus and 030/040 PDS cards #include "bus/nubus/nubus_48gc.h" diff --git a/src/mame/drivers/mac128.cpp b/src/mame/drivers/mac128.cpp index 95540d9a50a..0bb4525482f 100644 --- a/src/mame/drivers/mac128.cpp +++ b/src/mame/drivers/mac128.cpp @@ -103,7 +103,6 @@ c0 8 data bits, Rx disabled #include "machine/z80scc.h" #include "machine/macadb.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "bus/macpds/pds_tpdfpd.h" #include "formats/ap_dsk35.h" @@ -932,9 +931,6 @@ void mac128_state::mac512ke(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_PWM(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // 2 x ls161 - voltage_regulator_device &vreg(VOLTAGE_REGULATOR(config, "vref")); - vreg.add_route(0, DAC_TAG, 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, DAC_TAG, -1.0, DAC_VREF_NEG_INPUT); /* devices */ RTC3430042(config, m_rtc, 32.768_kHz_XTAL); diff --git a/src/mame/drivers/magicfly.cpp b/src/mame/drivers/magicfly.cpp index 8689945d47e..b0e1d704ccd 100644 --- a/src/mame/drivers/magicfly.cpp +++ b/src/mame/drivers/magicfly.cpp @@ -444,7 +444,6 @@ #include "cpu/m6502/m6502.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "emupal.h" #include "screen.h" @@ -969,8 +968,6 @@ void magicfly_state::magicfly(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/mappy.cpp b/src/mame/drivers/mappy.cpp index 78d4d65c28a..aa9b3d35015 100644 --- a/src/mame/drivers/mappy.cpp +++ b/src/mame/drivers/mappy.cpp @@ -555,7 +555,6 @@ TODO: #include "machine/74157.h" #include "machine/74259.h" #include "machine/watchdog.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -1435,9 +1434,6 @@ void mappy_state::grobda(machine_config &config) /* sound hardware */ DAC_4BIT_BINARY_WEIGHTED(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.275); // alternate route to 15XX-related DAC? - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void mappy_state::phozon(machine_config &config) diff --git a/src/mame/drivers/matmania.cpp b/src/mame/drivers/matmania.cpp index 33014facc51..cfb07b2d09b 100644 --- a/src/mame/drivers/matmania.cpp +++ b/src/mame/drivers/matmania.cpp @@ -39,7 +39,6 @@ The driver has been updated accordingly. #include "sound/3526intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -333,9 +332,6 @@ void matmania_state::matmania(machine_config &config) AY8910(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.3); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void matmania_state::maniach(machine_config &config) @@ -374,9 +370,6 @@ void matmania_state::maniach(machine_config &config) ymsnd.add_route(ALL_OUTPUTS, "speaker", 1.0); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/mc10.cpp b/src/mame/drivers/mc10.cpp index da9daa7c504..6253f6f5061 100644 --- a/src/mame/drivers/mc10.cpp +++ b/src/mame/drivers/mc10.cpp @@ -18,7 +18,6 @@ #include "machine/ram.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/ef9345.h" #include "video/mc6847.h" @@ -684,8 +683,6 @@ void mc10_state::mc10(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.0625); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); CASSETTE(config, m_cassette); m_cassette->set_formats(coco_cassette_formats); @@ -728,8 +725,6 @@ void mc10_state::alice32(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.0625); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); CASSETTE(config, m_cassette); m_cassette->set_formats(alice32_cassette_formats); diff --git a/src/mame/drivers/meadows.cpp b/src/mame/drivers/meadows.cpp index b5b9dd382cc..bf0dc57544a 100644 --- a/src/mame/drivers/meadows.cpp +++ b/src/mame/drivers/meadows.cpp @@ -121,7 +121,6 @@ #include "emu.h" #include "includes/meadows.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "deadeye.lh" @@ -649,9 +648,6 @@ void meadows_state::meadows(machine_config &config) /* audio hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SAMPLES(config, m_samples); m_samples->set_channels(2); @@ -710,9 +706,6 @@ void meadows_state::bowl3d(machine_config &config) /* audio hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SAMPLES(config, m_samples); m_samples->set_channels(2); diff --git a/src/mame/drivers/megazone.cpp b/src/mame/drivers/megazone.cpp index b02a1659364..10a5ce1fd5e 100644 --- a/src/mame/drivers/megazone.cpp +++ b/src/mame/drivers/megazone.cpp @@ -71,7 +71,6 @@ REAR BOARD 1C026 N/U (CUSTOM ON ORIGINAL) #include "machine/watchdog.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -345,9 +344,6 @@ void megazone_state::megazone(machine_config &config) aysnd.add_route(2, "filter.0.2", 0.30); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); FILTER_RC(config, m_filter[0]).add_route(ALL_OUTPUTS, "speaker", 1.0); FILTER_RC(config, m_filter[1]).add_route(ALL_OUTPUTS, "speaker", 1.0); diff --git a/src/mame/drivers/mephisto_brikett.cpp b/src/mame/drivers/mephisto_brikett.cpp index 9b9beba4824..be5d309b836 100644 --- a/src/mame/drivers/mephisto_brikett.cpp +++ b/src/mame/drivers/mephisto_brikett.cpp @@ -74,7 +74,6 @@ is completely different, based on a 68000. #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -473,7 +472,6 @@ void brikett_state::mephistoj(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); TIMER(config, m_speaker_off).configure_generic(FUNC(brikett_state::speaker_off)); } diff --git a/src/mame/drivers/mephisto_glasgow.cpp b/src/mame/drivers/mephisto_glasgow.cpp index 9cf86cd410b..b12d54a0e89 100644 --- a/src/mame/drivers/mephisto_glasgow.cpp +++ b/src/mame/drivers/mephisto_glasgow.cpp @@ -43,7 +43,6 @@ TODO: #include "cpu/m68000/m68000.h" #include "machine/mmboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" // internal artwork @@ -301,7 +300,6 @@ void glasgow_state::glasgow(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void amsterd_state::amsterd(machine_config &config) diff --git a/src/mame/drivers/mephisto_mm1.cpp b/src/mame/drivers/mephisto_mm1.cpp index e763e688e50..ff23d7891c9 100644 --- a/src/mame/drivers/mephisto_mm1.cpp +++ b/src/mame/drivers/mephisto_mm1.cpp @@ -41,7 +41,6 @@ TODO: #include "cpu/cosmac/cosmac.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -394,7 +393,6 @@ void mm1_state::mirage(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void mm1_state::mm1(machine_config &config) diff --git a/src/mame/drivers/mephisto_mm2.cpp b/src/mame/drivers/mephisto_mm2.cpp index 82a531b1736..0016ee631f0 100644 --- a/src/mame/drivers/mephisto_mm2.cpp +++ b/src/mame/drivers/mephisto_mm2.cpp @@ -84,7 +84,6 @@ TODO: #include "machine/mmboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -400,7 +399,6 @@ void mephisto_state::rebel5(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void mephisto_state::mm5p(machine_config &config) diff --git a/src/mame/drivers/mephisto_modena.cpp b/src/mame/drivers/mephisto_modena.cpp index bfadec92f89..80928178544 100644 --- a/src/mame/drivers/mephisto_modena.cpp +++ b/src/mame/drivers/mephisto_modena.cpp @@ -18,7 +18,6 @@ Hold Pawn + Knight buttons at boot for test mode. #include "machine/sensorboard.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -190,7 +189,6 @@ void modena_state::modena(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/mephisto_mondial.cpp b/src/mame/drivers/mephisto_mondial.cpp index 030fce9ee53..78123916058 100644 --- a/src/mame/drivers/mephisto_mondial.cpp +++ b/src/mame/drivers/mephisto_mondial.cpp @@ -20,7 +20,6 @@ #include "machine/timer.h" #include "sound/beep.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "mephisto_mondial2.lh" @@ -203,7 +202,6 @@ void mephisto_mondial_state::mondial2(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); MEPHISTO_BUTTONS_BOARD(config, m_board); m_board->set_delay(attotime::from_msec(250)); diff --git a/src/mame/drivers/mephisto_mondial68k.cpp b/src/mame/drivers/mephisto_mondial68k.cpp index 24bff523e17..a77d5a43a23 100644 --- a/src/mame/drivers/mephisto_mondial68k.cpp +++ b/src/mame/drivers/mephisto_mondial68k.cpp @@ -20,7 +20,6 @@ Hardware: #include "machine/74259.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pcf2100.h" #include "video/pwm.h" @@ -210,7 +209,6 @@ void mondial68k_state::mondial68k(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/mephisto_montec.cpp b/src/mame/drivers/mephisto_montec.cpp index a7e0a7970d9..50c69bf9c3b 100644 --- a/src/mame/drivers/mephisto_montec.cpp +++ b/src/mame/drivers/mephisto_montec.cpp @@ -31,7 +31,6 @@ #include "machine/nvram.h" #include "machine/mmboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pcf2100.h" #include "screen.h" @@ -343,7 +342,6 @@ void mephisto_montec_state::montec(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); MEPHISTO_SENSORS_BOARD(config, m_board); m_board->set_delay(attotime::from_msec(300)); diff --git a/src/mame/drivers/mephistp.cpp b/src/mame/drivers/mephistp.cpp index c71070aee81..c7c13cb6dcf 100644 --- a/src/mame/drivers/mephistp.cpp +++ b/src/mame/drivers/mephistp.cpp @@ -18,7 +18,6 @@ #include "machine/nvram.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "sound/3812intf.h" #include "speaker.h" @@ -212,9 +211,6 @@ void mephisto_pinball_state::mephisto(machine_config &config) m_aysnd->add_route(ALL_OUTPUTS, "mono", 0.5); DAC08(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/merits.cpp b/src/mame/drivers/merits.cpp index 4c1e64ccb7a..e36d29e17a6 100644 --- a/src/mame/drivers/merits.cpp +++ b/src/mame/drivers/merits.cpp @@ -19,7 +19,6 @@ #include "cpu/mcs51/mcs51.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" diff --git a/src/mame/drivers/meyc8080.cpp b/src/mame/drivers/meyc8080.cpp index 5ff1731fa36..66cb57c71c0 100644 --- a/src/mame/drivers/meyc8080.cpp +++ b/src/mame/drivers/meyc8080.cpp @@ -59,7 +59,6 @@ #include "cpu/i8085/i8085.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -603,9 +602,6 @@ void meyc8080_state::meyc8080(machine_config &config) /* audio hardware */ SPEAKER(config, "speaker").front_center(); DAC_2BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.66); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/meyc8088.cpp b/src/mame/drivers/meyc8088.cpp index 653ff3b757b..ebb3568b920 100644 --- a/src/mame/drivers/meyc8088.cpp +++ b/src/mame/drivers/meyc8088.cpp @@ -28,7 +28,6 @@ #include "machine/nvram.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/resnet.h" #include "emupal.h" #include "screen.h" @@ -401,8 +400,6 @@ void meyc8088_state::meyc8088(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/microvsn.cpp b/src/mame/drivers/microvsn.cpp index 324443a5366..4447ded8659 100644 --- a/src/mame/drivers/microvsn.cpp +++ b/src/mame/drivers/microvsn.cpp @@ -32,7 +32,6 @@ TODO: #include "cpu/tms1000/tms1100.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/hlcd0488.h" #include "video/pwm.h" @@ -477,9 +476,6 @@ void microvision_state::microvision(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, m_cart, generic_plain_slot, "microvision_cart"); diff --git a/src/mame/drivers/mikro80.cpp b/src/mame/drivers/mikro80.cpp index b49f864e6f6..64efd504ebd 100644 --- a/src/mame/drivers/mikro80.cpp +++ b/src/mame/drivers/mikro80.cpp @@ -23,7 +23,6 @@ ToDo: #include "cpu/i8085/i8085.h" #include "formats/rk_cas.h" #include "includes/mikro80.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -252,8 +251,6 @@ void mikro80_state::radio99(machine_config &config) m_maincpu->set_addrmap(AS_IO, &mikro80_state::radio99_io); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.50); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void mikro80_state::kristall(machine_config &config) diff --git a/src/mame/drivers/mindset.cpp b/src/mame/drivers/mindset.cpp index d11e5291420..52f3d80c82d 100644 --- a/src/mame/drivers/mindset.cpp +++ b/src/mame/drivers/mindset.cpp @@ -8,7 +8,6 @@ #include "machine/upd765.h" #include "formats/pc_dsk.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "machine/ins8250.h" #include "bus/rs232/rs232.h" @@ -250,9 +249,6 @@ void mindset_sound_module::device_add_mconfig(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); } @@ -1359,9 +1355,6 @@ void mindset_state::mindset(machine_config &config) SPEAKER(config, "lspeaker").front_left(); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); MINDSET_MODULE(config, "m0", mindset_modules, "stereo", false); MINDSET_MODULE(config, "m1", mindset_modules, "rs232", false); diff --git a/src/mame/drivers/mini2440.cpp b/src/mame/drivers/mini2440.cpp index 177965271f9..9c26d6b8937 100644 --- a/src/mame/drivers/mini2440.cpp +++ b/src/mame/drivers/mini2440.cpp @@ -11,7 +11,6 @@ #include "machine/s3c2440.h" #include "machine/smartmed.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -243,9 +242,6 @@ void mini2440_state::mini2440(machine_config &config) SPEAKER(config, "rspeaker").front_right(); UDA1341TS(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // uda1341ts.u12 UDA1341TS(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // uda1341ts.u12 - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); S3C2440(config, m_s3c2440, 12000000); m_s3c2440->set_palette_tag("palette"); diff --git a/src/mame/drivers/mjsister.cpp b/src/mame/drivers/mjsister.cpp index 94f3f27cf69..2176fc5c144 100644 --- a/src/mame/drivers/mjsister.cpp +++ b/src/mame/drivers/mjsister.cpp @@ -14,7 +14,6 @@ #include "video/mc6845.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -488,9 +487,6 @@ void mjsister_state::mjsister(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.15); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } /************************************* diff --git a/src/mame/drivers/mk14.cpp b/src/mame/drivers/mk14.cpp index eb700e41578..112b50eb7e8 100644 --- a/src/mame/drivers/mk14.cpp +++ b/src/mame/drivers/mk14.cpp @@ -37,7 +37,6 @@ TODO: #include "imagedev/cassette.h" #include "machine/ins8154.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "video/pwm.h" @@ -211,10 +210,6 @@ void mk14_state::mk14(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); ZN425E(config, "dac8", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // Ferranti ZN425E - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac8", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac8", -1.0, DAC_VREF_NEG_INPUT); /* devices */ ins8154_device &ic8(INS8154(config, "ic8")); diff --git a/src/mame/drivers/mogura.cpp b/src/mame/drivers/mogura.cpp index 6c5e31e8eb8..73d5ba52939 100644 --- a/src/mame/drivers/mogura.cpp +++ b/src/mame/drivers/mogura.cpp @@ -7,7 +7,6 @@ #include "cpu/z80/z80.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -234,9 +233,6 @@ void mogura_state::mogura(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_4BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC DAC_4BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/monty.cpp b/src/mame/drivers/monty.cpp index b0d096fed3d..49ca2ee493e 100644 --- a/src/mame/drivers/monty.cpp +++ b/src/mame/drivers/monty.cpp @@ -34,7 +34,6 @@ TODO: #include "cpu/z80/z80.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/sed1500.h" #include "screen.h" @@ -258,7 +257,6 @@ void monty_state::monty(machine_config &config) // Sound hardware SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void monty_state::mmonty(machine_config &config) diff --git a/src/mame/drivers/mrgame.cpp b/src/mame/drivers/mrgame.cpp index fb8a41e647b..540415439a1 100644 --- a/src/mame/drivers/mrgame.cpp +++ b/src/mame/drivers/mrgame.cpp @@ -40,7 +40,6 @@ ToDo: //#include "machine/watchdog.h" #include "sound/dac.h" #include "sound/tms5220.h" -#include "sound/volt_reg.h" #include "video/resnet.h" #include "emupal.h" #include "screen.h" @@ -584,15 +583,12 @@ void mrgame_state::mrgame(machine_config &config) DAC_8BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC DAC_8BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - dac_8bit_r2r_device &dacvol(DAC_8BIT_R2R(config, "dacvol", 0)); // unknown DAC - dacvol.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - dacvol.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - dacvol.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - dacvol.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); - - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dacvol", -1.0, DAC_VREF_NEG_INPUT); + dac_8bit_r2r_device &dacvol(DAC_8BIT_R2R(config, "dacvol", 0)); + dacvol.set_output_range(0, 1); // unknown DAC + dacvol.add_route(0, "ldac", 1.0, DAC_INPUT_RANGE_HI); + dacvol.add_route(0, "ldac", -1.0, DAC_INPUT_RANGE_LO); + dacvol.add_route(0, "rdac", 1.0, DAC_INPUT_RANGE_HI); + dacvol.add_route(0, "rdac", -1.0, DAC_INPUT_RANGE_LO); tms5220_device &tms(TMS5220(config, "tms", 672000)); // uses a RC combination. 672k copied from jedi.h tms.ready_cb().set_inputline("audiocpu2", Z80_INPUT_LINE_BOGUSWAIT); diff --git a/src/mame/drivers/msx.cpp b/src/mame/drivers/msx.cpp index 55e2ad0892e..81f81a08627 100644 --- a/src/mame/drivers/msx.cpp +++ b/src/mame/drivers/msx.cpp @@ -533,7 +533,6 @@ PCB Layouts missing #include "machine/msx_matsushita.h" #include "machine/msx_s1985.h" #include "machine/msx_systemflags.h" -#include "sound/volt_reg.h" #include "screen.h" #include "softlist.h" #include "speaker.h" @@ -1369,8 +1368,6 @@ void msx_state::msx(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.1); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); AY8910(config, m_ay8910, 10.738635_MHz_XTAL / 3 / 2); m_ay8910->set_flags(AY8910_SINGLE_OUTPUT); @@ -1441,8 +1438,6 @@ void msx2_state::msx2(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.1); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); AY8910(config, m_ay8910, 21.477272_MHz_XTAL / 6 / 2); m_ay8910->set_flags(AY8910_SINGLE_OUTPUT); @@ -1504,8 +1499,6 @@ void msx2_state::msx2p(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.1); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); AY8910(config, m_ay8910, 21.477272_MHz_XTAL / 6 / 2); m_ay8910->set_flags(AY8910_SINGLE_OUTPUT); diff --git a/src/mame/drivers/murogem.cpp b/src/mame/drivers/murogem.cpp index ed78c928160..5acf37d4b63 100644 --- a/src/mame/drivers/murogem.cpp +++ b/src/mame/drivers/murogem.cpp @@ -109,7 +109,6 @@ val (hex): 27 20 22 04 26 00 20 20 00 07 00 00 80 00 00 00 ns #include "emu.h" #include "cpu/m6800/m6800.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "emupal.h" #include "screen.h" @@ -274,8 +273,6 @@ void murogem_state::murogem(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.375); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/murogmbl.cpp b/src/mame/drivers/murogmbl.cpp index 9364d182f7a..fb1329eaf7a 100644 --- a/src/mame/drivers/murogmbl.cpp +++ b/src/mame/drivers/murogmbl.cpp @@ -39,7 +39,6 @@ Dumped: 06/04/2009 f205v #include "emu.h" #include "cpu/z80/z80.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -369,9 +368,6 @@ void murogmbl_state::murogmbl(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void slotunbl_state::slotunbl(machine_config &config) @@ -395,9 +391,6 @@ void slotunbl_state::slotunbl(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START(murogmbl) diff --git a/src/mame/drivers/namcos1.cpp b/src/mame/drivers/namcos1.cpp index 85eab2593a7..d503c3a453e 100644 --- a/src/mame/drivers/namcos1.cpp +++ b/src/mame/drivers/namcos1.cpp @@ -339,7 +339,6 @@ C - uses sub board with support for player 3 and 4 controls #include "includes/namcos1.h" #include "machine/nvram.h" -#include "sound/volt_reg.h" #include "sound/ym2151.h" #include "screen.h" #include "speaker.h" @@ -1074,12 +1073,6 @@ void namcos1_state::ns1(machine_config &config) DAC_8BIT_R2R(config, m_dac[1], 0); // 10-pin 1Kx8R SIP with HC374 latch m_dac[1]->add_route(ALL_OUTPUTS, "lspeaker", 0.5); m_dac[1]->add_route(ALL_OUTPUTS, "rspeaker", 0.5); - - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac0", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/nbmj8688.cpp b/src/mame/drivers/nbmj8688.cpp index 6c4d202e0c1..408ff2c079d 100644 --- a/src/mame/drivers/nbmj8688.cpp +++ b/src/mame/drivers/nbmj8688.cpp @@ -38,7 +38,6 @@ TODO: #include "sound/3812intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "rendlay.h" #include "screen.h" #include "speaker.h" @@ -2579,9 +2578,6 @@ void nbmj8688_state::NBMJDRV_4096(machine_config &config) psg.add_route(ALL_OUTPUTS, "speaker", 0.35); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void nbmj8688_state::NBMJDRV_256(machine_config &config) @@ -2767,9 +2763,6 @@ void nbmj8688_state::mbmj_p16bit_LCD(machine_config &config) psg.add_route(ALL_OUTPUTS, "speaker", 0.35); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void nbmj8688_state::bijokkoy(machine_config &config) diff --git a/src/mame/drivers/nbmj8891.cpp b/src/mame/drivers/nbmj8891.cpp index 626baf2fa57..2769e2f61f8 100644 --- a/src/mame/drivers/nbmj8891.cpp +++ b/src/mame/drivers/nbmj8891.cpp @@ -48,7 +48,6 @@ TODO: #include "sound/3812intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -2212,9 +2211,6 @@ void nbmj8891_state::gionbana(machine_config &config) YM3812(config, "fmsnd", 2500000).add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.37); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void nbmj8891_state::mgion(machine_config &config) diff --git a/src/mame/drivers/nbmj8900.cpp b/src/mame/drivers/nbmj8900.cpp index 6f6d794fc0f..6ae3e270906 100644 --- a/src/mame/drivers/nbmj8900.cpp +++ b/src/mame/drivers/nbmj8900.cpp @@ -31,7 +31,6 @@ TODO: #include "cpu/z80/z80.h" #include "sound/3812intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -332,9 +331,6 @@ void nbmj8900_state::ohpaipee(machine_config &config) YM3812(config, "ymsnd", 2500000).add_route(ALL_OUTPUTS, "speaker", 0.7); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.42); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void nbmj8900_state::togenkyo(machine_config &config) diff --git a/src/mame/drivers/nbmj8991.cpp b/src/mame/drivers/nbmj8991.cpp index ab054d6cecd..3d35485eb13 100644 --- a/src/mame/drivers/nbmj8991.cpp +++ b/src/mame/drivers/nbmj8991.cpp @@ -38,7 +38,6 @@ Notes: #include "sound/3812intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -1344,9 +1343,6 @@ void nbmj8991_state::nbmjdrv1(machine_config &config) // galkoku YM3812(config, "fmsnd", 25000000/10).add_route(ALL_OUTPUTS, "speaker", 0.7); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -1385,9 +1381,6 @@ void nbmj8991_state::nbmjdrv2(machine_config &config) // pstadium DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/nbmj9195.cpp b/src/mame/drivers/nbmj9195.cpp index 0eeb1275917..e5bf841fe7f 100644 --- a/src/mame/drivers/nbmj9195.cpp +++ b/src/mame/drivers/nbmj9195.cpp @@ -28,7 +28,6 @@ Notes: #include "machine/nvram.h" #include "sound/3812intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -2547,9 +2546,6 @@ void nbmj9195_state::NBMJDRV1_base(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void nbmj9195_state::NBMJDRV1(machine_config &config) diff --git a/src/mame/drivers/ngp.cpp b/src/mame/drivers/ngp.cpp index 37a660be5f3..9b991fe644f 100644 --- a/src/mame/drivers/ngp.cpp +++ b/src/mame/drivers/ngp.cpp @@ -104,7 +104,6 @@ the Neogeo Pocket. #include "cpu/z80/z80.h" #include "sound/t6w28.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/k1ge.h" #include "screen.h" #include "softlist.h" @@ -851,9 +850,6 @@ void ngp_state::ngp_common(machine_config &config) DAC_8BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC DAC_8BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/nightgal.cpp b/src/mame/drivers/nightgal.cpp index 8acac8fd461..8ba32648947 100644 --- a/src/mame/drivers/nightgal.cpp +++ b/src/mame/drivers/nightgal.cpp @@ -31,7 +31,6 @@ TODO: #include "sound/2203intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/jangou_blitter.h" #include "video/resnet.h" #include "emupal.h" @@ -834,9 +833,6 @@ void nightgal_state::sexygal(machine_config &config) sampleclk.signal_handler().set_inputline(m_audiocpu, INPUT_LINE_NMI); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); config.device_remove("aysnd"); diff --git a/src/mame/drivers/notetaker.cpp b/src/mame/drivers/notetaker.cpp index abf39db27fb..42a22f7c7b3 100644 --- a/src/mame/drivers/notetaker.cpp +++ b/src/mame/drivers/notetaker.cpp @@ -108,7 +108,6 @@ DONE: #include "machine/pic8259.h" #include "machine/wd_fdc.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/tms9927.h" #include "emupal.h" #include "screen.h" @@ -882,9 +881,6 @@ void notetaker_state::notetakr(machine_config &config) SPEAKER(config, "rspeaker").front_right(); // TODO: hook DAC up to two HA2425 (sample and hold) chips and hook those up to the speakers DAC1200(config, m_dac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void notetaker_state::init_notetakr() diff --git a/src/mame/drivers/novag_micro.cpp b/src/mame/drivers/novag_micro.cpp index 696d44603f0..10754f2729d 100644 --- a/src/mame/drivers/novag_micro.cpp +++ b/src/mame/drivers/novag_micro.cpp @@ -24,7 +24,6 @@ switch tied to pin #4 (VSB: RAM standby power). #include "machine/sensorboard.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -221,7 +220,6 @@ void micro_state::micro(machine_config &config) // sound hardware SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/novag_micro2.cpp b/src/mame/drivers/novag_micro2.cpp index d14c30f75fc..9d235b9baca 100644 --- a/src/mame/drivers/novag_micro2.cpp +++ b/src/mame/drivers/novag_micro2.cpp @@ -45,7 +45,6 @@ TODO: #include "cpu/mcs48/mcs48.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -211,7 +210,6 @@ void micro2_state::micro2(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/novag_savant.cpp b/src/mame/drivers/novag_savant.cpp index 7e0944a7290..78c0a3cda72 100644 --- a/src/mame/drivers/novag_savant.cpp +++ b/src/mame/drivers/novag_savant.cpp @@ -31,7 +31,6 @@ TODO: #include "machine/sensorboard.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/hlcd0538.h" #include "video/pwm.h" @@ -393,7 +392,6 @@ void savant_state::savant(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/novag_supremo.cpp b/src/mame/drivers/novag_supremo.cpp index 470793ee253..b1c7cdf5257 100644 --- a/src/mame/drivers/novag_supremo.cpp +++ b/src/mame/drivers/novag_supremo.cpp @@ -28,7 +28,6 @@ TODO: #include "cpu/m6800/m6801.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -118,7 +117,6 @@ void supremo_state::supremo(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/nycaptor.cpp b/src/mame/drivers/nycaptor.cpp index 65c56b8fb36..d2675bad0fc 100644 --- a/src/mame/drivers/nycaptor.cpp +++ b/src/mame/drivers/nycaptor.cpp @@ -198,7 +198,6 @@ Stephh's additional notes (based on the game Z80 code and some tests) : #include "cpu/z80/z80.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -797,9 +796,6 @@ void nycaptor_state::nycaptor(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void nycaptor_state::cyclshtg(machine_config &config) @@ -867,9 +863,6 @@ void nycaptor_state::cyclshtg(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -934,9 +927,6 @@ void nycaptor_state::bronx(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/nyny.cpp b/src/mame/drivers/nyny.cpp index 957e26e405b..064a0d44180 100644 --- a/src/mame/drivers/nyny.cpp +++ b/src/mame/drivers/nyny.cpp @@ -76,7 +76,6 @@ #include "machine/rescap.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "emupal.h" @@ -667,9 +666,6 @@ void nyny_state::nyny(machine_config &config) AY8910(config, "ay3", AUDIO_CPU_2_CLOCK).add_route(ALL_OUTPUTS, "speaker", 0.03); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/othello.cpp b/src/mame/drivers/othello.cpp index 051dc56c002..772c428d278 100644 --- a/src/mame/drivers/othello.cpp +++ b/src/mame/drivers/othello.cpp @@ -45,7 +45,6 @@ Limit for help/undo (matta): #include "machine/i8243.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "emupal.h" @@ -434,9 +433,6 @@ void othello_state::othello(machine_config &config) AY8910(config, m_ay[1], 2000000).add_route(ALL_OUTPUTS, "speaker", 0.15); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( othello ) diff --git a/src/mame/drivers/palm.cpp b/src/mame/drivers/palm.cpp index 6929ae0ddfa..760f9db54e8 100644 --- a/src/mame/drivers/palm.cpp +++ b/src/mame/drivers/palm.cpp @@ -16,7 +16,6 @@ #include "machine/mc68328.h" #include "machine/ram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -206,8 +205,6 @@ void palm_state::palm(machine_config &config) /* audio hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } static INPUT_PORTS_START( palm ) diff --git a/src/mame/drivers/pandoras.cpp b/src/mame/drivers/pandoras.cpp index 70c9d9a8fea..5b7c2fe9e1e 100644 --- a/src/mame/drivers/pandoras.cpp +++ b/src/mame/drivers/pandoras.cpp @@ -34,7 +34,6 @@ Boards: #include "machine/watchdog.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -361,9 +360,6 @@ void pandoras_state::pandoras(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.4); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.12); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/pastelg.cpp b/src/mame/drivers/pastelg.cpp index dd40f521a7f..2513ce5b7aa 100644 --- a/src/mame/drivers/pastelg.cpp +++ b/src/mame/drivers/pastelg.cpp @@ -29,7 +29,6 @@ Memo: #include "machine/nvram.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -389,9 +388,6 @@ void pastelg_state::pastelg(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } /* @@ -448,9 +444,6 @@ void threeds_state::threeds(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/pockstat.cpp b/src/mame/drivers/pockstat.cpp index 551f48b3a3f..bfa4b348c57 100644 --- a/src/mame/drivers/pockstat.cpp +++ b/src/mame/drivers/pockstat.cpp @@ -36,7 +36,6 @@ #include "cpu/arm7/arm7.h" #include "cpu/arm7/arm7core.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -1000,9 +999,6 @@ void pockstat_state::pockstat(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* cartridge */ GENERIC_CARTSLOT(config, m_cart, generic_plain_slot, "pockstat_cart", "gme"); diff --git a/src/mame/drivers/polepos.cpp b/src/mame/drivers/polepos.cpp index 526e454dac0..4cbfd971d98 100644 --- a/src/mame/drivers/polepos.cpp +++ b/src/mame/drivers/polepos.cpp @@ -236,7 +236,6 @@ Todo: #include "machine/watchdog.h" #include "sound/dac.h" #include "sound/tms5220.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "polepos.lh" @@ -1058,10 +1057,6 @@ void polepos_state::topracern(machine_config &config) dac_4bit_r2r_device &dac(DAC_4BIT_R2R(config, "dac", 0)); // unknown resistor configuration dac.add_route(ALL_OUTPUTS, "lspeaker", 0.12); dac.add_route(ALL_OUTPUTS, "rspeaker", 0.12); - - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void polepos_state::polepos2bi(machine_config &config) diff --git a/src/mame/drivers/pong.cpp b/src/mame/drivers/pong.cpp index a9246041541..b8ebb2e0ee8 100644 --- a/src/mame/drivers/pong.cpp +++ b/src/mame/drivers/pong.cpp @@ -52,7 +52,6 @@ TODO: Volleyball... #include "machine/netlist.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/fixfreq.h" @@ -502,9 +501,6 @@ void pong_state::pong(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void breakout_state::breakout(machine_config &config) @@ -559,9 +555,6 @@ void breakout_state::breakout(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void pong_state::pongf(machine_config &config) @@ -609,9 +602,6 @@ void pong_state::pongd(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void rebound_state::rebound(machine_config &config) @@ -652,9 +642,6 @@ void rebound_state::rebound(machine_config &config) SPEAKER(config, "speaker").front_center(); //FIXME: this is not related to reality at all. DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/ppmast93.cpp b/src/mame/drivers/ppmast93.cpp index 14b31b5c1f0..65108a605d3 100644 --- a/src/mame/drivers/ppmast93.cpp +++ b/src/mame/drivers/ppmast93.cpp @@ -135,7 +135,6 @@ Dip locations added based on the notes above. #include "cpu/z80/z80.h" #include "machine/gen_latch.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "sound/ym2413.h" #include "emupal.h" #include "screen.h" @@ -408,9 +407,6 @@ void ppmast93_state::ppmast93(machine_config &config) YM2413(config, "ymsnd", 5000000/2).add_route(ALL_OUTPUTS, "speaker", 1.0); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( ppmast93 ) diff --git a/src/mame/drivers/pubtimed.cpp b/src/mame/drivers/pubtimed.cpp index c9861813f1a..9b30bf4540b 100644 --- a/src/mame/drivers/pubtimed.cpp +++ b/src/mame/drivers/pubtimed.cpp @@ -9,7 +9,6 @@ #include "emu.h" #include "cpu/m6800/m6800.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" class pubtimed_state : public driver_device @@ -54,9 +53,6 @@ void pubtimed_state::pubtimed(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/quasar.cpp b/src/mame/drivers/quasar.cpp index 8477e9a32a9..dea16097268 100644 --- a/src/mame/drivers/quasar.cpp +++ b/src/mame/drivers/quasar.cpp @@ -33,7 +33,6 @@ I8085 Sound Board #include "includes/quasar.h" #include "cpu/s2650/s2650.h" #include "cpu/mcs48/mcs48.h" -#include "sound/volt_reg.h" #include "speaker.h" /************************************************************************ @@ -343,9 +342,6 @@ void quasar_state::quasar(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( quasar ) diff --git a/src/mame/drivers/quizshow.cpp b/src/mame/drivers/quizshow.cpp index 1d539dfeb8b..0a656e0eb2b 100644 --- a/src/mame/drivers/quizshow.cpp +++ b/src/mame/drivers/quizshow.cpp @@ -18,7 +18,6 @@ TODO: #include "cpu/s2650/s2650.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -414,8 +413,6 @@ void quizshow_state::quizshow(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/rastersp.cpp b/src/mame/drivers/rastersp.cpp index b5925895b1a..80d47a9a0cb 100644 --- a/src/mame/drivers/rastersp.cpp +++ b/src/mame/drivers/rastersp.cpp @@ -24,7 +24,6 @@ #include "machine/nvram.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -918,12 +917,6 @@ void rastersp_state::rastersp(machine_config &config) DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0); m_ldac->add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC m_rdac->add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - - voltage_regulator_device &vreg(VOLTAGE_REGULATOR(config, "vref")); - vreg.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vreg.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/regence.cpp b/src/mame/drivers/regence.cpp index 0f1bfff8e42..2617c6c3e5a 100644 --- a/src/mame/drivers/regence.cpp +++ b/src/mame/drivers/regence.cpp @@ -24,7 +24,6 @@ TODO: #include "cpu/z80/z80.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -195,7 +194,6 @@ void regence_state::regence(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/replicator.cpp b/src/mame/drivers/replicator.cpp index 7b189397d7c..44dc342b320 100644 --- a/src/mame/drivers/replicator.cpp +++ b/src/mame/drivers/replicator.cpp @@ -27,7 +27,6 @@ #include "emu.h" #include "cpu/avr8/avr8.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/hd44780.h" #include "emupal.h" #include "screen.h" @@ -635,8 +634,6 @@ void replicator_state::replicator(machine_config &config) /* A piezo is connected to the PORT G bit 5 (OC0B pin driven by Timer/Counter #4) */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(0, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } ROM_START( replica1 ) diff --git a/src/mame/drivers/rltennis.cpp b/src/mame/drivers/rltennis.cpp index 7ace25a62eb..f082dc18b26 100644 --- a/src/mame/drivers/rltennis.cpp +++ b/src/mame/drivers/rltennis.cpp @@ -66,7 +66,6 @@ player - when there's nothing to play - first, empty 2k of ROMs are selected. #include "cpu/m68000/m68000.h" #include "machine/eeprompar.h" -#include "sound/volt_reg.h" #include "video/ramdac.h" #include "screen.h" #include "speaker.h" @@ -206,9 +205,6 @@ void rltennis_state::rltennis(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // Unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // Unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( rltennis ) diff --git a/src/mame/drivers/route16.cpp b/src/mame/drivers/route16.cpp index d4461a8b267..c2300bb0206 100644 --- a/src/mame/drivers/route16.cpp +++ b/src/mame/drivers/route16.cpp @@ -160,7 +160,6 @@ PL2 Button | 7A | 7B | PL1 Button #include "cpu/z80/z80.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -911,9 +910,6 @@ void route16_state::stratvox(machine_config &config) m_sn->add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void route16_state::speakres(machine_config &config) diff --git a/src/mame/drivers/rowamet.cpp b/src/mame/drivers/rowamet.cpp index c419f6aa65c..1a71a368b63 100644 --- a/src/mame/drivers/rowamet.cpp +++ b/src/mame/drivers/rowamet.cpp @@ -28,7 +28,6 @@ ToDO: #include "cpu/z80/z80.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "rowamet.lh" @@ -240,9 +239,6 @@ void rowamet_state::rowamet(machine_config &config) /* Sound */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } /*------------------------------------------------------------------- diff --git a/src/mame/drivers/royalmah.cpp b/src/mame/drivers/royalmah.cpp index 6cc15457f04..aefb25c6e85 100644 --- a/src/mame/drivers/royalmah.cpp +++ b/src/mame/drivers/royalmah.cpp @@ -104,7 +104,6 @@ Stephh's notes (based on the games Z80 code and some tests) : #include "machine/nvram.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "emupal.h" #include "screen.h" @@ -3609,9 +3608,6 @@ void royalmah_state::jansou(machine_config &config) GENERIC_LATCH_8(config, m_soundlatch); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void royalmah_state::dondenmj(machine_config &config) diff --git a/src/mame/drivers/s11.cpp b/src/mame/drivers/s11.cpp index e6219180c92..cce8cc20b8f 100644 --- a/src/mame/drivers/s11.cpp +++ b/src/mame/drivers/s11.cpp @@ -25,7 +25,6 @@ ToDo: #include "includes/s11.h" #include "cpu/m6809/m6809.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s11.lh" @@ -467,8 +466,6 @@ void s11_state::s11(machine_config &config) INPUT_MERGER_ANY_HIGH(config, m_audioirq).output_handler().set_inputline(m_audiocpu, M6808_IRQ_LINE); MC1408(config, m_dac, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); // common CVSD filter for system 11 and 11a, this is also the same filter circuit as Sinistar/System 6 uses, and is ALMOST the same filter from the s11 bg sound boards, see /mame/audio/s11c_bg.cpp // The CVSD filter has a large gain, about 4.6x diff --git a/src/mame/drivers/s11a.cpp b/src/mame/drivers/s11a.cpp index 9a8b8f6a001..022f36bfab8 100644 --- a/src/mame/drivers/s11a.cpp +++ b/src/mame/drivers/s11a.cpp @@ -26,7 +26,6 @@ Note: To start a game, certain switches need to be activated. You must first pr #include "includes/s11a.h" #include "cpu/m6809/m6809.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s11a.lh" @@ -219,8 +218,6 @@ void s11a_state::s11a_base(machine_config &config) INPUT_MERGER_ANY_HIGH(config, m_audioirq).output_handler().set_inputline(m_audiocpu, M6802_IRQ_LINE); MC1408(config, m_dac, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); // common CVSD filter for system 11 and 11a, this is also the same filter circuit as Sinistar/System 6 uses, // and is ALMOST the same filter from the s11 bg sound boards, see /mame/audio/s11c_bg.cpp diff --git a/src/mame/drivers/s11b.cpp b/src/mame/drivers/s11b.cpp index a91622b7e22..31c169ffa3b 100644 --- a/src/mame/drivers/s11b.cpp +++ b/src/mame/drivers/s11b.cpp @@ -45,7 +45,6 @@ #include "includes/s11b.h" #include "cpu/m6809/m6809.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s11b.lh" @@ -301,8 +300,6 @@ void s11b_state::s11b_base(machine_config &config) INPUT_MERGER_ANY_HIGH(config, m_audioirq).output_handler().set_inputline(m_audiocpu, M6802_IRQ_LINE); MC1408(config, m_dac, 0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, m_dac, -1.0, DAC_VREF_NEG_INPUT); // this CVSD filter differs from the one on system 11 and 11a, possibly simplified so it uses more of the same components, or so it has a different // shape/cutoff than the filter on the bg music/speech board, on purpose. diff --git a/src/mame/drivers/s3.cpp b/src/mame/drivers/s3.cpp index c2f3b4c39d7..1890924dd16 100644 --- a/src/mame/drivers/s3.cpp +++ b/src/mame/drivers/s3.cpp @@ -44,7 +44,6 @@ ToDo: #include "machine/6821pia.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s3.lh" @@ -506,9 +505,6 @@ void s3_state::s3a(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); PIA6821(config, m_pias, 0); m_pias->readpb_handler().set(FUNC(s3_state::sound_r)); diff --git a/src/mame/drivers/s4.cpp b/src/mame/drivers/s4.cpp index 699d0fecb27..a41a8c11e53 100644 --- a/src/mame/drivers/s4.cpp +++ b/src/mame/drivers/s4.cpp @@ -38,7 +38,6 @@ ToDo: #include "machine/6821pia.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s4.lh" @@ -501,9 +500,6 @@ void s4_state::s4a(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); PIA6821(config, m_pias, 0); m_pias->readpb_handler().set(FUNC(s4_state::sound_r)); diff --git a/src/mame/drivers/s6.cpp b/src/mame/drivers/s6.cpp index 7a55a8bee15..dfac8da01b3 100644 --- a/src/mame/drivers/s6.cpp +++ b/src/mame/drivers/s6.cpp @@ -53,7 +53,6 @@ ToDo: #include "machine/6821pia.h" #include "sound/dac.h" #include "sound/hc55516.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s6.lh" @@ -472,9 +471,6 @@ void s6_state::s6(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SPEAKER(config, "speech").front_center(); HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, "speech", 1.00); diff --git a/src/mame/drivers/s6a.cpp b/src/mame/drivers/s6a.cpp index 35a4ebecd29..3ed8b6a7868 100644 --- a/src/mame/drivers/s6a.cpp +++ b/src/mame/drivers/s6a.cpp @@ -46,7 +46,6 @@ ToDo: #include "machine/6821pia.h" #include "sound/dac.h" #include "sound/hc55516.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s6a.lh" @@ -455,9 +454,6 @@ void s6a_state::s6a(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SPEAKER(config, "speech").front_center(); HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, "speech", 1.00); diff --git a/src/mame/drivers/s7.cpp b/src/mame/drivers/s7.cpp index 306258bc279..c3f36070c4f 100644 --- a/src/mame/drivers/s7.cpp +++ b/src/mame/drivers/s7.cpp @@ -62,7 +62,6 @@ ToDo: #include "machine/6821pia.h" #include "sound/dac.h" #include "sound/hc55516.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s7.lh" @@ -507,9 +506,6 @@ void s7_state::s7(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SPEAKER(config, "speech").front_center(); HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, "speech", 1.00); diff --git a/src/mame/drivers/s8.cpp b/src/mame/drivers/s8.cpp index 805c608c5c8..24e46a53a8b 100644 --- a/src/mame/drivers/s8.cpp +++ b/src/mame/drivers/s8.cpp @@ -50,7 +50,6 @@ ToDo: #include "cpu/m6800/m6800.h" #include "machine/6821pia.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s8.lh" @@ -380,9 +379,6 @@ void s8_state::s8(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); PIA6821(config, m_pias, 0); m_pias->readpa_handler().set(FUNC(s8_state::sound_r)); diff --git a/src/mame/drivers/s8a.cpp b/src/mame/drivers/s8a.cpp index 89e691a1dae..abf684b3204 100644 --- a/src/mame/drivers/s8a.cpp +++ b/src/mame/drivers/s8a.cpp @@ -26,7 +26,6 @@ ToDo: #include "cpu/m6800/m6800.h" #include "machine/6821pia.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s8a.lh" @@ -352,9 +351,6 @@ void s8a_state::s8a(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); PIA6821(config, m_pias, 0); m_pias->readpa_handler().set(FUNC(s8a_state::sound_r)); diff --git a/src/mame/drivers/s9.cpp b/src/mame/drivers/s9.cpp index b9a1801b84d..1aee5d79c89 100644 --- a/src/mame/drivers/s9.cpp +++ b/src/mame/drivers/s9.cpp @@ -37,7 +37,6 @@ ToDo: #include "machine/genpin.h" #include "sound/dac.h" #include "sound/hc55516.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "s9.lh" @@ -385,9 +384,6 @@ void s9_state::s9(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SPEAKER(config, "speech").front_center(); HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, "speech", 1.00); diff --git a/src/mame/drivers/saitek_ccompan.cpp b/src/mame/drivers/saitek_ccompan.cpp index 7bb0a60e814..679dce3c18a 100644 --- a/src/mame/drivers/saitek_ccompan.cpp +++ b/src/mame/drivers/saitek_ccompan.cpp @@ -24,7 +24,6 @@ Hardware notes: #include "machine/6821pia.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -210,7 +209,6 @@ void ccompan_state::ccompan(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/saitek_corona.cpp b/src/mame/drivers/saitek_corona.cpp index 5351b2e264e..d62e10a0b78 100644 --- a/src/mame/drivers/saitek_corona.cpp +++ b/src/mame/drivers/saitek_corona.cpp @@ -18,7 +18,6 @@ different compared to Stratos/Turbo King. #include "machine/nvram.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -292,7 +291,6 @@ void corona_state::corona(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* extension rom */ GENERIC_CARTSLOT(config, "extrom", generic_plain_slot, "saitek_egr"); diff --git a/src/mame/drivers/saitek_cp2000.cpp b/src/mame/drivers/saitek_cp2000.cpp index a71e6512199..78b4f609857 100644 --- a/src/mame/drivers/saitek_cp2000.cpp +++ b/src/mame/drivers/saitek_cp2000.cpp @@ -31,7 +31,6 @@ Capturing pieces is also unintuitive, having to press the destination square twi #include "video/pwm.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" // internal artwork @@ -235,7 +234,6 @@ void cp2000_state::cp2000(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/saitek_intchess.cpp b/src/mame/drivers/saitek_intchess.cpp index 3e7d65bf3f8..04c5e030b28 100644 --- a/src/mame/drivers/saitek_intchess.cpp +++ b/src/mame/drivers/saitek_intchess.cpp @@ -33,7 +33,6 @@ TODO: #include "machine/mm74c922.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "emupal.h" @@ -331,7 +330,6 @@ void intchess_state::intchess(machine_config &config) // sound hardware SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); // cassette CASSETTE(config, m_cass); diff --git a/src/mame/drivers/saitek_leonardo.cpp b/src/mame/drivers/saitek_leonardo.cpp index e5a67f1d2f1..2a7a6b1a520 100644 --- a/src/mame/drivers/saitek_leonardo.cpp +++ b/src/mame/drivers/saitek_leonardo.cpp @@ -54,7 +54,6 @@ TODO: #include "cpu/m6800/m6801.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -313,7 +312,6 @@ void leo_state::leo(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void leo_state::leoa(machine_config &config) diff --git a/src/mame/drivers/saitek_mark5.cpp b/src/mame/drivers/saitek_mark5.cpp index 827fa92d5be..f87a57bc2eb 100644 --- a/src/mame/drivers/saitek_mark5.cpp +++ b/src/mame/drivers/saitek_mark5.cpp @@ -50,7 +50,6 @@ TODO: #include "machine/nvram.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/hlcd0538.h" #include "video/pwm.h" @@ -444,7 +443,6 @@ void mark5_state::mark5(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void mark5_state::mark6(machine_config &config) diff --git a/src/mame/drivers/saitek_minichess.cpp b/src/mame/drivers/saitek_minichess.cpp index feaa9bd7c4c..9642b5d212c 100644 --- a/src/mame/drivers/saitek_minichess.cpp +++ b/src/mame/drivers/saitek_minichess.cpp @@ -29,7 +29,6 @@ It works on the old A34 MCU because the game keeps reading D0 while computing. #include "cpu/hmcs40/hmcs40.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" diff --git a/src/mame/drivers/saitek_prschess.cpp b/src/mame/drivers/saitek_prschess.cpp index 343cec7a17c..d9d8095bfda 100644 --- a/src/mame/drivers/saitek_prschess.cpp +++ b/src/mame/drivers/saitek_prschess.cpp @@ -27,7 +27,6 @@ TODO: #include "cpu/m6502/m6502.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "speaker.h" @@ -203,7 +202,6 @@ void prschess_state::prschess(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/saitek_renaissance.cpp b/src/mame/drivers/saitek_renaissance.cpp index dc107ac60e8..1a64cd9bced 100644 --- a/src/mame/drivers/saitek_renaissance.cpp +++ b/src/mame/drivers/saitek_renaissance.cpp @@ -34,7 +34,6 @@ TODO: #include "cpu/m6800/m6801.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "video/sed1500.h" @@ -333,7 +332,6 @@ void ren_state::ren(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/saitek_risc2500.cpp b/src/mame/drivers/saitek_risc2500.cpp index 6ac03d1ae67..8f9a6edd158 100644 --- a/src/mame/drivers/saitek_risc2500.cpp +++ b/src/mame/drivers/saitek_risc2500.cpp @@ -29,7 +29,6 @@ TODO: #include "machine/nvram.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -310,9 +309,6 @@ void risc2500_state::risc2500(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/saitek_schess.cpp b/src/mame/drivers/saitek_schess.cpp index 587407e1da1..8cc9bd427d0 100644 --- a/src/mame/drivers/saitek_schess.cpp +++ b/src/mame/drivers/saitek_schess.cpp @@ -36,7 +36,6 @@ Expansion modules: (* denotes not dumped) #include "cpu/m6502/m6502.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -228,7 +227,6 @@ void schess_state::schess(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/saitek_simultano.cpp b/src/mame/drivers/saitek_simultano.cpp index a01e5f80391..2ce323a8a73 100644 --- a/src/mame/drivers/saitek_simultano.cpp +++ b/src/mame/drivers/saitek_simultano.cpp @@ -31,7 +31,6 @@ TODO: #include "machine/nvram.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "video/sed1500.h" #include "bus/generic/slot.h" @@ -334,7 +333,6 @@ void simultano_state::simultano(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* extension rom */ GENERIC_CARTSLOT(config, "extrom", generic_plain_slot, "saitek_egr"); diff --git a/src/mame/drivers/saitek_ssystem3.cpp b/src/mame/drivers/saitek_ssystem3.cpp index 08ae361f714..137a4811353 100644 --- a/src/mame/drivers/saitek_ssystem3.cpp +++ b/src/mame/drivers/saitek_ssystem3.cpp @@ -75,7 +75,6 @@ BTANB (ssystem3): #include "machine/6821pia.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/hlcd0438.h" #include "video/md4330b.h" #include "video/pwm.h" @@ -485,7 +484,6 @@ void ssystem3_state::ssystem4(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void ssystem3_state::ssystem3(machine_config &config) diff --git a/src/mame/drivers/saitek_stratos.cpp b/src/mame/drivers/saitek_stratos.cpp index c370141917e..89536c540c9 100644 --- a/src/mame/drivers/saitek_stratos.cpp +++ b/src/mame/drivers/saitek_stratos.cpp @@ -55,7 +55,6 @@ very few bytes difference between revisions. The first Corona is engine version #include "machine/nvram.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -490,7 +489,6 @@ void stratos_state::stratos(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* extension rom */ GENERIC_CARTSLOT(config, "extrom", generic_plain_slot, "saitek_egr"); diff --git a/src/mame/drivers/saitek_superstar.cpp b/src/mame/drivers/saitek_superstar.cpp index c7ee52d972a..88642fd02ce 100644 --- a/src/mame/drivers/saitek_superstar.cpp +++ b/src/mame/drivers/saitek_superstar.cpp @@ -43,7 +43,6 @@ TODO: #include "cpu/m6502/r65c02.h" #include "machine/sensorboard.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pwm.h" #include "bus/generic/slot.h" #include "bus/generic/carts.h" @@ -213,7 +212,6 @@ void star_state::sstar28k(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } void star_state::tstar432(machine_config &config) diff --git a/src/mame/drivers/sbasketb.cpp b/src/mame/drivers/sbasketb.cpp index e26f4fb0077..e1ca44a30a3 100644 --- a/src/mame/drivers/sbasketb.cpp +++ b/src/mame/drivers/sbasketb.cpp @@ -50,7 +50,6 @@ CPU/Video Board Parts: #include "machine/gen_latch.h" #include "machine/konami1.h" #include "machine/watchdog.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -233,9 +232,6 @@ void sbasketb_state::sbasketb(machine_config &config) TRACKFLD_AUDIO(config, m_soundbrd, 0, m_audiocpu, m_vlm); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SN76489(config, m_sn, XTAL(14'318'181) / 8).add_route(ALL_OUTPUTS, "speaker", 1.0); diff --git a/src/mame/drivers/sbrkout.cpp b/src/mame/drivers/sbrkout.cpp index 80660b64db0..466b0cf2e17 100644 --- a/src/mame/drivers/sbrkout.cpp +++ b/src/mame/drivers/sbrkout.cpp @@ -39,7 +39,6 @@ #include "machine/74259.h" #include "machine/watchdog.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -572,7 +571,6 @@ void sbrkout_state::sbrkout(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.99); - VOLTAGE_REGULATOR(config, "vref").add_route(0, m_dac, 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/sc2.cpp b/src/mame/drivers/sc2.cpp index 9643933c91a..9ef10d8030c 100644 --- a/src/mame/drivers/sc2.cpp +++ b/src/mame/drivers/sc2.cpp @@ -34,7 +34,6 @@ Fidelity CC10 synonyms: RE, LV, RV, PB, ♪, CL, EN #include "machine/z80pio.h" #include "video/pwm.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "sc2.lh" @@ -218,7 +217,6 @@ void sc2_state::sc2(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/scyclone.cpp b/src/mame/drivers/scyclone.cpp index 113d0d23104..ae84432f925 100644 --- a/src/mame/drivers/scyclone.cpp +++ b/src/mame/drivers/scyclone.cpp @@ -45,7 +45,6 @@ #include "machine/mb14241.h" #include "sound/dac.h" #include "sound/sn76477.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" @@ -654,15 +653,7 @@ void scyclone_state::scyclone(machine_config &config) DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); - DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - - voltage_regulator_device &vref2(VOLTAGE_REGULATOR(config, "vref2", 0)); - vref2.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); - vref2.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } ROM_START( scyclone ) diff --git a/src/mame/drivers/segas16a.cpp b/src/mame/drivers/segas16a.cpp index e1f90ff25a6..71f9436f6d0 100644 --- a/src/mame/drivers/segas16a.cpp +++ b/src/mame/drivers/segas16a.cpp @@ -155,7 +155,6 @@ Tetris - - - - EPR12169 EPR12170 - #include "machine/nvram.h" #include "machine/segacrp2_device.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -2008,9 +2007,6 @@ void segas16a_state::system16a(machine_config &config) m_ymsnd->add_route(ALL_OUTPUTS, "speaker", 0.43); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/segas16b.cpp b/src/mame/drivers/segas16b.cpp index e18eddcfe9c..9077aa04779 100644 --- a/src/mame/drivers/segas16b.cpp +++ b/src/mame/drivers/segas16b.cpp @@ -4274,9 +4274,6 @@ void dfjail_state::dfjail(machine_config &config) config.device_remove("upd"); AD7533(config, m_dac, 0).add_route(ALL_OUTPUTS, "mono", 0.25); // AD7533KN - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/segas24.cpp b/src/mame/drivers/segas24.cpp index 0547a0506a0..a786d80eaa1 100644 --- a/src/mame/drivers/segas24.cpp +++ b/src/mame/drivers/segas24.cpp @@ -347,7 +347,6 @@ Notes: #include "machine/upd4701.h" #include "machine/315_5296.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "sound/ym2151.h" #include "video/segaic24.h" #include "speaker.h" @@ -1961,9 +1960,6 @@ void segas24_state::system24(machine_config &config) ymsnd.add_route(1, "rspeaker", 0.50); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void segas24_state::system24_rom(machine_config &config) diff --git a/src/mame/drivers/seicross.cpp b/src/mame/drivers/seicross.cpp index ae7ceb1dd8f..e77300ced62 100644 --- a/src/mame/drivers/seicross.cpp +++ b/src/mame/drivers/seicross.cpp @@ -47,7 +47,6 @@ This info came from http://www.ne.jp/asahi/cc-sakura/akkun/old/fryski.html #include "cpu/z80/z80.h" #include "machine/watchdog.h" #include "sound/ay8910.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -418,9 +417,6 @@ void seicross_state::no_nvram(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.12); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/senjyo.cpp b/src/mame/drivers/senjyo.cpp index 8e7ccda05df..cf8ccb5184a 100644 --- a/src/mame/drivers/senjyo.cpp +++ b/src/mame/drivers/senjyo.cpp @@ -83,7 +83,6 @@ I/O read/write #include "cpu/z80/z80.h" #include "machine/segacrpt_device.h" #include "sound/sn76496.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -595,9 +594,6 @@ void senjyo_state::senjyo(machine_config &config) SN76496(config, "sn3", 2000000).add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.05); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/shangkid.cpp b/src/mame/drivers/shangkid.cpp index 243889f988b..652548ce278 100644 --- a/src/mame/drivers/shangkid.cpp +++ b/src/mame/drivers/shangkid.cpp @@ -57,7 +57,6 @@ Games by Nihon Game/Culture Brain: #include "machine/74259.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -421,9 +420,6 @@ void shangkid_state::chinhero(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); AY8910(config, m_aysnd, XTAL(18'432'000)/12); /* verified on pcb */ m_aysnd->port_a_write_callback().set(FUNC(shangkid_state::chinhero_ay8910_porta_w)); diff --git a/src/mame/drivers/shisen.cpp b/src/mame/drivers/shisen.cpp index 5087af2b442..56de5144a3d 100644 --- a/src/mame/drivers/shisen.cpp +++ b/src/mame/drivers/shisen.cpp @@ -15,7 +15,6 @@ driver by Nicola Salmoria #include "machine/gen_latch.h" #include "machine/rstbuf.h" #include "sound/ym2151.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -240,9 +239,6 @@ void shisen_state::shisen(machine_config &config) ymsnd.add_route(1, "rspeaker", 0.5); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/slc1a.cpp b/src/mame/drivers/slc1a.cpp index 44f267fc26e..ee05137f3e3 100644 --- a/src/mame/drivers/slc1a.cpp +++ b/src/mame/drivers/slc1a.cpp @@ -18,7 +18,6 @@ TODO: #include "cpu/z80/z80.h" #include "machine/z80pio.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "slc1a.lh" @@ -192,7 +191,6 @@ void slc1_state::slc1(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/spdheat.cpp b/src/mame/drivers/spdheat.cpp index 024553dde16..117bd691665 100644 --- a/src/mame/drivers/spdheat.cpp +++ b/src/mame/drivers/spdheat.cpp @@ -21,7 +21,6 @@ #include "machine/watchdog.h" #include "sound/2203intf.h" #include "sound/flt_vol.h" -#include "sound/volt_reg.h" static constexpr XTAL MASTER_CLOCK = 16_MHz_XTAL; @@ -774,9 +773,6 @@ void spdheat_state::spdheat(machine_config &config) ym4.add_route(ALL_OUTPUTS, "mono", 0.3); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "mono", 0.3); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/special.cpp b/src/mame/drivers/special.cpp index f5cb7d7ef24..bc5bbd4ee31 100644 --- a/src/mame/drivers/special.cpp +++ b/src/mame/drivers/special.cpp @@ -55,7 +55,6 @@ ToDo: #include "emu.h" #include "includes/special.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -504,8 +503,6 @@ void special_state::special(machine_config &config) /* audio hardware */ SPEAKER(config, "mono").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.0625); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* Devices */ I8255(config, m_ppi); @@ -603,8 +600,6 @@ void special_state::erik(machine_config &config) /* audio hardware */ SPEAKER(config, "mono").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.0625); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* Devices */ CASSETTE(config, m_cassette); diff --git a/src/mame/drivers/ssozumo.cpp b/src/mame/drivers/ssozumo.cpp index 3086dbf6485..7d80fc34d19 100644 --- a/src/mame/drivers/ssozumo.cpp +++ b/src/mame/drivers/ssozumo.cpp @@ -17,7 +17,6 @@ Driver by Takahiro Nogi (nogi@kt.rim.or.jp) 1999/10/04 #include "machine/gen_latch.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -228,9 +227,6 @@ void ssozumo_state::ssozumo(machine_config &config) YM2149(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.3); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/starfire.cpp b/src/mame/drivers/starfire.cpp index f8d3ba57a7f..7b03b2d79c6 100644 --- a/src/mame/drivers/starfire.cpp +++ b/src/mame/drivers/starfire.cpp @@ -493,9 +493,6 @@ void starfire_state::starfire(machine_config &config) NETLIST_ANALOG_OUTPUT(config, "sound_nl:output", 0).set_params("OUTPUT", FUNC(starfire_state::sound_out_cb)); DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "mono", 0.5); // Not actually a DAC, just here to receive output. - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/suna16.cpp b/src/mame/drivers/suna16.cpp index 7bbb68afac5..d7dc54fe370 100644 --- a/src/mame/drivers/suna16.cpp +++ b/src/mame/drivers/suna16.cpp @@ -32,7 +32,6 @@ Year + Game By Board Hardware #include "sound/3526intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "sound/ym2151.h" #include "speaker.h" @@ -865,15 +864,6 @@ void suna16_state::bssoccer(machine_config &config) DAC_4BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.2); // unknown DAC DAC_4BIT_R2R(config, "ldac2", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.2); // unknown DAC DAC_4BIT_R2R(config, "rdac2", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.2); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "ldac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac2", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac2", -1.0, DAC_VREF_NEG_INPUT); } @@ -927,11 +917,6 @@ void suna16_state::uballoon(machine_config &config) DAC_4BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC DAC_4BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } @@ -985,11 +970,6 @@ void suna16_state::sunaq(machine_config &config) DAC_4BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC DAC_4BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } @@ -1055,15 +1035,6 @@ void suna16_state::bestbest(machine_config &config) DAC_4BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.2); // unknown DAC DAC_4BIT_R2R(config, "ldac2", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.2); // unknown DAC DAC_4BIT_R2R(config, "rdac2", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.2); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "ldac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac2", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac2", -1.0, DAC_VREF_NEG_INPUT); } /*************************************************************************** diff --git a/src/mame/drivers/suna8.cpp b/src/mame/drivers/suna8.cpp index 61e0e1cbb55..8b07f07e697 100644 --- a/src/mame/drivers/suna8.cpp +++ b/src/mame/drivers/suna8.cpp @@ -44,7 +44,6 @@ Notes: #include "sound/3812intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -2056,15 +2055,6 @@ void suna8_state::brickzn11(machine_config &config) DAC_4BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "speaker", 0.17); // unknown DAC DAC_4BIT_R2R(config, "ldac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.17); // unknown DAC DAC_4BIT_R2R(config, "rdac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.17); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "ldac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac2", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac2", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac2", -1.0, DAC_VREF_NEG_INPUT); } void suna8_state::brickzn(machine_config &config) diff --git a/src/mame/drivers/tagteam.cpp b/src/mame/drivers/tagteam.cpp index 995dbf54b9b..8c1276b1bba 100644 --- a/src/mame/drivers/tagteam.cpp +++ b/src/mame/drivers/tagteam.cpp @@ -32,7 +32,6 @@ TODO: #include "cpu/m6502/m6502.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -241,9 +240,6 @@ void tagteam_state::tagteam(machine_config &config) AY8910(config, "ay2", XTAL(12'000'000)/8).add_route(ALL_OUTPUTS, "speaker", 0.25); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/taito.cpp b/src/mame/drivers/taito.cpp index e11a1eeb615..47f968ac403 100644 --- a/src/mame/drivers/taito.cpp +++ b/src/mame/drivers/taito.cpp @@ -51,7 +51,6 @@ ToDO: #include "sound/ay8910.h" #include "sound/dac.h" #include "sound/votrax.h" -#include "sound/volt_reg.h" #include "speaker.h" #include "taito.lh" @@ -362,9 +361,6 @@ void taito_state::taito(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.475); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); PIA6821(config, m_pia); //m_pia->readpa_handler().set(FUNC(taito_state::pia_pa_r)); diff --git a/src/mame/drivers/taitosj.cpp b/src/mame/drivers/taitosj.cpp index a9743f63004..6cc22351eb5 100644 --- a/src/mame/drivers/taitosj.cpp +++ b/src/mame/drivers/taitosj.cpp @@ -1842,8 +1842,8 @@ void taitosj_state::nomcu(machine_config &config) DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // 30k r-2r network DISCRETE(config, m_dacvol, taitosj_dacvol_discrete); - m_dacvol->add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - m_dacvol->add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); + m_dacvol->add_route(0, "dac", 1.0, DAC_INPUT_RANGE_HI); + m_dacvol->add_route(0, "dac", -1.0, DAC_INPUT_RANGE_LO); } diff --git a/src/mame/drivers/talkingbb.cpp b/src/mame/drivers/talkingbb.cpp index ad30b938380..98814a14ecb 100644 --- a/src/mame/drivers/talkingbb.cpp +++ b/src/mame/drivers/talkingbb.cpp @@ -107,7 +107,6 @@ Substitutes: #include "cpu/mcs51/mcs51.h" #include "video/pwm.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" // internal artwork @@ -331,9 +330,6 @@ void talkingbb_state::talkingbb(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/talkingfb.cpp b/src/mame/drivers/talkingfb.cpp index 38ed67a317b..fab4ad509c0 100644 --- a/src/mame/drivers/talkingfb.cpp +++ b/src/mame/drivers/talkingfb.cpp @@ -30,7 +30,6 @@ TODO: #include "emu.h" #include "cpu/mcs51/mcs51.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -236,9 +235,6 @@ void talkingfb_state::talkingfb(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/tceptor.cpp b/src/mame/drivers/tceptor.cpp index 2254880d9b7..dd8941b0263 100644 --- a/src/mame/drivers/tceptor.cpp +++ b/src/mame/drivers/tceptor.cpp @@ -18,7 +18,6 @@ #include "machine/nvram.h" #include "sound/dac.h" #include "sound/ym2151.h" -#include "sound/volt_reg.h" #include "rendlay.h" #include "speaker.h" @@ -372,10 +371,6 @@ void tceptor_state::tceptor(machine_config &config) dac_8bit_r2r_device &dac(DAC_8BIT_R2R(config, "dac", 0)); // unknown DAC dac.add_route(ALL_OUTPUTS, "lspeaker", 0.4); dac.add_route(ALL_OUTPUTS, "rspeaker", 0.4); - - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/terracre.cpp b/src/mame/drivers/terracre.cpp index 9d2d3f6d87e..54e38501149 100644 --- a/src/mame/drivers/terracre.cpp +++ b/src/mame/drivers/terracre.cpp @@ -88,7 +88,6 @@ AT-2 #include "sound/2203intf.h" #include "sound/3526intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -487,9 +486,6 @@ void terracre_state::ym3526(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } void terracre_state::ym2203(machine_config &config) diff --git a/src/mame/drivers/thomson.cpp b/src/mame/drivers/thomson.cpp index b4439a80989..ab4c00ca56b 100644 --- a/src/mame/drivers/thomson.cpp +++ b/src/mame/drivers/thomson.cpp @@ -86,7 +86,6 @@ #include "machine/clock.h" #include "machine/ram.h" #include "machine/wd_fdc.h" -#include "sound/volt_reg.h" #include "softlist.h" #include "speaker.h" @@ -661,10 +660,6 @@ void thomson_state::to7_base(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "buzzer", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); DAC_6BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // 6-bit game extension R-2R DAC (R=10K) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "buzzer", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* speech synthesis */ MEA8000(config, m_mea8000, 3840000).add_route(ALL_OUTPUTS, "speaker", 1.0); diff --git a/src/mame/drivers/tnzs.cpp b/src/mame/drivers/tnzs.cpp index 51f01bc2e47..1c7abfefb6b 100644 --- a/src/mame/drivers/tnzs.cpp +++ b/src/mame/drivers/tnzs.cpp @@ -626,7 +626,6 @@ Driver by Takahiro Nogi (nogi@kt.rim.or.jp) 1999/11/06 #include "cpu/z80/z80.h" #include "sound/2203intf.h" -#include "sound/volt_reg.h" #include "sound/ym2151.h" #include "screen.h" #include "speaker.h" @@ -1700,9 +1699,6 @@ void kabukiz_state::kabukiz(machine_config &config) ymsnd.port_b_write_callback().set("dac", FUNC(dac_byte_interface::data_w)); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void jpopnics_state::jpopnics(machine_config &config) diff --git a/src/mame/drivers/trackfld.cpp b/src/mame/drivers/trackfld.cpp index 4fdb8089b13..f2907d5e106 100644 --- a/src/mame/drivers/trackfld.cpp +++ b/src/mame/drivers/trackfld.cpp @@ -191,7 +191,6 @@ MAIN BOARD: #include "machine/konami1.h" #include "machine/nvram.h" #include "machine/watchdog.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -943,9 +942,6 @@ void trackfld_state::trackfld(machine_config &config) TRACKFLD_AUDIO(config, m_soundbrd, 0, m_audiocpu, m_vlm); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // ls374.8e + r34-r47(20k) + r35-r53(10k) + r54(20k) + upc324.8f - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SN76496(config, m_sn, SOUND_CLOCK/8); m_sn->add_route(ALL_OUTPUTS, "speaker", 1.0); @@ -1018,9 +1014,6 @@ void trackfld_state::yieartf(machine_config &config) TRACKFLD_AUDIO(config, m_soundbrd, 0, finder_base::DUMMY_TAG, m_vlm); DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // ls374.8e + r34-r47(20k) + r35-r53(10k) + r54(20k) + upc324.8f - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); SN76496(config, m_sn, MASTER_CLOCK/6/2); m_sn->add_route(ALL_OUTPUTS, "speaker", 1.0); diff --git a/src/mame/drivers/truco.cpp b/src/mame/drivers/truco.cpp index 06a5f83e87b..bce2b81be4e 100644 --- a/src/mame/drivers/truco.cpp +++ b/src/mame/drivers/truco.cpp @@ -198,7 +198,6 @@ #include "cpu/m6809/m6809.h" #include "machine/6821pia.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "screen.h" #include "speaker.h" @@ -426,8 +425,6 @@ void truco_state::truco(machine_config &config) // sound hardware SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.4); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/trucocl.cpp b/src/mame/drivers/trucocl.cpp index 84d31497c62..d49474ec615 100644 --- a/src/mame/drivers/trucocl.cpp +++ b/src/mame/drivers/trucocl.cpp @@ -39,7 +39,6 @@ Daughterboard: Custom made, plugged in the 2 roms and Z80 mainboard sockets. #include "cpu/z80/z80.h" #include "machine/watchdog.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -206,9 +205,6 @@ void trucocl_state::trucocl(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } /*************************************************************************** diff --git a/src/mame/drivers/tsamurai.cpp b/src/mame/drivers/tsamurai.cpp index b2e29a74abe..f8f4ca3c4fe 100644 --- a/src/mame/drivers/tsamurai.cpp +++ b/src/mame/drivers/tsamurai.cpp @@ -45,7 +45,6 @@ the "America" release. #include "machine/74259.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -770,9 +769,6 @@ void tsamurai_state::tsamurai(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } @@ -818,9 +814,6 @@ void tsamurai_state::vsgongf(machine_config &config) AY8910(config,"aysnd", XTAL(24'000'000)/8).add_route(ALL_OUTPUTS, "speaker", 0.1); DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -873,9 +866,6 @@ void tsamurai_state::m660(machine_config &config) DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.1); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/tsispch.cpp b/src/mame/drivers/tsispch.cpp index 3266dc4b0e2..422ef5bc96e 100644 --- a/src/mame/drivers/tsispch.cpp +++ b/src/mame/drivers/tsispch.cpp @@ -118,7 +118,6 @@ #include "machine/clock.h" #include "machine/i8251.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -407,9 +406,6 @@ void tsispch_state::prose2k(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_12BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC (TODO: correctly figure out how the DAC works; apparently it is connected to the serial output of the upd7720, which will be "fun" to connect up) - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); rs232_port_device &rs232(RS232_PORT(config, "rs232", default_rs232_devices, "terminal")); rs232.rxd_handler().set("i8251a_u15", FUNC(i8251_device::write_rxd)); diff --git a/src/mame/drivers/ut88.cpp b/src/mame/drivers/ut88.cpp index fd83840838f..5571a30bf86 100644 --- a/src/mame/drivers/ut88.cpp +++ b/src/mame/drivers/ut88.cpp @@ -27,7 +27,6 @@ too slow. #include "formats/rk_cas.h" #include "ut88mini.lh" -#include "sound/volt_reg.h" #include "screen.h" #include "speaker.h" @@ -232,8 +231,6 @@ void ut88_state::ut88(machine_config &config) /* audio hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* Devices */ I8255A(config, m_ppi); diff --git a/src/mame/drivers/vcombat.cpp b/src/mame/drivers/vcombat.cpp index 3dd856f4fb8..42edaccb898 100644 --- a/src/mame/drivers/vcombat.cpp +++ b/src/mame/drivers/vcombat.cpp @@ -87,7 +87,6 @@ TODO : This is a partially working driver. Most of the memory maps for #include "cpu/m68000/m68000.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/mc6845.h" #include "video/tlc34076.h" #include "rendlay.h" @@ -600,9 +599,6 @@ void vcombat_state::vcombat(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_10BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } @@ -636,9 +632,6 @@ void vcombat_state::shadfgtr(machine_config &config) SPEAKER(config, "speaker").front_center(); DAC_10BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/vectrex.cpp b/src/mame/drivers/vectrex.cpp index 3b5aaaa1e4d..bbb5ddf98e1 100644 --- a/src/mame/drivers/vectrex.cpp +++ b/src/mame/drivers/vectrex.cpp @@ -17,7 +17,6 @@ Bruce Tomlin (hardware info) #include "machine/6522via.h" #include "machine/nvram.h" #include "sound/ay8910.h" -#include "sound/volt_reg.h" #include "video/vector.h" #include "softlist.h" @@ -112,9 +111,6 @@ void vectrex_base_state::vectrex_base(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); MC1408(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // mc1408.ic301 (also used for vector generation) - voltage_regulator_device &vreg(VOLTAGE_REGULATOR(config, "vref", 0)); - vreg.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); AY8912(config, m_ay8912, 6_MHz_XTAL / 4); m_ay8912->port_a_read_callback().set_ioport("BUTTONS"); diff --git a/src/mame/drivers/vg5k.cpp b/src/mame/drivers/vg5k.cpp index 18afb0dccd0..f4b9264aac8 100644 --- a/src/mame/drivers/vg5k.cpp +++ b/src/mame/drivers/vg5k.cpp @@ -55,7 +55,6 @@ #include "machine/ram.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/ef9345.h" #include "screen.h" @@ -421,8 +420,6 @@ void vg5k_state::vg5k(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cassette */ CASSETTE(config, m_cassette); diff --git a/src/mame/drivers/vidbrain.cpp b/src/mame/drivers/vidbrain.cpp index 7f52f8f3530..fb2f08f564a 100644 --- a/src/mame/drivers/vidbrain.cpp +++ b/src/mame/drivers/vidbrain.cpp @@ -54,7 +54,6 @@ Using the system: #include "includes/vidbrain.h" #include "machine/rescap.h" -#include "sound/volt_reg.h" #include "softlist.h" #include "speaker.h" @@ -433,9 +432,6 @@ void vidbrain_state::vidbrain(machine_config &config) // sound hardware SPEAKER(config, "speaker").front_center(); DAC_2BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.167); // 74ls74.u16 + 120k + 56k - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // devices F3853(config, m_smi, XTAL(4'000'000)/2); diff --git a/src/mame/drivers/videopkr.cpp b/src/mame/drivers/videopkr.cpp index d0de4d55425..3d5a7af9568 100644 --- a/src/mame/drivers/videopkr.cpp +++ b/src/mame/drivers/videopkr.cpp @@ -282,7 +282,6 @@ #include "machine/timer.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" @@ -1261,9 +1260,6 @@ void videopkr_state::videopkr(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.275); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/vigilant.cpp b/src/mame/drivers/vigilant.cpp index 0fb62713b23..1f606ef4511 100644 --- a/src/mame/drivers/vigilant.cpp +++ b/src/mame/drivers/vigilant.cpp @@ -29,7 +29,6 @@ Bottom board - M75-B-A (all versions regardless of mask ROM/EPROM) #include "machine/gen_latch.h" #include "machine/rstbuf.h" #include "sound/2203intf.h" -#include "sound/volt_reg.h" #include "sound/ym2151.h" #include "screen.h" #include "speaker.h" @@ -528,9 +527,6 @@ void vigilant_state::vigilant(machine_config &config) dac_8bit_r2r_device &dac(DAC_8BIT_R2R(config, "dac", 0)); // unknown DAC dac.add_route(ALL_OUTPUTS, "lspeaker", 1.0); dac.add_route(ALL_OUTPUTS, "rspeaker", 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void vigilant_state::buccanrs(machine_config &config) @@ -597,9 +593,6 @@ void vigilant_state::buccanrs(machine_config &config) dac_8bit_r2r_device &dac(DAC_8BIT_R2R(config, "dac", 0)); // unknown DAC dac.add_route(ALL_OUTPUTS, "lspeaker", 0.35); dac.add_route(ALL_OUTPUTS, "rspeaker", 0.35); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void vigilant_state::kikcubic(machine_config &config) @@ -650,13 +643,9 @@ void vigilant_state::kikcubic(machine_config &config) dac_8bit_r2r_device &dac(DAC_8BIT_R2R(config, "dac", 0)); // unknown DAC dac.add_route(ALL_OUTPUTS, "lspeaker", 1.0); dac.add_route(ALL_OUTPUTS, "rspeaker", 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } - /*************************************************************************** Game ROMs diff --git a/src/mame/drivers/vis.cpp b/src/mame/drivers/vis.cpp index 816e0764017..23da74910e0 100644 --- a/src/mame/drivers/vis.cpp +++ b/src/mame/drivers/vis.cpp @@ -8,7 +8,6 @@ #include "machine/at.h" #include "sound/262intf.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/pc_vga.h" #include "speaker.h" @@ -141,12 +140,6 @@ void vis_audio_device::device_add_mconfig(machine_config &config) DAC_16BIT_R2R(config, m_rdac, 0); m_ldac->add_route(ALL_OUTPUTS, "lspeaker", 1.0); // sanyo lc7883k m_rdac->add_route(ALL_OUTPUTS, "rspeaker", 1.0); // sanyo lc7883k - - voltage_regulator_device &vreg(VOLTAGE_REGULATOR(config, "vref")); - vreg.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vreg.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } uint8_t vis_audio_device::pcm_r(offs_t offset) diff --git a/src/mame/drivers/vt1682.cpp b/src/mame/drivers/vt1682.cpp index 3c815bbe116..366af75ae70 100644 --- a/src/mame/drivers/vt1682.cpp +++ b/src/mame/drivers/vt1682.cpp @@ -67,7 +67,6 @@ #include "machine/vt1682_timer.h" #include "machine/bankdev.h" #include "machine/timer.h" -#include "sound/volt_reg.h" #include "sound/dac.h" #include "emupal.h" #include "screen.h" @@ -5532,14 +5531,7 @@ void vt_vt1682_state::vt_vt1682_common(machine_config& config) SPEAKER(config, "rspeaker").front_right(); DAC_12BIT_R2R(config, m_leftdac, 0).add_route(0, "lspeaker", 0.5); // unknown 12-bit DAC - voltage_regulator_device &leftvref(VOLTAGE_REGULATOR(config, "leftvref", 0)); - leftvref.add_route(0, "leftdac", 1.0, DAC_VREF_POS_INPUT); - leftvref.add_route(0, "leftdac", -1.0, DAC_VREF_NEG_INPUT); - DAC_12BIT_R2R(config, m_rightdac, 0).add_route(0, "rspeaker", 0.5); // unknown 12-bit DAC - voltage_regulator_device &rightvref(VOLTAGE_REGULATOR(config, "rightvref", 0)); - rightvref.add_route(0, "rightdac", 1.0, DAC_VREF_POS_INPUT); - rightvref.add_route(0, "rightdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/wheelfir.cpp b/src/mame/drivers/wheelfir.cpp index 2443bdf0bf9..0bbdd0c5a54 100644 --- a/src/mame/drivers/wheelfir.cpp +++ b/src/mame/drivers/wheelfir.cpp @@ -173,7 +173,6 @@ BIT N - ( scale < 50% ) ? 1 : 0 #include "machine/gen_latch.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/ramdac.h" #include "emupal.h" #include "screen.h" @@ -757,9 +756,7 @@ void wheelfir_state::wheelfir(machine_config &config) SPEAKER(config, "rspeaker").front_right(); DAC_10BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // unknown DAC DAC_10BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); +; } diff --git a/src/mame/drivers/wildpkr.cpp b/src/mame/drivers/wildpkr.cpp index 9f77a554c81..3db4023db8f 100644 --- a/src/mame/drivers/wildpkr.cpp +++ b/src/mame/drivers/wildpkr.cpp @@ -164,7 +164,6 @@ #include "machine/nvram.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/hd63484.h" #include "video/ramdac.h" #include "emupal.h" @@ -537,9 +536,6 @@ void wildpkr_state::tabpkr(machine_config &config) /* sound hardware */ SPEAKER(config, "mono").front_center(); AD557(config, m_dac, 0).add_route(ALL_OUTPUTS, "mono", 0.50); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/wmg.cpp b/src/mame/drivers/wmg.cpp index f11d84933b9..af95a318cf9 100644 --- a/src/mame/drivers/wmg.cpp +++ b/src/mame/drivers/wmg.cpp @@ -75,7 +75,6 @@ of save-state is also needed. #include "machine/input_merger.h" #include "machine/nvram.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -534,9 +533,6 @@ void wmg_state::wmg(machine_config &config) SPEAKER(config, "speaker").front_center(); MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); /* pia */ INPUT_MERGER_ANY_HIGH(config, "mainirq").output_handler().set_inputline(m_maincpu, M6809_IRQ_LINE); diff --git a/src/mame/drivers/wrinkles.cpp b/src/mame/drivers/wrinkles.cpp index 8249ea8bcb6..ef37b3be925 100644 --- a/src/mame/drivers/wrinkles.cpp +++ b/src/mame/drivers/wrinkles.cpp @@ -16,7 +16,6 @@ TODO: #include "emu.h" #include "cpu/mcs51/mcs51.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -108,9 +107,6 @@ void wrinkles_state::wrinkles(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_8BIT_R2R(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/drivers/wyvernf0.cpp b/src/mame/drivers/wyvernf0.cpp index 56b724c5215..baab9d8071b 100644 --- a/src/mame/drivers/wyvernf0.cpp +++ b/src/mame/drivers/wyvernf0.cpp @@ -39,7 +39,6 @@ TODO: #include "sound/ay8910.h" #include "sound/msm5232.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "emupal.h" #include "screen.h" #include "speaker.h" @@ -685,9 +684,6 @@ void wyvernf0_state::wyvernf0(machine_config &config) // pin 22 Noise Output not mapped DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.25); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } /*************************************************************************** diff --git a/src/mame/drivers/xtheball.cpp b/src/mame/drivers/xtheball.cpp index eae17c07c2a..9941a10517e 100644 --- a/src/mame/drivers/xtheball.cpp +++ b/src/mame/drivers/xtheball.cpp @@ -15,7 +15,6 @@ #include "machine/nvram.h" #include "machine/watchdog.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/tlc34076.h" #include "screen.h" #include "speaker.h" @@ -331,9 +330,6 @@ void xtheball_state::xtheball(machine_config &config) SPEAKER(config, "speaker").front_center(); ZN428E(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/includes/alpha68k.h b/src/mame/includes/alpha68k.h index 8e2bf658eaa..0ebdcaff276 100644 --- a/src/mame/includes/alpha68k.h +++ b/src/mame/includes/alpha68k.h @@ -17,7 +17,6 @@ #include "sound/3812intf.h" #include "sound/ay8910.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "sound/ym2413.h" #include "machine/74259.h" #include "machine/gen_latch.h" diff --git a/src/mame/includes/segas16b.h b/src/mame/includes/segas16b.h index f9d9bbe49b3..c960b3674dc 100644 --- a/src/mame/includes/segas16b.h +++ b/src/mame/includes/segas16b.h @@ -23,7 +23,6 @@ #include "sound/ym2413.h" #include "sound/upd7759.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/segaic16.h" #include "video/sega16sp.h" #include "screen.h" diff --git a/src/mame/includes/starfire.h b/src/mame/includes/starfire.h index a0e9e5df161..c2651b9c162 100644 --- a/src/mame/includes/starfire.h +++ b/src/mame/includes/starfire.h @@ -16,7 +16,6 @@ #include "audio/nl_fireone.h" #include "audio/nl_starfire.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "screen.h" diff --git a/src/mame/includes/vicdual.h b/src/mame/includes/vicdual.h index d26932a55e9..3ff0a70fd84 100644 --- a/src/mame/includes/vicdual.h +++ b/src/mame/includes/vicdual.h @@ -13,7 +13,6 @@ #include "sound/dac.h" #include "sound/discrete.h" #include "sound/samples.h" -#include "sound/volt_reg.h" #include "screen.h" #include "audio/vicdual.h" #include "audio/vicdual-97271p.h" @@ -244,8 +243,7 @@ public: m_audiocpu(*this, "audiocpu"), m_psg(*this, "psg"), m_pit(*this, "pit"), - m_dac(*this, "dac%u", 0), - m_vref(*this, "vref%u", 0) + m_dac(*this, "dac%u", 0) { } void carnival(machine_config &config); @@ -262,7 +260,6 @@ protected: optional_device m_psg; optional_device m_pit; optional_device_array m_dac; - optional_device_array m_vref; void carnival_io_map(address_map &map); void mboard_map(address_map &map); diff --git a/src/mame/machine/hal2.cpp b/src/mame/machine/hal2.cpp index 9c6d30180ce..09061451e99 100644 --- a/src/mame/machine/hal2.cpp +++ b/src/mame/machine/hal2.cpp @@ -387,10 +387,4 @@ void hal2_device::device_add_mconfig(machine_config &config) DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0); m_rdac->add_route(ALL_OUTPUTS, "rspeaker", 0.25); - - voltage_regulator_device &vreg = VOLTAGE_REGULATOR(config, "vref"); - vreg.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vreg.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vreg.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); } diff --git a/src/mame/machine/hal2.h b/src/mame/machine/hal2.h index 30229f85c5a..cf146842c48 100644 --- a/src/mame/machine/hal2.h +++ b/src/mame/machine/hal2.h @@ -12,7 +12,6 @@ #pragma once #include "sound/dac.h" -#include "sound/volt_reg.h" #include "speaker.h" class hal2_device : public device_t diff --git a/src/mame/machine/inder_sb.cpp b/src/mame/machine/inder_sb.cpp index 5ebf0ff984d..792d2a21f70 100644 --- a/src/mame/machine/inder_sb.cpp +++ b/src/mame/machine/inder_sb.cpp @@ -6,7 +6,6 @@ #include "emu.h" #include "machine/inder_sb.h" -#include "sound/volt_reg.h" #include "speaker.h" @@ -166,15 +165,10 @@ void inder_sb_device::device_add_mconfig(machine_config &config) DAC_8BIT_R2R_TWOS_COMPLEMENT(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC DAC_8BIT_R2R_TWOS_COMPLEMENT(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC DAC_8BIT_R2R_TWOS_COMPLEMENT(config, "dac3", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC - DAC_8BIT_R2R(config, "dac0vol", 0).add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac0", -1.0, DAC_VREF_NEG_INPUT); // unknown DAC - DAC_8BIT_R2R(config, "dac1vol", 0).add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT); // unknown DAC - DAC_8BIT_R2R(config, "dac2vol", 0).add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT); // unknown DAC - DAC_8BIT_R2R(config, "dac3vol", 0).add_route(0, "dac3", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac3", -1.0, DAC_VREF_NEG_INPUT); // unknown DAC - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac0vol", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac1vol", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac2vol", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac3vol", 1.0, DAC_VREF_POS_INPUT); + DAC_8BIT_R2R(config, "dac0vol", 0).set_output_range(0, 1).add_route(0, "dac0", 1.0, DAC_INPUT_RANGE_HI).add_route(0, "dac0", -1.0, DAC_INPUT_RANGE_LO); // unknown DAC + DAC_8BIT_R2R(config, "dac1vol", 0).set_output_range(0, 1).add_route(0, "dac1", 1.0, DAC_INPUT_RANGE_HI).add_route(0, "dac1", -1.0, DAC_INPUT_RANGE_LO); // unknown DAC + DAC_8BIT_R2R(config, "dac2vol", 0).set_output_range(0, 1).add_route(0, "dac2", 1.0, DAC_INPUT_RANGE_HI).add_route(0, "dac2", -1.0, DAC_INPUT_RANGE_LO); // unknown DAC + DAC_8BIT_R2R(config, "dac3vol", 0).set_output_range(0, 1).add_route(0, "dac3", 1.0, DAC_INPUT_RANGE_HI).add_route(0, "dac3", -1.0, DAC_INPUT_RANGE_LO); // unknown DAC } diff --git a/src/mame/machine/mega32x.cpp b/src/mame/machine/mega32x.cpp index 40af33a6965..a9019c4ad3c 100644 --- a/src/mame/machine/mega32x.cpp +++ b/src/mame/machine/mega32x.cpp @@ -191,7 +191,6 @@ GFX check (these don't explicitly fails): #include "emu.h" #include "machine/mega32x.h" #include "machine/timer.h" -#include "sound/volt_reg.h" // Fifa96 needs the CPUs swapped for the gameplay to enter due to some race conditions @@ -1696,12 +1695,6 @@ void sega_32x_device::device_add_mconfig(machine_config &config) m_master_cpu->set_dma_fifo_data_available_callback(FUNC(sega_32x_device::_32x_fifo_available_callback)); #endif - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT); - vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT); - _32X_INTERLEAVE_LEVEL } diff --git a/src/mame/video/mmdisplay2.cpp b/src/mame/video/mmdisplay2.cpp index 74bd90c4139..2171c571680 100644 --- a/src/mame/video/mmdisplay2.cpp +++ b/src/mame/video/mmdisplay2.cpp @@ -14,7 +14,6 @@ TODO: #include "emu.h" #include "mmdisplay2.h" -#include "sound/volt_reg.h" DEFINE_DEVICE_TYPE(MEPHISTO_DISPLAY_MODULE2, mephisto_display_module2_device, "mdisplay2", "Mephisto Display Module 2") @@ -55,9 +54,6 @@ void mephisto_display_module2_device::device_add_mconfig(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); } void mephisto_display_module2_device::lcd_palette(palette_device &palette) const