Changeset 88027 in vbox
- Timestamp:
- Mar 8, 2021 6:55:08 PM (4 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r88023 r88027 2427 2427 2428 2428 AssertPtr(pSink->pMixSink); 2429 LogFlowFunc(("Sink=%s, Mixer control=%s\n", pSink->pMixSink->pszName, DrvAudioHlpAudMixerCtlToStr(enmMixerCtl)));2429 LogFlowFunc(("Sink=%s, Mixer control=%s\n", pSink->pMixSink->pszName, PDMAudioMixerCtlGetName(enmMixerCtl))); 2430 2430 } 2431 2431 else … … 2503 2503 rc = VERR_NOT_FOUND; 2504 2504 2505 LogFunc(("Mixer control=%s, rc=%Rrc\n", DrvAudioHlpAudMixerCtlToStr(enmMixerCtl), rc));2505 LogFunc(("Mixer control=%s, rc=%Rrc\n", PDMAudioMixerCtlGetName(enmMixerCtl), rc)); 2506 2506 return rc; 2507 2507 } … … 2516 2516 PHDASTATE pThis = PDMDEVINS_2_DATA(pDevIns, PHDASTATE); 2517 2517 PHDASTATER3 pThisCC = PDMDEVINS_2_DATA_CC(pDevIns, PHDASTATER3); 2518 LogFunc(("enmMixerCtl=%s, uSD=%RU8, uChannel=%RU8\n", DrvAudioHlpAudMixerCtlToStr(enmMixerCtl), uSD, uChannel));2518 LogFunc(("enmMixerCtl=%s, uSD=%RU8, uChannel=%RU8\n", PDMAudioMixerCtlGetName(enmMixerCtl), uSD, uChannel)); 2519 2519 2520 2520 if (uSD == 0) /* Stream number 0 is reserved. */ 2521 2521 { 2522 Log2Func(("Invalid SDn (%RU8) number for mixer control '%s', ignoring\n", uSD, DrvAudioHlpAudMixerCtlToStr(enmMixerCtl)));2522 Log2Func(("Invalid SDn (%RU8) number for mixer control '%s', ignoring\n", uSD, PDMAudioMixerCtlGetName(enmMixerCtl))); 2523 2523 return VINF_SUCCESS; 2524 2524 } … … 2583 2583 { 2584 2584 LogRel2(("HDA: Setting sink '%s' to stream #%RU8 (channel %RU8), mixer control=%s\n", 2585 pSink->pMixSink->pszName, uSD, uChannel, DrvAudioHlpAudMixerCtlToStr(enmMixerCtl)));2585 pSink->pMixSink->pszName, uSD, uChannel, PDMAudioMixerCtlGetName(enmMixerCtl))); 2586 2586 2587 2587 PHDASTREAMR3 pStreamR3 = &pThisCC->aStreams[uSD]; … … 2604 2604 if (RT_FAILURE(rc)) 2605 2605 LogRel(("HDA: Converter control for stream #%RU8 (channel %RU8) / mixer control '%s' failed with %Rrc, skipping\n", 2606 uSD, uChannel, DrvAudioHlpAudMixerCtlToStr(enmMixerCtl), rc));2606 uSD, uChannel, PDMAudioMixerCtlGetName(enmMixerCtl), rc)); 2607 2607 2608 2608 LogFlowFuncLeaveRC(rc); -
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r88023 r88027 2618 2618 ls = ichac97R3RecSourceToIdx(als); 2619 2619 2620 LogRel(("AC97: Record select to left=%s, right=%s\n", DrvAudioHlpRecSrcToStr(ars), DrvAudioHlpRecSrcToStr(als)));2620 LogRel(("AC97: Record select to left=%s, right=%s\n", PDMAudioRecSrcGetName(ars), PDMAudioRecSrcGetName(als))); 2621 2621 2622 2622 ichac97MixerSet(pThis, AC97_Record_Select, rs | (ls << 8)); -
trunk/src/VBox/Devices/Audio/DrvAudio.h
r88026 r88027 279 279 /** @name Audio string-ify methods. 280 280 * @{ */ 281 const char * DrvAudioHlpAudMixerCtlToStr(PDMAUDIOMIXERCTL enmMixerCtl);282 const char * DrvAudioHlpPlaybackDstToStr(const PDMAUDIOPLAYBACKDST enmPlaybackDst);283 const char * DrvAudioHlpRecSrcToStr(const PDMAUDIORECSRC enmRecSource);281 const char *PDMAudioMixerCtlGetName(PDMAUDIOMIXERCTL enmMixerCtl); 282 const char *PDMAudioPlaybackDstGetName(const PDMAUDIOPLAYBACKDST enmPlaybackDst); 283 const char *PDMAudioRecSrcGetName(const PDMAUDIORECSRC enmRecSource); 284 284 PDMAUDIOFMT DrvAudioHlpStrToAudFmt(const char *pszFmt); 285 285 char *DrvAudioHlpAudDevFlagsToStrA(uint32_t fFlags); -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r88026 r88027 500 500 * @param enmMixerCtl Audio mixer control to convert. 501 501 */ 502 const char * DrvAudioHlpAudMixerCtlToStr(PDMAUDIOMIXERCTL enmMixerCtl)502 const char *PDMAudioMixerCtlGetName(PDMAUDIOMIXERCTL enmMixerCtl) 503 503 { 504 504 switch (enmMixerCtl) … … 576 576 * @param enmPlaybackDst Playback destination to convert. 577 577 */ 578 const char * DrvAudioHlpPlaybackDstToStr(const PDMAUDIOPLAYBACKDST enmPlaybackDst)578 const char *PDMAudioPlaybackDstGetName(const PDMAUDIOPLAYBACKDST enmPlaybackDst) 579 579 { 580 580 switch (enmPlaybackDst) … … 598 598 * @param enmRecSrc Recording source to convert. 599 599 */ 600 const char * DrvAudioHlpRecSrcToStr(const PDMAUDIORECSRC enmRecSrc)600 const char *PDMAudioRecSrcGetName(const PDMAUDIORECSRC enmRecSrc) 601 601 { 602 602 switch (enmRecSrc) -
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r88023 r88027 1163 1163 { 1164 1164 DSLOG(("DSound: Guest source '%s' is using host recording device '%s'\n", 1165 DrvAudioHlpRecSrcToStr(pCfg->u.enmSrc), pDev->szName));1165 PDMAudioRecSrcGetName(pCfg->u.enmSrc), pDev->szName)); 1166 1166 1167 1167 PDSOUNDDEV pDSoundDev = (PDSOUNDDEV)pDev->pvData; … … 1182 1182 /* This always has to be in the release log. */ 1183 1183 LogRel(("DSound: Guest source '%s' is using host recording device with GUID '%s'\n", 1184 DrvAudioHlpRecSrcToStr(pCfg->u.enmSrc), pszGUID ? pszGUID: "{?}"));1184 PDMAudioRecSrcGetName(pCfg->u.enmSrc), pszGUID ? pszGUID: "{?}")); 1185 1185 1186 1186 if (pszGUID) … … 2086 2086 { 2087 2087 LogFunc(("pStreamDS=%p, pCfgReq=%p, enmRecSource=%s\n", 2088 pStreamDS, pCfgReq, DrvAudioHlpRecSrcToStr(pCfgReq->u.enmSrc)));2088 pStreamDS, pCfgReq, PDMAudioRecSrcGetName(pCfgReq->u.enmSrc))); 2089 2089 2090 2090 int rc = VINF_SUCCESS; -
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r88023 r88027 811 811 812 812 char szName[256]; 813 RTStrPrintf(szName, sizeof(szName), "VirtualBox %s [%s]", DrvAudioHlpPlaybackDstToStr(pCfgReq->u.enmDst), pThis->szStreamName);813 RTStrPrintf(szName, sizeof(szName), "VirtualBox %s [%s]", PDMAudioPlaybackDstGetName(pCfgReq->u.enmDst), pThis->szStreamName); 814 814 815 815 /* Note that the struct BufAttr is updated to the obtained values after this call! */ … … 855 855 856 856 char szName[256]; 857 RTStrPrintf(szName, sizeof(szName), "VirtualBox %s [%s]", DrvAudioHlpRecSrcToStr(pCfgReq->u.enmSrc), pThis->szStreamName);857 RTStrPrintf(szName, sizeof(szName), "VirtualBox %s [%s]", PDMAudioRecSrcGetName(pCfgReq->u.enmSrc), pThis->szStreamName); 858 858 859 859 /* Note: Other members of BufAttr are ignored for record streams. */ -
trunk/src/VBox/Devices/Audio/HDACodec.cpp
r87807 r88027 898 898 899 899 LogRel2(("HDA: Setting volume for mixer control '%s' to %RU8/%RU8 (%s)\n", 900 DrvAudioHlpAudMixerCtlToStr(enmMixerCtl), lVol, rVol, RT_BOOL(iMute) ? "Muted" : "Unmuted"));900 PDMAudioMixerCtlGetName(enmMixerCtl), lVol, rVol, RT_BOOL(iMute) ? "Muted" : "Unmuted")); 901 901 902 902 return pThisCC->pfnCbMixerSetVolume(pThisCC->pDevIns, enmMixerCtl, &Vol);
Note:
See TracChangeset
for help on using the changeset viewer.