Previous 15994 Revisions Next

r9406 Sunday 17th October, 2010 at 19:34:02 UTC by R. Belmont
[MAC] Corrected ASC interrupt storm on IIci, IIci now doesn't lock up on sound.
[src/emu/sound]asc.c

src/emu/sound/asc.c
r9405r9406
198198               m_fifo_cap_b--;
199199            }
200200
201            switch (m_chip_type)
201            if ((m_fifo_cap_a) || (m_fifo_cap_b))
202202            {
203               case ASC_TYPE_SONORA:
204                  if (m_fifo_cap_a <= 0x200)
205                  {
206                     m_regs[R_FIFOSTAT-0x800] |= 0x4;   // fifo less than half full
207                     m_regs[R_FIFOSTAT-0x800] |= 0x8;   // just pass the damn test
208                     if (m_irq_cb)
203               switch (m_chip_type)
204               {
205                  case ASC_TYPE_SONORA:
206                     if (m_fifo_cap_a <= 0x200)
209207                     {
210                        m_irq_cb(this, 1);
208                        m_regs[R_FIFOSTAT-0x800] |= 0x4;   // fifo less than half full
209                        m_regs[R_FIFOSTAT-0x800] |= 0x8;   // just pass the damn test
210                        if (m_irq_cb)
211                        {
212                           m_irq_cb(this, 1);
213                        }
211214                     }
212                  }
213                  break;
215                     break;
214216
215               default:
216                  if (m_fifo_cap_a <= 0x200)
217                  {
218                     m_regs[R_FIFOSTAT-0x800] |= 1;   // fifo A half-empty
219                     if (m_irq_cb)
217                  default:
218                     if (m_fifo_cap_a <= 0x200)
220219                     {
221                        m_irq_cb(this, 1);
220                        m_regs[R_FIFOSTAT-0x800] |= 1;   // fifo A half-empty
221                        if (m_irq_cb)
222                        {
223                           m_irq_cb(this, 1);
224                        }
222225                     }
223                  }
224226
225                  // don't update for non-(E)ASC
226                  if (m_fifo_cap_b <= 0x200)
227                  {
228                     m_regs[R_FIFOSTAT-0x800] |= 4;   // fifo B half-empty
229                     if (m_irq_cb)
227                     // don't update for non-(E)ASC
228                     if (m_fifo_cap_b <= 0x200)
230229                     {
231                        m_irq_cb(this, 1);
230                        m_regs[R_FIFOSTAT-0x800] |= 4;   // fifo B half-empty
231                        if (m_irq_cb)
232                        {
233                           m_irq_cb(this, 1);
234                        }
232235                     }
233                  }
234                  break;
236                     break;
237               }
235238            }
236239
237240            outL[i] = smpll * 64;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team