VirtualBox

Changeset 107592 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 9, 2025 11:31:47 AM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166665
Message:

src/VBox/Devices/Audio/DevIchAc97.cpp: Fixed warnings found by Parfait (assignment unused) [build fix]. jiraref:VBP-1424

File:
1 edited

Legend:

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

    r107591 r107592  
    31833183     */
    31843184    bool const  fCtlMuted     = (uVal >> AC97_BARS_VOL_MUTE_SHIFT) & 1;
     3185# ifdef VBOX_WITH_AC97_GAIN_SUPPORT
    31853186    uint8_t     uCtlGainLeft  = (uVal >> 8) & AC97_BARS_GAIN_MASK;
    31863187    uint8_t     uCtlGainRight = uVal & AC97_BARS_GAIN_MASK;
    3187 
    31883188    Assert(uCtlGainLeft  <= 255 / AC97_DB_FACTOR);
    31893189    Assert(uCtlGainRight <= 255 / AC97_DB_FACTOR);
     3190    LogFunc(("uCtlGainLeft=%RU8, uCtlGainRight=%RU8 ", uCtlGainLeft, uCtlGainRight));
     3191# endif
    31903192
    31913193    LogFunc(("index=0x%x, uVal=%RU32, enmMixerCtl=%RU32\n", index, uVal, enmMixerCtl));
    3192     LogFunc(("uCtlGainLeft=%RU8, uCtlGainRight=%RU8 ", uCtlGainLeft, uCtlGainRight));
    31933194
    31943195    uint8_t lVol;
     
    31983199     * for the recording input, the best we can do is set the maximum volume.
    31993200     */
    3200 # ifndef VBOX_WITH_AC97_GAIN_SUPPORT
     3201# ifdef VBOX_WITH_AC97_GAIN_SUPPORT
     3202    lVol = PDMAUDIO_VOLUME_MAX + uCtlGainLeft  * AC97_DB_FACTOR;
     3203    rVol = PDMAUDIO_VOLUME_MAX + uCtlGainRight * AC97_DB_FACTOR;
     3204# else
    32013205    /* NB: Currently there is no gain support, only attenuation. Since AC'97 does not
    32023206     * support attenuation for the recording inputs, the best we can do is set the
     
    32043208     */
    32053209    lVol = rVol = PDMAUDIO_VOLUME_MAX;
    3206 # else
    3207     lVol = PDMAUDIO_VOLUME_MAX + uCtlGainLeft  * AC97_DB_FACTOR;
    3208     rVol = PDMAUDIO_VOLUME_MAX + uCtlGainRight * AC97_DB_FACTOR;
    32093210# endif
    32103211
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