audio: IRQHandler is not used anymore
authorJuan Quintela <quintela@redhat.com>
Tue, 25 Apr 2017 22:37:35 +0000 (00:37 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 May 2017 07:16:05 +0000 (09:16 +0200)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-id: 20170425223739.6703-23-quintela@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/audio/fmopl.c
hw/audio/fmopl.h

index 694a77b22967c9e5bedd0618f1b5235cad8b513b..5b8a884a59cdefc474c851ded3fa95015bfe920f 100644 (file)
@@ -260,8 +260,6 @@ static inline void OPL_STATUS_SET(FM_OPL *OPL,int flag)
                if(OPL->status & OPL->statusmask)
                {       /* IRQ on */
                        OPL->status |= 0x80;
-                       /* callback user interrupt handler (IRQ is OFF to ON) */
-                       if(OPL->IRQHandler) (OPL->IRQHandler)(OPL->IRQParam,1);
                }
        }
 }
@@ -276,8 +274,6 @@ static inline void OPL_STATUS_RESET(FM_OPL *OPL,int flag)
                if (!(OPL->status & OPL->statusmask) )
                {
                        OPL->status &= 0x7f;
-                       /* callback user interrupt handler (IRQ is ON to OFF) */
-                       if(OPL->IRQHandler) (OPL->IRQHandler)(OPL->IRQParam,0);
                }
        }
 }
index 446de08d15878eb7a7e7f51b13aaba186eac84be..b1641f56de2edf6bc47c3876f29acc5c700aa470 100644 (file)
@@ -92,8 +92,6 @@ typedef struct fm_opl_f {
        /* external event callback handler */
        OPL_TIMERHANDLER  TimerHandler;         /* TIMER handler   */
        int TimerParam;                                         /* TIMER parameter */
-       OPL_IRQHANDLER    IRQHandler;           /* IRQ handler    */
-       int IRQParam;                                           /* IRQ parameter  */
        OPL_UPDATEHANDLER UpdateHandler;        /* stream update handler   */
        int UpdateParam;                                        /* stream update parameter */
 } FM_OPL;