summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/lc7535.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/lc7535.cpp')
-rw-r--r--src/devices/sound/lc7535.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/sound/lc7535.cpp b/src/devices/sound/lc7535.cpp
index 00f86ea2945..21a921668e3 100644
--- a/src/devices/sound/lc7535.cpp
+++ b/src/devices/sound/lc7535.cpp
@@ -40,7 +40,8 @@ DEFINE_DEVICE_TYPE(LC7535, lc7535_device, "lc7535", "Sanyo LC7535")
lc7535_device::lc7535_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, LC7535, tag, owner, clock),
- m_select_cb(*this),
+ m_select_cb(*this, 1),
+ m_volume_cb(*this),
m_addr(0), m_data(0),
m_count(0),
m_ce(0), m_di(0), m_clk(0)
@@ -53,9 +54,8 @@ lc7535_device::lc7535_device(const machine_config &mconfig, const char *tag, dev
void lc7535_device::device_start()
{
- // resolve callbacks
- m_select_cb.resolve();
- m_volume_cb.bind_relative_to(*owner());
+ // resolve delegates
+ m_volume_cb.resolve();
// register for save states
save_item(NAME(m_addr));
@@ -88,17 +88,17 @@ float lc7535_device::normalize(int attenuation)
// INTERFACE
//**************************************************************************
-WRITE_LINE_MEMBER( lc7535_device::ce_w )
+void lc7535_device::ce_w(int state)
{
m_ce = state;
}
-WRITE_LINE_MEMBER( lc7535_device::di_w )
+void lc7535_device::di_w(int state)
{
m_di = state;
}
-WRITE_LINE_MEMBER( lc7535_device::clk_w )
+void lc7535_device::clk_w(int state)
{
if (m_clk == 0 && state == 1)
{