VirtualBox

Changeset 54428 in vbox


Ignore:
Timestamp:
Feb 24, 2015 10:15:20 AM (10 years ago)
Author:
vboxsync
Message:

PDM/Audio: Updates.

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r54235 r54428  
    26722672        PAUDMIXSINK pSink;
    26732673#endif /* VBOX_WITH_PDM_AUDIO_DRIVER */
    2674         uint32_t cbWritten;
     2674        uint32_t cbWritten = 0;
    26752675        switch (enmSrc)
    26762676        {
     
    31883188            rc = SSMR3GetU32(pSSM, &cRegs); AssertRCReturn(rc, rc);
    31893189            if (cRegs != RT_ELEMENTS(pThis->au32Regs))
    3190                 LogRel(("cRegs is %d, expected %d\n", cRegs, RT_ELEMENTS(pThis->au32Regs)));
     3190                LogRel(("HDA: SSM version cRegs is %RU32, expected %RU32\n", cRegs, RT_ELEMENTS(pThis->au32Regs)));
    31913191            break;
    31923192
     
    32213221#ifdef VBOX_WITH_HDA_MIC_IN
    32223222    bool fEnableMicIn = RT_BOOL(SDCTL(pThis, 2) & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN));
     3223#else
     3224    bool fEnableMicIn = fEnableIn; /* Mic In == Line In */
    32233225#endif
    32243226    bool fEnableOut   = RT_BOOL(SDCTL(pThis, 4) & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN));
     
    32283230    RTListForEach(&pThis->lstDrv, pDrv, HDADRIVER, Node)
    32293231    {
    3230         rc = pDrv->pConnector->pfnEnableIn(pDrv->pConnector, pDrv->LineIn.pStrmIn,
    3231                                            fEnableIn);
     3232        rc = pDrv->pConnector->pfnEnableIn(pDrv->pConnector, pDrv->LineIn.pStrmIn, fEnableIn);
    32323233        if (RT_FAILURE(rc))
    32333234            break;
    3234 # ifdef VBOX_WITH_HDA_MIC_IN
    3235         rc = pDrv->pConnector->pfnEnableIn(pDrv->pConnector, pDrv->MicIn.pStrmIn,
    3236                                            fEnableMicIn);
     3235        rc = pDrv->pConnector->pfnEnableIn(pDrv->pConnector, pDrv->MicIn.pStrmIn, fEnableMicIn);
    32373236        if (RT_FAILURE(rc))
    32383237            break;
    3239 # endif
    3240         rc = pDrv->pConnector->pfnEnableOut(pDrv->pConnector, pDrv->Out.pStrmOut,
    3241                                             fEnableOut);
     3238        rc = pDrv->pConnector->pfnEnableOut(pDrv->pConnector, pDrv->Out.pStrmOut, fEnableOut);
    32423239        if (RT_FAILURE(rc))
    32433240            break;
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r54399 r54428  
    14011401
    14021402    if (!pThis->pHostDrvAudio->pfnIsEnabled(pThis->pHostDrvAudio, PDMAUDIODIR_IN))
    1403         return VERR_NOT_AVAILABLE;
     1403    {
     1404        if (pcbRead)
     1405            *pcbRead = 0;
     1406        return VINF_SUCCESS;
     1407    }
    14041408
    14051409    PPDMAUDIOHSTSTRMIN pHstStrmIn = pGstStrmIn->pHstStrmIn;
Note: See TracChangeset for help on using the changeset viewer.

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