summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ad1848.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/ad1848.cpp')
-rw-r--r--src/devices/sound/ad1848.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/sound/ad1848.cpp b/src/devices/sound/ad1848.cpp
index b9fec7e6125..b47e3c4a683 100644
--- a/src/devices/sound/ad1848.cpp
+++ b/src/devices/sound/ad1848.cpp
@@ -5,7 +5,7 @@
// TODO: Emulate pin-compatible Crystal Semiconductor CS4231 and its extra Mode 2 features
#include "emu.h"
-#include "sound/ad1848.h"
+#include "ad1848.h"
#include "speaker.h"
@@ -32,9 +32,8 @@ void ad1848_device::device_add_mconfig(machine_config &config)
void ad1848_device::device_start()
{
- m_timer = timer_alloc(0, nullptr);
- m_irq_cb.resolve_safe();
- m_drq_cb.resolve_safe();
+ m_timer = timer_alloc(FUNC(ad1848_device::update_tick), this);
+
save_item(NAME(m_regs.idx));
save_item(NAME(m_addr));
save_item(NAME(m_stat));
@@ -156,7 +155,7 @@ void ad1848_device::dack_w(uint8_t data)
m_drq_cb(CLEAR_LINE);
}
-void ad1848_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
+TIMER_CALLBACK_MEMBER(ad1848_device::update_tick)
{
if(!m_play)
return;