Changeset 62991 in vbox
- Timestamp:
- Aug 4, 2016 3:04:22 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109600
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHdaCodec.cpp
r62976 r62991 242 242 /* Input Amplifier capabilities (7.3.4.10). */ 243 243 #define CODEC_MAKE_F00_0D(mute_cap, step_size, num_steps, offset) \ 244 ( (((mute_cap) & 0x1) << 31)\245 | (((step_size) & 0xFF) << 16)\246 | (((num_steps) & 0xFF) << 8)\247 | ((offset) & 0xFF))244 ( (((mute_cap) & UINT32_C(0x1)) << 31) \ 245 | (((step_size) & UINT32_C(0xFF)) << 16) \ 246 | (((num_steps) & UINT32_C(0xFF)) << 8) \ 247 | ((offset) & UINT32_C(0xFF))) 248 248 249 249 #define CODEC_F00_0D_CAP_MUTE RT_BIT(7) … … 307 307 /* GPIO count (7.3.4.14). */ 308 308 #define CODEC_MAKE_F00_11(wake, unsol, numgpi, numgpo, numgpio) \ 309 ( (((wake) & 0x1) << 31)\310 | (((unsol) & 0x1) << 30)\311 | (((numgpi) & 0xFF) << 16)\312 | (((numgpo) & 0xFF) << 8)\313 | ((numgpio) & 0xFF))309 ( (((wake) & UINT32_C(0x1)) << 31) \ 310 | (((unsol) & UINT32_C(0x1)) << 30) \ 311 | (((numgpi) & UINT32_C(0xFF)) << 16) \ 312 | (((numgpo) & UINT32_C(0xFF)) << 8) \ 313 | ((numgpio) & UINT32_C(0xFF))) 314 314 315 315 /* Processing States (7.3.3.4). */ … … 319 319 /* Power States (7.3.3.10). */ 320 320 #define CODEC_MAKE_F05(reset, stopok, error, act, set) \ 321 ( (((reset) & 0x1) << 10)\322 | (((stopok) & 0x1) << 9) 323 | (((error) & 0x1) << 8) 324 | (((act) & 0xF) << 4) 321 ( (((reset) & 0x1) << 10) \ 322 | (((stopok) & 0x1) << 9) \ 323 | (((error) & 0x1) << 8) \ 324 | (((act) & 0xF) << 4) \ 325 325 | ((set) & 0xF)) 326 326 #define CODEC_F05_D3COLD (4) … … 378 378 #define CODEC_MAKE_F09_ANALOG(fPresent, impedance) \ 379 379 ( (((fPresent) & 0x1) << 31) \ 380 | (((impedance) & 0x7FFFFFFF)))381 #define CODEC_F09_ANALOG_NA 0x7FFFFFFF380 | (((impedance) & UINT32_C(0x7FFFFFFF)))) 381 #define CODEC_F09_ANALOG_NA UINT32_C(0x7FFFFFFF) 382 382 #define CODEC_MAKE_F09_DIGITAL(fPresent, fELDValid) \ 383 ( (((fPresent) & 0x1) << 31) \384 | (((fELDValid) & 0x1) << 30))383 ( (((fPresent) & UINT32_C(0x1)) << 31) \ 384 | (((fELDValid) & UINT32_C(0x1)) << 30)) 385 385 386 386 #define CODEC_MAKE_F0C(lrswap, eapd, btl) ((((lrswap) & 1) << 2) | (((eapd) & 1) << 1) | ((btl) & 1)) … … 871 871 static DECLCALLBACK(void) stac9220DbgNodes(PHDACODEC pThis, PCDBGFINFOHLP pHlp, const char *pszArgs) 872 872 { 873 for (int i = 1; i < pThis->cTotalNodes; i++) 873 RT_NOREF(pszArgs); 874 for (uint8_t i = 1; i < pThis->cTotalNodes; i++) 874 875 { 875 876 PCODECNODE pNode = &pThis->paNodes[i]; … … 1601 1602 static DECLCALLBACK(int) vrbProcUnimplemented(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp) 1602 1603 { 1604 RT_NOREF(pThis, cmd); 1603 1605 LogFlowFunc(("cmd(raw:%x: cad:%x, d:%c, nid:%x, verb:%x)\n", cmd, 1604 1606 CODEC_CAD(cmd), CODEC_DIRECT(cmd) ? 'N' : 'Y', CODEC_NID(cmd), CODEC_VERBDATA(cmd))); … … 2139 2141 return VINF_SUCCESS; 2140 2142 2143 uint8_t uPwrCmd = CODEC_F05_SET (cmd); 2141 2144 bool fReset = CODEC_F05_IS_RESET (*pu32Reg); 2142 2145 bool fStopOk = CODEC_F05_IS_STOPOK(*pu32Reg); 2146 #ifdef LOG_ENABLED 2143 2147 bool fError = CODEC_F05_IS_ERROR (*pu32Reg); 2144 2148 uint8_t uPwrAct = CODEC_F05_ACT (*pu32Reg); 2145 2149 uint8_t uPwrSet = CODEC_F05_SET (*pu32Reg); 2146 2147 uint8_t uPwrCmd = CODEC_F05_SET (cmd);2148 2149 2150 LogFunc(("[NID0x%02x] Cmd=D%RU8, fReset=%RTbool, fStopOk=%RTbool, fError=%RTbool, uPwrAct=D%RU8, uPwrSet=D%RU8\n", 2150 2151 CODEC_NID(cmd), uPwrCmd, fReset, fStopOk, fError, uPwrAct, uPwrSet)); 2151 2152 2152 LogFunc(("AFG: Act=D%RU8, Set=D%RU8\n", 2153 2153 CODEC_F05_ACT(pThis->paNodes[STAC9220_NID_AFG].afg.u32F05_param), 2154 2154 CODEC_F05_SET(pThis->paNodes[STAC9220_NID_AFG].afg.u32F05_param))); 2155 #endif 2155 2156 2156 2157 if (CODEC_NID(cmd) == STAC9220_NID_AFG) … … 2486 2487 static DECLCALLBACK(int) vrbProcGetGPIOData(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp) 2487 2488 { 2488 *pResp = 0;2489 2489 RT_NOREF(pThis, cmd); 2490 *pResp = 0; 2490 2491 return VINF_SUCCESS; 2491 2492 } … … 2494 2495 static DECLCALLBACK(int) vrbProcSetGPIOData(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp) 2495 2496 { 2496 *pResp = 0;2497 2497 RT_NOREF(pThis, cmd); 2498 *pResp = 0; 2498 2499 return VINF_SUCCESS; 2499 2500 } … … 2502 2503 static DECLCALLBACK(int) vrbProcGetGPIOEnableMask(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp) 2503 2504 { 2504 *pResp = 0;2505 2505 RT_NOREF(pThis, cmd); 2506 *pResp = 0; 2506 2507 return VINF_SUCCESS; 2507 2508 } … … 2510 2511 static DECLCALLBACK(int) vrbProcSetGPIOEnableMask(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp) 2511 2512 { 2512 *pResp = 0;2513 2513 RT_NOREF(pThis, cmd); 2514 *pResp = 0; 2514 2515 return VINF_SUCCESS; 2515 2516 }
Note:
See TracChangeset
for help on using the changeset viewer.