Changeset 61568 in vbox
- Timestamp:
- Jun 8, 2016 9:55:02 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r61563 r61568 957 957 #endif 958 958 959 static int drvAudioHostInit(PCFGMNODE pCfgHandle, PDRVAUDIO pThis) 959 /** 960 * Initializes the host backend and queries its initial configuration. 961 * If the host backend fails, VERR_AUDIO_BACKEND_INIT_FAILED will be returned. 962 * 963 * Note: As this routine is called when attaching to the device LUN in the 964 * device emulation, we either check for success or VERR_AUDIO_BACKEND_INIT_FAILED. 965 * Everything else is considered as fatal and must be handled separately in 966 * the device emulation! 967 * 968 * @return IPRT status code. 969 * @param pThis Driver instance to be called. 970 * @param pCfgHandle CFGM configuration handle to use for this driver. 971 */ 972 static int drvAudioHostInit(PDRVAUDIO pThis, PCFGMNODE pCfgHandle) 960 973 { 961 974 /* pCfgHandle is optional. */ 975 NOREF(pCfgHandle); 962 976 AssertPtrReturn(pThis, VERR_INVALID_POINTER); 963 964 NOREF(pCfgHandle);965 977 966 978 LogFlowFuncEnter(); … … 970 982 if (RT_FAILURE(rc)) 971 983 { 972 Log FlowFunc(("Initialization of lower driver failed with rc=%Rrc\n", rc));973 return rc;984 LogRel(("Audio: Initialization of host backend failed with %Rrc\n", rc)); 985 return VERR_AUDIO_BACKEND_INIT_FAILED; 974 986 } 975 987 … … 978 990 if (RT_FAILURE(rc)) 979 991 { 980 Log FlowFunc(("Getting backend configuration failed with rc=%Rrc\n", rc));981 return rc;992 LogRel(("Audio: Getting host backend configuration failed with %Rrc\n", rc)); 993 return VERR_AUDIO_BACKEND_INIT_FAILED; 982 994 } 983 995 … … 1040 1052 */ 1041 1053 if (RT_SUCCESS(rc)) 1042 rc = drvAudioHostInit(p CfgHandle, pThis);1054 rc = drvAudioHostInit(pThis, pCfgHandle); 1043 1055 1044 1056 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.

