Changeset 63819 in vbox
- Timestamp:
- Sep 13, 2016 4:50:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r63817 r63819 490 490 * Update the BM status register 491 491 */ 492 static void ichac97StreamUpdateS tatus(PAC97STATE pThis, PAC97STREAM pStream, uint32_t new_sr)492 static void ichac97StreamUpdateSR(PAC97STATE pThis, PAC97STREAM pStream, uint32_t new_sr) 493 493 { 494 494 PPDMDEVINS pDevIns = ICHAC97STATE_2_DEVINS(pThis); … … 600 600 pRegs->lvi = 0; 601 601 602 ichac97StreamUpdateStatus(pThis, pStream, AC97_SR_DCH); /** @todo Do we need to do that? */ 602 ichac97StreamSetActive(pThis, pStream, false /* fActive */); 603 604 ichac97StreamUpdateSR(pThis, pStream, AC97_SR_DCH); /** @todo Do we need to do that? */ 603 605 604 606 pRegs->picb = 0; … … 606 608 pRegs->cr = pRegs->cr & AC97_CR_DONT_CLEAR_MASK; 607 609 pRegs->bd_valid = 0; 608 609 ichac97StreamSetActive(pThis, pStream, false /* fActive */);610 610 611 611 RT_ZERO(pThis->silence); … … 1607 1607 } 1608 1608 1609 ichac97StreamUpdateS tatus(pThis, pStream, new_sr);1609 ichac97StreamUpdateSR(pThis, pStream, new_sr); 1610 1610 } 1611 1611 … … 1830 1830 { 1831 1831 ichac97StreamSetActive(pThis, pStream, false /* fActive */); 1832 1832 1833 pRegs->sr |= AC97_SR_DCH; 1833 1834 } … … 1838 1839 1839 1840 ichac97StreamFetchBDLE(pThis, pStream); 1841 ichac97StreamSetActive(pThis, pStream, true /* fActive */); 1840 1842 1841 1843 pRegs->sr &= ~AC97_SR_DCH; 1842 ichac97StreamSetActive(pThis, pStream, true /* fActive */);1843 1844 } 1844 1845 } … … 1851 1852 /* Status Register */ 1852 1853 pRegs->sr |= u32Val & ~(AC97_SR_RO_MASK | AC97_SR_WCLEAR_MASK); 1853 ichac97StreamUpdateS tatus(pThis, pStream, pRegs->sr & ~(u32Val & AC97_SR_WCLEAR_MASK));1854 ichac97StreamUpdateSR(pThis, pStream, pRegs->sr & ~(u32Val & AC97_SR_WCLEAR_MASK)); 1854 1855 Log3Func(("SR[%d] <- %#x (sr %#x)\n", AC97_PORT2IDX(uPortIdx), u32Val, pRegs->sr)); 1855 1856 break; … … 1870 1871 /* Status Register */ 1871 1872 pRegs->sr |= u32Val & ~(AC97_SR_RO_MASK | AC97_SR_WCLEAR_MASK); 1872 ichac97StreamUpdateS tatus(pThis, pStream, pRegs->sr & ~(u32Val & AC97_SR_WCLEAR_MASK));1873 ichac97StreamUpdateSR(pThis, pStream, pRegs->sr & ~(u32Val & AC97_SR_WCLEAR_MASK)); 1873 1874 Log3Func(("SR[%d] <- %#x (sr %#x)\n", AC97_PORT2IDX(uPortIdx), u32Val, pRegs->sr)); 1874 1875 break;
Note:
See TracChangeset
for help on using the changeset viewer.