From 82a3d44cbe6d013a8e878cafc01e4b5caea03b38 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 19 Sep 2018 21:13:23 -0400 Subject: [PATCH] coolpool.cpp: DAC type identification (nw) --- src/devices/sound/dac.h | 1 + src/mame/drivers/coolpool.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/devices/sound/dac.h b/src/devices/sound/dac.h index ef3393d3cea..96ebb2757d7 100644 --- a/src/devices/sound/dac.h +++ b/src/devices/sound/dac.h @@ -280,6 +280,7 @@ DAC_GENERATOR(DAC1200, dac1200_device, dac_word_interface, dac_code_binary<12>, DAC_GENERATOR(MC1408, mc1408_device, dac_byte_interface, dac_code_binary<8>, dac_gain_r2r, "MC1408", "mc1408") DAC_GENERATOR(MC3408, mc3408_device, dac_byte_interface, dac_code_binary<8>, dac_gain_r2r, "MC3408", "mc3408") DAC_GENERATOR(MC3410, mc3410_device, dac_word_interface, dac_code_binary<10>, dac_gain_r2r, "MC3410", "mc3410") +DAC_GENERATOR(MP1210, mp1210_device, dac_word_interface, dac_code_twos_complement<12>, dac_gain_r2r, "MP1210", "mp1210") // also addressable with separate 8-bit and 4-bit input latches DAC_GENERATOR(PCM54HP, pcm54hp_device, dac_word_interface, dac_code_binary<16>, dac_gain_r2r, "PCM54HP", "pcm54hp") DAC_GENERATOR(UDA1341TS, uda1341ts_device, dac_word_interface, dac_code_twos_complement<16>, dac_gain_r2r, "UDA1341TS", "uda1341ts") // I2C stereo audio codec DAC_GENERATOR(ZN425E, zn425e_device, dac_byte_interface, dac_code_binary<8>, dac_gain_r2r, "ZN425E", "zn425e") diff --git a/src/mame/drivers/coolpool.cpp b/src/mame/drivers/coolpool.cpp index 6167a3d461a..c9c7e9bccb6 100644 --- a/src/mame/drivers/coolpool.cpp +++ b/src/mame/drivers/coolpool.cpp @@ -17,6 +17,8 @@ The second CPU in Cool Pool and 9 Ball Shootout is a TMS320C26; the code is the same in the two games. + The audio DAC is a Micro Power Systems MP1210HN. + Cool Pool: - The checksum test routine is wrong, e.g. when it says to be testing 4U/8U it is actually reading 4U/8U/3U/7U, when testing 3U/7U it @@ -746,7 +748,7 @@ MACHINE_CONFIG_START(coolpool_state::amerdart) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_DEVICE_ADD("dac", DAC_12BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC + MCFG_DEVICE_ADD("dac", MP1210, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) MACHINE_CONFIG_END @@ -793,7 +795,7 @@ MACHINE_CONFIG_START(coolpool_state::coolpool) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_DEVICE_ADD("dac", DAC_12BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC + MCFG_DEVICE_ADD("dac", MP1210, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) MACHINE_CONFIG_END