Changeset 61001 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 17, 2016 12:53:55 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107254
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHdaCodec.cpp
r60941 r61001 3213 3213 strmCfg.enmEndianness = PDMAUDIOHOSTENDIANNESS; 3214 3214 3215 /* Note: Adding the default input/output streams is *not* critical for the overall 3216 * codec construction result. */ 3217 3215 3218 /* 3216 3219 * Output streams. … … 3221 3224 RTStrPrintf(strmCfg.szName, RT_ELEMENTS(strmCfg.szName), "Front"); 3222 3225 strmCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_FRONT; 3223 rc = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_FRONT, &strmCfg); 3224 AssertRCBreak(rc); 3226 int rc2 = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_FRONT, &strmCfg); 3227 if (RT_FAILURE(rc2)) 3228 LogRel2(("HDA: Failed to add front output stream: %Rrc\n", rc2)); 3225 3229 3226 3230 #ifdef VBOX_WITH_HDA_51_SURROUND … … 3229 3233 strmCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_CENTER_LFE; 3230 3234 /** @todo Handle mono channel if only center *or* LFE is available? */ 3231 rc = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_CENTER_LFE, &strmCfg); 3232 AssertRCBreak(rc); 3235 rc2 = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_CENTER_LFE, &strmCfg); 3236 if (RT_FAILURE(rc2)) 3237 LogRel2(("HDA: Failed to add center/LFE output stream: %Rrc\n", rc2)); 3233 3238 3234 3239 /* Rear. */ 3235 3240 RTStrPrintf(strmCfg.szName, RT_ELEMENTS(strmCfg.szName), "Rear"); 3236 3241 strmCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_REAR; 3237 rc = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_REAR, &strmCfg); 3238 AssertRCBreak(rc); 3242 rc2 = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_REAR, &strmCfg); 3243 if (RT_FAILURE(rc2)) 3244 LogRel2(("HDA: Failed to add rear output stream: %Rrc\n", rc2)); 3239 3245 #endif 3240 3246 … … 3247 3253 RTStrPrintf(strmCfg.szName, RT_ELEMENTS(strmCfg.szName), "Microphone In"); 3248 3254 strmCfg.DestSource.Source = PDMAUDIORECSOURCE_MIC; 3249 rc = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_MIC_IN, &strmCfg); 3250 AssertRCBreak(rc); 3255 rc2 = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_MIC_IN, &strmCfg); 3256 if (RT_FAILURE(rc2)) 3257 LogRel2(("HDA: Failed to add microphone input stream: %Rrc\n", rc2)); 3251 3258 #endif 3252 3259 RTStrPrintf(strmCfg.szName, RT_ELEMENTS(strmCfg.szName), "Line In"); 3253 3260 strmCfg.DestSource.Source = PDMAUDIORECSOURCE_LINE; 3254 rc = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_LINE_IN, &strmCfg); 3255 AssertRCBreak(rc); 3261 rc2 = hdaCodecAddStream(pThis, PDMAUDIOMIXERCTL_LINE_IN, &strmCfg); 3262 if (RT_FAILURE(rc2)) 3263 LogRel2(("HDA: Failed to add line input stream: %Rrc\n", rc2)); 3256 3264 3257 3265 } while (0); 3258 3259 /** @todo Handle rc here? */3260 3266 3261 3267 /* … … 3277 3283 #endif 3278 3284 3279 return VINF_SUCCESS; 3280 } 3281 3285 LogFlowFuncLeaveRC(rc); 3286 return rc; 3287 } 3288
Note:
See TracChangeset
for help on using the changeset viewer.