Changeset 54428 in vbox
- Timestamp:
- Feb 24, 2015 10:15:20 AM (10 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r54235 r54428 2672 2672 PAUDMIXSINK pSink; 2673 2673 #endif /* VBOX_WITH_PDM_AUDIO_DRIVER */ 2674 uint32_t cbWritten ;2674 uint32_t cbWritten = 0; 2675 2675 switch (enmSrc) 2676 2676 { … … 3188 3188 rc = SSMR3GetU32(pSSM, &cRegs); AssertRCReturn(rc, rc); 3189 3189 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))); 3191 3191 break; 3192 3192 … … 3221 3221 #ifdef VBOX_WITH_HDA_MIC_IN 3222 3222 bool fEnableMicIn = RT_BOOL(SDCTL(pThis, 2) & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN)); 3223 #else 3224 bool fEnableMicIn = fEnableIn; /* Mic In == Line In */ 3223 3225 #endif 3224 3226 bool fEnableOut = RT_BOOL(SDCTL(pThis, 4) & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN)); … … 3228 3230 RTListForEach(&pThis->lstDrv, pDrv, HDADRIVER, Node) 3229 3231 { 3230 rc = pDrv->pConnector->pfnEnableIn(pDrv->pConnector, pDrv->LineIn.pStrmIn, 3231 fEnableIn); 3232 rc = pDrv->pConnector->pfnEnableIn(pDrv->pConnector, pDrv->LineIn.pStrmIn, fEnableIn); 3232 3233 if (RT_FAILURE(rc)) 3233 3234 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); 3237 3236 if (RT_FAILURE(rc)) 3238 3237 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); 3242 3239 if (RT_FAILURE(rc)) 3243 3240 break; -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r54399 r54428 1401 1401 1402 1402 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 } 1404 1408 1405 1409 PPDMAUDIOHSTSTRMIN pHstStrmIn = pGstStrmIn->pHstStrmIn;
Note:
See TracChangeset
for help on using the changeset viewer.