Changeset 58600 in vbox for trunk/src/VBox/Devices/Audio/DevIchHda.cpp
- Timestamp:
- Nov 6, 2015 12:26:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r58170 r58600 2303 2303 } 2304 2304 2305 static DECLCALLBACK(void) hda CloseIn(PHDASTATE pThis, PDMAUDIORECSOURCE enmRecSource)2305 static DECLCALLBACK(void) hdaDestroyIn(PHDASTATE pThis, PDMAUDIORECSOURCE enmRecSource) 2306 2306 { 2307 2307 NOREF(pThis); … … 2310 2310 } 2311 2311 2312 static DECLCALLBACK(void) hda CloseOut(PHDASTATE pThis)2312 static DECLCALLBACK(void) hdaDestroyOut(PHDASTATE pThis) 2313 2313 { 2314 2314 NOREF(pThis); … … 2316 2316 } 2317 2317 2318 static DECLCALLBACK(int) hda OpenIn(PHDASTATE pThis,2319 const char *pszName, PDMAUDIORECSOURCE enmRecSource,2320 PPDMAUDIOSTREAMCFG pCfg)2318 static DECLCALLBACK(int) hdaCreateIn(PHDASTATE pThis, 2319 const char *pszName, PDMAUDIORECSOURCE enmRecSource, 2320 PPDMAUDIOSTREAMCFG pCfg) 2321 2321 { 2322 2322 PAUDMIXSINK pSink; … … 2349 2349 } 2350 2350 2351 rc = pDrv->pConnector->pfn OpenIn(pDrv->pConnector, pszDesc, enmRecSource, pCfg, &pDrv->LineIn.pStrmIn);2352 LogFlowFunc(("LUN#%RU8: Opened input \"%s\", with rc=%Rrc\n", pDrv->uLUN, pszDesc, rc));2351 rc = pDrv->pConnector->pfnCreateIn(pDrv->pConnector, pszDesc, enmRecSource, pCfg, &pDrv->LineIn.pStrmIn); 2352 LogFlowFunc(("LUN#%RU8: Created input \"%s\", with rc=%Rrc\n", pDrv->uLUN, pszDesc, rc)); 2353 2353 if (rc == VINF_SUCCESS) /* Note: Could return VWRN_ALREADY_EXISTS. */ 2354 2354 { … … 2366 2366 } 2367 2367 2368 static DECLCALLBACK(int) hda OpenOut(PHDASTATE pThis,2369 const char *pszName, PPDMAUDIOSTREAMCFG pCfg)2368 static DECLCALLBACK(int) hdaCreateOut(PHDASTATE pThis, 2369 const char *pszName, PPDMAUDIOSTREAMCFG pCfg) 2370 2370 { 2371 2371 int rc = VINF_SUCCESS; … … 2381 2381 } 2382 2382 2383 rc = pDrv->pConnector->pfn OpenOut(pDrv->pConnector, pszDesc, pCfg, &pDrv->Out.pStrmOut);2384 LogFlowFunc(("LUN#%RU8: Opened output \"%s\", with rc=%Rrc\n", pDrv->uLUN, pszDesc, rc));2383 rc = pDrv->pConnector->pfnCreateOut(pDrv->pConnector, pszDesc, pCfg, &pDrv->Out.pStrmOut); 2384 LogFlowFunc(("LUN#%RU8: Created output \"%s\", with rc=%Rrc\n", pDrv->uLUN, pszDesc, rc)); 2385 2385 if (rc == VINF_SUCCESS) /* Note: Could return VWRN_ALREADY_EXISTS. */ 2386 2386 { … … 3761 3761 3762 3762 /* Audio driver callbacks for multiplexing. */ 3763 pThis->pCodec->pfn CloseIn = hdaCloseIn;3764 pThis->pCodec->pfn CloseOut = hdaCloseOut;3765 pThis->pCodec->pfn OpenIn = hdaOpenIn;3766 pThis->pCodec->pfn OpenOut = hdaOpenOut;3767 pThis->pCodec->pfnReset = hdaCodecReset;3768 pThis->pCodec->pfnSetVolume = hdaSetVolume;3763 pThis->pCodec->pfnDestroyIn = hdaDestroyIn; 3764 pThis->pCodec->pfnDestroyOut = hdaDestroyOut; 3765 pThis->pCodec->pfnCreateIn = hdaCreateIn; 3766 pThis->pCodec->pfnCreateOut = hdaCreateOut; 3767 pThis->pCodec->pfnReset = hdaCodecReset; 3768 pThis->pCodec->pfnSetVolume = hdaSetVolume; 3769 3769 3770 3770 pThis->pCodec->pHDAState = pThis; /* Assign HDA controller state to codec. */
Note:
See TracChangeset
for help on using the changeset viewer.