Changeset 56992 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jul 18, 2015 11:01:44 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101707
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHdaCodec.cpp
r56838 r56992 2355 2355 #define CODECDBG_UNINDENT if (pInfo->uLevel) pInfo->uLevel--; 2356 2356 2357 #define CODECDBG_PRINT( x, ...) pInfo->pHlp->pfnPrintf(pInfo->pHlp, x);2358 #define CODECDBG_PRINTI( x, ...) codecDbgPrintf(pInfo, x);2357 #define CODECDBG_PRINT(...) pInfo->pHlp->pfnPrintf(pInfo->pHlp, __VA_ARGS__) 2358 #define CODECDBG_PRINTI(...) codecDbgPrintf(pInfo, __VA_ARGS__) 2359 2359 2360 2360 static void codecDbgPrintfIndentV(PCODECDBGINFO pInfo, uint16_t uIndent, const char *pszFormat, va_list va) … … 2444 2444 if (pNode->node.id == STAC9220_NID_ROOT) 2445 2445 { 2446 CODECDBG_PRINT("ROOT\n") 2446 CODECDBG_PRINT("ROOT\n"); 2447 2447 } 2448 2448 else if (pNode->node.id == STAC9220_NID_AFG) 2449 2449 { 2450 CODECDBG_PRINT("AFG\n") 2450 CODECDBG_PRINT("AFG\n"); 2451 2451 CODECDBG_INDENT 2452 2452 codecDbgPrintNodeRegF00(pInfo, pNode->node.au32F00_param); … … 2456 2456 else if (hdaCodecIsPortNode(pInfo->pThis, pNode->node.id)) 2457 2457 { 2458 CODECDBG_PRINT("PORT\n") 2458 CODECDBG_PRINT("PORT\n"); 2459 2459 } 2460 2460 else if (hdaCodecIsDacNode(pInfo->pThis, pNode->node.id)) 2461 2461 { 2462 CODECDBG_PRINT("DAC\n") 2462 CODECDBG_PRINT("DAC\n"); 2463 2463 CODECDBG_INDENT 2464 2464 codecDbgPrintNodeRegF00(pInfo, pNode->node.au32F00_param); … … 2470 2470 else if (hdaCodecIsAdcVolNode(pInfo->pThis, pNode->node.id)) 2471 2471 { 2472 CODECDBG_PRINT("ADC VOLUME\n") 2472 CODECDBG_PRINT("ADC VOLUME\n"); 2473 2473 CODECDBG_INDENT 2474 2474 codecDbgPrintNodeRegF00(pInfo, pNode->node.au32F00_param); … … 2479 2479 else if (hdaCodecIsAdcNode(pInfo->pThis, pNode->node.id)) 2480 2480 { 2481 CODECDBG_PRINT("ADC\n") 2481 CODECDBG_PRINT("ADC\n"); 2482 2482 CODECDBG_INDENT 2483 2483 codecDbgPrintNodeRegF00(pInfo, pNode->node.au32F00_param); … … 2489 2489 else if (hdaCodecIsAdcMuxNode(pInfo->pThis, pNode->node.id)) 2490 2490 { 2491 CODECDBG_PRINT("ADC MUX\n") 2491 CODECDBG_PRINT("ADC MUX\n"); 2492 2492 CODECDBG_INDENT 2493 2493 codecDbgPrintNodeRegF00(pInfo, pNode->node.au32F00_param); … … 2498 2498 else if (hdaCodecIsPcbeepNode(pInfo->pThis, pNode->node.id)) 2499 2499 { 2500 CODECDBG_PRINT("PC BEEP\n") 2500 CODECDBG_PRINT("PC BEEP\n"); 2501 2501 } 2502 2502 else if (hdaCodecIsSpdifOutNode(pInfo->pThis, pNode->node.id)) 2503 2503 { 2504 CODECDBG_PRINT("SPDIF OUT\n") 2504 CODECDBG_PRINT("SPDIF OUT\n"); 2505 2505 } 2506 2506 else if (hdaCodecIsSpdifInNode(pInfo->pThis, pNode->node.id)) 2507 2507 { 2508 CODECDBG_PRINT("SPDIF IN\n") 2508 CODECDBG_PRINT("SPDIF IN\n"); 2509 2509 } 2510 2510 else if (hdaCodecIsDigInPinNode(pInfo->pThis, pNode->node.id)) 2511 2511 { 2512 CODECDBG_PRINT("DIGITAL IN PIN\n") 2512 CODECDBG_PRINT("DIGITAL IN PIN\n"); 2513 2513 } 2514 2514 else if (hdaCodecIsDigOutPinNode(pInfo->pThis, pNode->node.id)) 2515 2515 { 2516 CODECDBG_PRINT("DIGITAL OUT PIN\n") 2516 CODECDBG_PRINT("DIGITAL OUT PIN\n"); 2517 2517 } 2518 2518 else if (hdaCodecIsCdNode(pInfo->pThis, pNode->node.id)) 2519 2519 { 2520 CODECDBG_PRINT("CD\n") 2520 CODECDBG_PRINT("CD\n"); 2521 2521 } 2522 2522 else if (hdaCodecIsVolKnobNode(pInfo->pThis, pNode->node.id)) 2523 2523 { 2524 CODECDBG_PRINT("VOLUME KNOB\n") 2524 CODECDBG_PRINT("VOLUME KNOB\n"); 2525 2525 } 2526 2526 else if (hdaCodecIsReservedNode(pInfo->pThis, pNode->node.id)) 2527 2527 { 2528 CODECDBG_PRINT("RESERVED\n") 2528 CODECDBG_PRINT("RESERVED\n"); 2529 2529 } 2530 2530 else … … 2687 2687 return rc; 2688 2688 AssertLogRelMsgReturn(idOld == pThis->paNodes[idxNode].SavedState.Core.id, 2689 ("loaded %#x, expected \n", pThis->paNodes[idxNode].SavedState.Core.id, idOld),2689 ("loaded %#x, expected %#x\n", pThis->paNodes[idxNode].SavedState.Core.id, idOld), 2690 2690 VERR_SSM_DATA_UNIT_FORMAT_CHANGED); 2691 2691 } -
trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp
r56648 r56992 245 245 if (hFile == -1) 246 246 { 247 LogRel(("OSS: Failed to open %s: %s \n", pszDev, strerror(errno)));247 LogRel(("OSS: Failed to open %s: %s(%d)\n", pszDev, strerror(errno), errno)); 248 248 rc = RTErrConvertFromErrno(errno); 249 249 break; … … 253 253 if (ioctl(hFile, SNDCTL_DSP_SAMPLESIZE, &iFormat)) 254 254 { 255 LogRel(("OSS: Failed to set audio format to %ld\n", 256 iFormat, strerror(errno))); 255 LogRel(("OSS: Failed to set audio format to %ld errno=%s(%d)\n", iFormat, strerror(errno), errno)); 257 256 rc = RTErrConvertFromErrno(errno); 258 257 break; … … 262 261 if (ioctl(hFile, SNDCTL_DSP_CHANNELS, &cChannels)) 263 262 { 264 LogRel(("OSS: Failed to set number of audio channels (%d): %s\n", 265 pReq->cChannels, strerror(errno))); 263 LogRel(("OSS: Failed to set number of audio channels (%d): %s(%d)\n", pReq->cChannels, strerror(errno), errno)); 266 264 rc = RTErrConvertFromErrno(errno); 267 265 break; … … 271 269 if (ioctl(hFile, SNDCTL_DSP_SPEED, &freq)) 272 270 { 273 LogRel(("OSS: Failed to set audio frequency (%dHZ): %s\n", 274 pReq->uFreq, strerror(errno))); 271 LogRel(("OSS: Failed to set audio frequency (%dHZ): %s(%d)\n", pReq->uFreq, strerror(errno), errno)); 275 272 rc = RTErrConvertFromErrno(errno); 276 273 break; … … 281 278 if (ioctl(hFile, SNDCTL_DSP_NONBLOCK)) 282 279 { 283 LogRel(("OSS: Failed to set non-blocking mode: %s\n", 284 strerror(errno))); 280 LogRel(("OSS: Failed to set non-blocking mode: %s(%d)\n", strerror(errno), errno)); 285 281 rc = RTErrConvertFromErrno(errno); 286 282 break; … … 290 286 if (ioctl(hFile, SNDCTL_DSP_SETFRAGMENT, &mmmmssss)) 291 287 { 292 LogRel(("OSS: Failed to set %RU16 fragments to %RU32 bytes each: %s \n",293 pReq->cFragments, pReq->cbFragmentSize, strerror(errno) ));288 LogRel(("OSS: Failed to set %RU16 fragments to %RU32 bytes each: %s(%d)\n", 289 pReq->cFragments, pReq->cbFragmentSize, strerror(errno), errno)); 294 290 rc = RTErrConvertFromErrno(errno); 295 291 break; … … 297 293 298 294 audio_buf_info abinfo; 299 if (ioctl(hFile, fIn ? SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, 300 &abinfo)) 301 { 302 LogRel(("OSS: Failed to retrieve buffer length: %s\n", strerror(errno))); 295 if (ioctl(hFile, fIn ? SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, &abinfo)) 296 { 297 LogRel(("OSS: Failed to retrieve buffer length: %s(%d)\n", strerror(errno), errno)); 303 298 rc = RTErrConvertFromErrno(errno); 304 299 break; 305 300 } 306 301 307 rc = drvHostOSSAudioOSSToFmt(iFormat, 308 &pObt->enmFormat, &pObt->enmENDIANNESS); 302 rc = drvHostOSSAudioOSSToFmt(iFormat, &pObt->enmFormat, &pObt->enmENDIANNESS); 309 303 if (RT_SUCCESS(rc)) 310 304 {
Note:
See TracChangeset
for help on using the changeset viewer.