VirtualBox

Changeset 62991 in vbox


Ignore:
Timestamp:
Aug 4, 2016 3:04:22 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109600
Message:

Devices: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchHdaCodec.cpp

    r62976 r62991  
    242242/* Input Amplifier capabilities (7.3.4.10). */
    243243#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)))
    248248
    249249#define CODEC_F00_0D_CAP_MUTE                              RT_BIT(7)
     
    307307/* GPIO count (7.3.4.14). */
    308308#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)))
    314314
    315315/* Processing States (7.3.3.4). */
     
    319319/* Power States (7.3.3.10). */
    320320#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) \
    325325     | ((set)     & 0xF))
    326326#define CODEC_F05_D3COLD                                   (4)
     
    378378#define CODEC_MAKE_F09_ANALOG(fPresent, impedance)  \
    379379(  (((fPresent) & 0x1) << 31)                       \
    380  | (((impedance) & 0x7FFFFFFF)))
    381 #define CODEC_F09_ANALOG_NA    0x7FFFFFFF
     380 | (((impedance) & UINT32_C(0x7FFFFFFF))))
     381#define CODEC_F09_ANALOG_NA    UINT32_C(0x7FFFFFFF)
    382382#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))
    385385
    386386#define CODEC_MAKE_F0C(lrswap, eapd, btl) ((((lrswap) & 1) << 2) | (((eapd) & 1) << 1) | ((btl) & 1))
     
    871871static DECLCALLBACK(void) stac9220DbgNodes(PHDACODEC pThis, PCDBGFINFOHLP pHlp, const char *pszArgs)
    872872{
    873     for (int i = 1; i < pThis->cTotalNodes; i++)
     873    RT_NOREF(pszArgs);
     874    for (uint8_t i = 1; i < pThis->cTotalNodes; i++)
    874875    {
    875876        PCODECNODE pNode = &pThis->paNodes[i];
     
    16011602static DECLCALLBACK(int) vrbProcUnimplemented(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp)
    16021603{
     1604    RT_NOREF(pThis, cmd);
    16031605    LogFlowFunc(("cmd(raw:%x: cad:%x, d:%c, nid:%x, verb:%x)\n", cmd,
    16041606                 CODEC_CAD(cmd), CODEC_DIRECT(cmd) ? 'N' : 'Y', CODEC_NID(cmd), CODEC_VERBDATA(cmd)));
     
    21392141        return VINF_SUCCESS;
    21402142
     2143    uint8_t uPwrCmd = CODEC_F05_SET      (cmd);
    21412144    bool    fReset  = CODEC_F05_IS_RESET (*pu32Reg);
    21422145    bool    fStopOk = CODEC_F05_IS_STOPOK(*pu32Reg);
     2146#ifdef LOG_ENABLED
    21432147    bool    fError  = CODEC_F05_IS_ERROR (*pu32Reg);
    21442148    uint8_t uPwrAct = CODEC_F05_ACT      (*pu32Reg);
    21452149    uint8_t uPwrSet = CODEC_F05_SET      (*pu32Reg);
    2146 
    2147     uint8_t uPwrCmd = CODEC_F05_SET      (cmd);
    2148 
    21492150    LogFunc(("[NID0x%02x] Cmd=D%RU8, fReset=%RTbool, fStopOk=%RTbool, fError=%RTbool, uPwrAct=D%RU8, uPwrSet=D%RU8\n",
    21502151             CODEC_NID(cmd), uPwrCmd, fReset, fStopOk, fError, uPwrAct, uPwrSet));
    2151 
    21522152    LogFunc(("AFG: Act=D%RU8, Set=D%RU8\n",
    21532153            CODEC_F05_ACT(pThis->paNodes[STAC9220_NID_AFG].afg.u32F05_param),
    21542154            CODEC_F05_SET(pThis->paNodes[STAC9220_NID_AFG].afg.u32F05_param)));
     2155#endif
    21552156
    21562157    if (CODEC_NID(cmd) == STAC9220_NID_AFG)
     
    24862487static DECLCALLBACK(int) vrbProcGetGPIOData(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp)
    24872488{
    2488     *pResp = 0;
    2489 
     2489    RT_NOREF(pThis, cmd);
     2490    *pResp = 0;
    24902491    return VINF_SUCCESS;
    24912492}
     
    24942495static DECLCALLBACK(int) vrbProcSetGPIOData(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp)
    24952496{
    2496     *pResp = 0;
    2497 
     2497    RT_NOREF(pThis, cmd);
     2498    *pResp = 0;
    24982499    return VINF_SUCCESS;
    24992500}
     
    25022503static DECLCALLBACK(int) vrbProcGetGPIOEnableMask(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp)
    25032504{
    2504     *pResp = 0;
    2505 
     2505    RT_NOREF(pThis, cmd);
     2506    *pResp = 0;
    25062507    return VINF_SUCCESS;
    25072508}
     
    25102511static DECLCALLBACK(int) vrbProcSetGPIOEnableMask(PHDACODEC pThis, uint32_t cmd, uint64_t *pResp)
    25112512{
    2512     *pResp = 0;
    2513 
     2513    RT_NOREF(pThis, cmd);
     2514    *pResp = 0;
    25142515    return VINF_SUCCESS;
    25152516}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette