VirtualBox

Changeset 61528 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 7, 2016 10:13:48 AM (9 years ago)
Author:
vboxsync
Message:

Audio/DevIchAc97.cpp: Define SOFT_VOLUME not needed anymore.

File:
1 edited

Legend:

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

    r61523 r61528  
    6363
    6464#define AC97_TIMER_HZ 50
    65 
    66 #ifdef VBOX
    67 # define SOFT_VOLUME /** @todo Get rid of this crap. */
    68 #else
    69 # define SOFT_VOLUME
    70 #endif
    7165
    7266/** @todo Use AC97_ prefixes! */
     
    979973    int rc;
    980974
    981 #ifdef SOFT_VOLUME
    982975    if (pThis->pMixer) /* Device can be in reset state, so no mixer available. */
    983976    {
     
    10071000    }
    10081001    else
    1009         rc = VERR_NOT_SUPPORTED;
    1010 
    1011     if (RT_FAILURE(rc))
    1012         return rc;
    1013 #else
    1014     rc = VINF_SUCCESS;
    1015 #endif /* SOFT_VOLUME */
     1002        rc = VINF_SUCCESS;
    10161003
    10171004    rvol = VOL_MASK - ((VOL_MASK * rvol) / 255);
     
    10321019
    10331020    ichac97MixerSet(pThis, index, val);
     1021
     1022    if (RT_FAILURE(rc))
     1023        LogFlowFunc(("Failed with %Rrc\n", rc));
    10341024
    10351025    return rc;
Note: See TracChangeset for help on using the changeset viewer.

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