qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 27/30] audio: UpdateHandler is not used anymore


From: Gerd Hoffmann
Subject: [Qemu-devel] [PULL 27/30] audio: UpdateHandler is not used anymore
Date: Thu, 4 May 2017 09:18:08 +0200

From: Juan Quintela <address@hidden>

Signed-off-by: Juan Quintela <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
 hw/audio/fmopl.h | 2 --
 hw/audio/fmopl.c | 2 --
 2 files changed, 4 deletions(-)

diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h
index b1641f56de..8410275dc3 100644
--- a/hw/audio/fmopl.h
+++ b/hw/audio/fmopl.h
@@ -92,8 +92,6 @@ typedef struct fm_opl_f {
        /* external event callback handler */
        OPL_TIMERHANDLER  TimerHandler;         /* TIMER handler   */
        int TimerParam;                                         /* TIMER 
parameter */
-       OPL_UPDATEHANDLER UpdateHandler;        /* stream update handler   */
-       int UpdateParam;                                        /* stream 
update parameter */
 } FM_OPL;
 
 /* ---------- Generic interface section ---------- */
diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c
index 5b8a884a59..99d09c55b3 100644
--- a/hw/audio/fmopl.c
+++ b/hw/audio/fmopl.c
@@ -1147,7 +1147,6 @@ int OPLWrite(FM_OPL *OPL,int a,int v)
        }
        else
        {       /* data port */
-               if(OPL->UpdateHandler) OPL->UpdateHandler(OPL->UpdateParam,0);
 #ifdef OPL_OUTPUT_LOG
        if(opl_dbg_fp)
        {
@@ -1197,7 +1196,6 @@ int OPLTimerOver(FM_OPL *OPL,int c)
                if( OPL->mode & 0x80 )
                {       /* CSM mode total level latch and auto key on */
                        int ch;
-                       if(OPL->UpdateHandler) 
OPL->UpdateHandler(OPL->UpdateParam,0);
                        for(ch=0;ch<9;ch++)
                                CSMKeyControll( &OPL->P_CH[ch] );
                }
-- 
2.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]