VirtualBox

Changeset 88848 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
May 3, 2021 7:45:25 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144182
Message:

DrvHostAudioPulseAudio: Don't know why on earth we try shut down stuff on power off. Currently the device is getting the power off notification after the drivers, so we must not sabotage ourselves completely. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioPulseAudio.cpp

    r88819 r88848  
    18231823
    18241824/**
    1825  * @interface_method_impl{PDMDRVREG,pfnPowerOff}
    1826  */
    1827 static DECLCALLBACK(void) drvHostAudioPaPowerOff(PPDMDRVINS pDrvIns)
    1828 {
     1825 * Destructs a PulseAudio Audio driver instance.
     1826 *
     1827 * @copydoc FNPDMDRVDESTRUCT
     1828 */
     1829static DECLCALLBACK(void) drvHostAudioPaDestruct(PPDMDRVINS pDrvIns)
     1830{
     1831    PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
    18291832    PDRVHOSTPULSEAUDIO pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPULSEAUDIO);
    18301833    LogFlowFuncEnter();
     
    18461849    }
    18471850
    1848     LogFlowFuncLeave();
    1849 }
    1850 
    1851 
    1852 /**
    1853  * Destructs a PulseAudio Audio driver instance.
    1854  *
    1855  * @copydoc FNPDMDRVDESTRUCT
    1856  */
    1857 static DECLCALLBACK(void) drvHostAudioPaDestruct(PPDMDRVINS pDrvIns)
    1858 {
    1859     PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
    1860     LogFlowFuncEnter();
    1861     drvHostAudioPaPowerOff(pDrvIns);
    18621851    LogFlowFuncLeave();
    18631852}
     
    19001889    RT_NOREF(pCfg, fFlags);
    19011890    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    1902     AssertPtrReturn(pDrvIns, VERR_INVALID_POINTER);
    1903 
    19041891    PDRVHOSTPULSEAUDIO pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPULSEAUDIO);
    19051892    LogRel(("Audio: Initializing PulseAudio driver\n"));
     
    20682055    NULL,
    20692056    /* pfnPowerOff */
    2070     drvHostAudioPaPowerOff,
     2057    NULL,
    20712058    /* pfnSoftReset */
    20722059    NULL,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette