summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-06 19:19:48 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-06 19:19:48 +1000
commit138b60e6c6078260b12becbc6706fa0523eea506 (patch)
tree6c5bb013da8e6ea0500148169adf2c8436e900ab /src/mame/audio
parent495ec11fdf79e06fb5102b395b7316fa273006a7 (diff)
(nw) misc follow-up
Fix MT06964 Fix µPD7759 class hierarchy, and reset callback before resolving it (fixed assert in Sega C2) Remove some more low-value device add indirection macros, default some more clocks Make cards inherit clock from slot by default
Diffstat (limited to 'src/mame/audio')
-rw-r--r--src/mame/audio/atarijsa.cpp6
-rw-r--r--src/mame/audio/leland.cpp2
-rw-r--r--src/mame/audio/s11c_bg.cpp2
-rw-r--r--src/mame/audio/williams.cpp6
-rw-r--r--src/mame/audio/wpcsnd.cpp2
5 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/audio/atarijsa.cpp b/src/mame/audio/atarijsa.cpp
index 3d854ded7c4..916e06a969a 100644
--- a/src/mame/audio/atarijsa.cpp
+++ b/src/mame/audio/atarijsa.cpp
@@ -706,7 +706,7 @@ MACHINE_CONFIG_START(atari_jsa_i_device::device_add_mconfig)
// sound hardware
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "cpu", WRITELINE(*this, atari_jsa_base_device, main_int_write_line))
- MCFG_YM2151_ADD("ym2151", JSA_MASTER_CLOCK)
+ MCFG_DEVICE_ADD("ym2151", YM2151, JSA_MASTER_CLOCK)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen))
MCFG_YM2151_PORT_WRITE_HANDLER(WRITE8(*this, atari_jsa_base_device, ym2151_port_w))
MCFG_MIXER_ROUTE(0, *this, 0.60, 0)
@@ -836,7 +836,7 @@ MACHINE_CONFIG_START(atari_jsa_ii_device::device_add_mconfig)
// sound hardware
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "cpu", WRITELINE(*this, atari_jsa_base_device, main_int_write_line))
- MCFG_YM2151_ADD("ym2151", JSA_MASTER_CLOCK)
+ MCFG_DEVICE_ADD("ym2151", YM2151, JSA_MASTER_CLOCK)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen))
MCFG_YM2151_PORT_WRITE_HANDLER(WRITE8(*this, atari_jsa_base_device, ym2151_port_w))
MCFG_MIXER_ROUTE(ALL_OUTPUTS, *this, 0.60, 0)
@@ -918,7 +918,7 @@ MACHINE_CONFIG_START(atari_jsa_iii_device::device_add_mconfig)
// sound hardware
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "cpu", WRITELINE(*this, atari_jsa_base_device, main_int_write_line))
- MCFG_YM2151_ADD("ym2151", JSA_MASTER_CLOCK)
+ MCFG_DEVICE_ADD("ym2151", YM2151, JSA_MASTER_CLOCK)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen))
MCFG_YM2151_PORT_WRITE_HANDLER(WRITE8(*this, atari_jsa_base_device, ym2151_port_w))
MCFG_MIXER_ROUTE(ALL_OUTPUTS, *this, 0.60, 0)
diff --git a/src/mame/audio/leland.cpp b/src/mame/audio/leland.cpp
index f816a7ef176..c9300beb150 100644
--- a/src/mame/audio/leland.cpp
+++ b/src/mame/audio/leland.cpp
@@ -270,7 +270,7 @@ MACHINE_CONFIG_START(wsf_80186_sound_device::device_add_mconfig)
MCFG_SOUND_ROUTE(0, "dac9", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac9", -1.0, DAC_VREF_NEG_INPUT)
/* sound hardware */
- MCFG_YM2151_ADD("ymsnd", 4000000)
+ MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000)
MCFG_SOUND_ROUTE(0, "speaker", 0.40)
MCFG_SOUND_ROUTE(1, "speaker", 0.40)
diff --git a/src/mame/audio/s11c_bg.cpp b/src/mame/audio/s11c_bg.cpp
index 802e4f19642..6a140ded447 100644
--- a/src/mame/audio/s11c_bg.cpp
+++ b/src/mame/audio/s11c_bg.cpp
@@ -62,7 +62,7 @@ MACHINE_CONFIG_START(s11c_bg_device::device_add_mconfig)
MCFG_DEVICE_PROGRAM_MAP(s11c_bg_map)
MCFG_QUANTUM_TIME(attotime::from_hz(50))
- MCFG_YM2151_ADD("ym2151", XTAL(3'579'545)) // "3.58 MHz" on schematics and parts list
+ MCFG_DEVICE_ADD("ym2151", YM2151, XTAL(3'579'545)) // "3.58 MHz" on schematics and parts list
MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, s11c_bg_device, ym2151_irq_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.25)
diff --git a/src/mame/audio/williams.cpp b/src/mame/audio/williams.cpp
index 0eae5aaa1d2..a412638617a 100644
--- a/src/mame/audio/williams.cpp
+++ b/src/mame/audio/williams.cpp
@@ -185,7 +185,7 @@ MACHINE_CONFIG_START(williams_cvsd_sound_device::device_add_mconfig)
MCFG_PIA_IRQA_HANDLER(INPUTLINE("cpu", M6809_FIRQ_LINE))
MCFG_PIA_IRQB_HANDLER(INPUTLINE("cpu", INPUT_LINE_NMI))
- MCFG_YM2151_ADD("ym2151", CVSD_FM_CLOCK)
+ MCFG_DEVICE_ADD("ym2151", YM2151, CVSD_FM_CLOCK)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("pia", pia6821_device, ca1_w)) MCFG_DEVCB_INVERT // IRQ is not true state
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.10)
@@ -502,7 +502,7 @@ MACHINE_CONFIG_START(williams_narc_sound_device::device_add_mconfig)
MCFG_DEVICE_ADD("cpu1", MC6809E, NARC_MASTER_CLOCK / 4)
MCFG_DEVICE_PROGRAM_MAP(williams_narc_slave_map)
- MCFG_YM2151_ADD("ym2151", NARC_FM_CLOCK)
+ MCFG_DEVICE_ADD("ym2151", YM2151, NARC_FM_CLOCK)
MCFG_YM2151_IRQ_HANDLER(INPUTLINE("cpu0", M6809_FIRQ_LINE))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.10)
@@ -754,7 +754,7 @@ MACHINE_CONFIG_START(williams_adpcm_sound_device::device_add_mconfig)
MCFG_DEVICE_ADD("cpu", MC6809E, ADPCM_MASTER_CLOCK / 4)
MCFG_DEVICE_PROGRAM_MAP(williams_adpcm_map)
- MCFG_YM2151_ADD("ym2151", ADPCM_FM_CLOCK)
+ MCFG_DEVICE_ADD("ym2151", YM2151, ADPCM_FM_CLOCK)
MCFG_YM2151_IRQ_HANDLER(INPUTLINE("cpu", M6809_FIRQ_LINE))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.10)
diff --git a/src/mame/audio/wpcsnd.cpp b/src/mame/audio/wpcsnd.cpp
index d96ed034a86..470790492bc 100644
--- a/src/mame/audio/wpcsnd.cpp
+++ b/src/mame/audio/wpcsnd.cpp
@@ -74,7 +74,7 @@ MACHINE_CONFIG_START(wpcsnd_device::device_add_mconfig)
MCFG_DEVICE_PROGRAM_MAP(wpcsnd_map)
MCFG_QUANTUM_TIME(attotime::from_hz(50))
- MCFG_YM2151_ADD("ym2151", 3580000)
+ MCFG_DEVICE_ADD("ym2151", YM2151, 3580000)
MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, wpcsnd_device, ym2151_irq_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.25)