diff options
| author | Glenn Kasten <gkasten@google.com> | 2012-03-16 10:35:28 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-03-16 10:35:28 -0700 |
| commit | ee3ad477a71ba690f0b5721056a6514bf2f76bd8 (patch) | |
| tree | 574ec01e21c7909f22a3383762cd3f96b8a9c8f3 /src/itf | |
| parent | cde9b8b8bd0c84c62de49e73c08d224274280bfa (diff) | |
| parent | 22ced1dc023dc000118e3a26517b14e9babd7c5a (diff) | |
| download | android_frameworks_wilhelm-ee3ad477a71ba690f0b5721056a6514bf2f76bd8.tar.gz android_frameworks_wilhelm-ee3ad477a71ba690f0b5721056a6514bf2f76bd8.tar.bz2 android_frameworks_wilhelm-ee3ad477a71ba690f0b5721056a6514bf2f76bd8.zip | |
Merge "Fix indentation and redundant whitespace"
Diffstat (limited to 'src/itf')
| -rw-r--r-- | src/itf/IEqualizer.c | 32 | ||||
| -rw-r--r-- | src/itf/IStreamInformation.c | 2 | ||||
| -rw-r--r-- | src/itf/IVirtualizer.c | 68 |
3 files changed, 51 insertions, 51 deletions
diff --git a/src/itf/IEqualizer.c b/src/itf/IEqualizer.c index e50bdb7..14ff965 100644 --- a/src/itf/IEqualizer.c +++ b/src/itf/IEqualizer.c @@ -80,25 +80,25 @@ static SLresult IEqualizer_IsEnabled(SLEqualizerItf self, SLboolean *pEnabled) { SL_ENTER_INTERFACE - if (NULL == pEnabled) { - result = SL_RESULT_PARAMETER_INVALID; - } else { - IEqualizer *thiz = (IEqualizer *) self; - interface_lock_exclusive(thiz); - SLboolean enabled = thiz->mEnabled; + if (NULL == pEnabled) { + result = SL_RESULT_PARAMETER_INVALID; + } else { + IEqualizer *thiz = (IEqualizer *) self; + interface_lock_exclusive(thiz); + SLboolean enabled = thiz->mEnabled; #if !defined(ANDROID) - *pEnabled = enabled; - result = SL_RESULT_SUCCESS; + *pEnabled = enabled; + result = SL_RESULT_SUCCESS; #else - if (NO_EQ(thiz)) { - result = SL_RESULT_CONTROL_LOST; - } else { - *pEnabled = (SLboolean) thiz->mEqEffect->getEnabled(); - result = SL_RESULT_SUCCESS; - } + if (NO_EQ(thiz)) { + result = SL_RESULT_CONTROL_LOST; + } else { + *pEnabled = (SLboolean) thiz->mEqEffect->getEnabled(); + result = SL_RESULT_SUCCESS; + } #endif - interface_unlock_exclusive(thiz); - } + interface_unlock_exclusive(thiz); + } SL_LEAVE_INTERFACE } diff --git a/src/itf/IStreamInformation.c b/src/itf/IStreamInformation.c index bfd9233..d8da5a9 100644 --- a/src/itf/IStreamInformation.c +++ b/src/itf/IStreamInformation.c @@ -60,7 +60,7 @@ static XAresult IStreamInformation_QueryStreamType( XAStreamInformationItf self, } #ifndef ANDROID - *domain = XA_DOMAINTYPE_UNKNOWN; + *domain = XA_DOMAINTYPE_UNKNOWN; #else if (0 == streamIndex) { // stream 0 is reserved for the container diff --git a/src/itf/IVirtualizer.c b/src/itf/IVirtualizer.c index 70e2295..c640811 100644 --- a/src/itf/IVirtualizer.c +++ b/src/itf/IVirtualizer.c @@ -64,27 +64,27 @@ static SLresult IVirtualizer_IsEnabled(SLVirtualizerItf self, SLboolean *pEnable { SL_ENTER_INTERFACE - if (NULL == pEnabled) { - result = SL_RESULT_PARAMETER_INVALID; - } else { - IVirtualizer *thiz = (IVirtualizer *) self; - interface_lock_exclusive(thiz); - SLboolean enabled = thiz->mEnabled; + if (NULL == pEnabled) { + result = SL_RESULT_PARAMETER_INVALID; + } else { + IVirtualizer *thiz = (IVirtualizer *) self; + interface_lock_exclusive(thiz); + SLboolean enabled = thiz->mEnabled; #if !defined(ANDROID) - *pEnabled = enabled; - result = SL_RESULT_SUCCESS; + *pEnabled = enabled; + result = SL_RESULT_SUCCESS; #else - if (NO_VIRTUALIZER(thiz)) { - result = SL_RESULT_CONTROL_LOST; - } else { - *pEnabled = (SLboolean) thiz->mVirtualizerEffect->getEnabled(); - result = SL_RESULT_SUCCESS; - } + if (NO_VIRTUALIZER(thiz)) { + result = SL_RESULT_CONTROL_LOST; + } else { + *pEnabled = (SLboolean) thiz->mVirtualizerEffect->getEnabled(); + result = SL_RESULT_SUCCESS; + } #endif - interface_unlock_exclusive(thiz); - } + interface_unlock_exclusive(thiz); + } - SL_LEAVE_INTERFACE + SL_LEAVE_INTERFACE } @@ -92,27 +92,27 @@ static SLresult IVirtualizer_SetStrength(SLVirtualizerItf self, SLpermille stren { SL_ENTER_INTERFACE - if ((VIRTUALIZER_STRENGTH_MIN > strength) || (VIRTUALIZER_STRENGTH_MAX < strength)) { - result = SL_RESULT_PARAMETER_INVALID; - } else { - IVirtualizer *thiz = (IVirtualizer *) self; - interface_lock_exclusive(thiz); + if ((VIRTUALIZER_STRENGTH_MIN > strength) || (VIRTUALIZER_STRENGTH_MAX < strength)) { + result = SL_RESULT_PARAMETER_INVALID; + } else { + IVirtualizer *thiz = (IVirtualizer *) self; + interface_lock_exclusive(thiz); #if !defined(ANDROID) - thiz->mStrength = strength; - result = SL_RESULT_SUCCESS; + thiz->mStrength = strength; + result = SL_RESULT_SUCCESS; #else - if (NO_VIRTUALIZER(thiz)) { - result = SL_RESULT_CONTROL_LOST; - } else { - android::status_t status = android_virt_setParam(thiz->mVirtualizerEffect, - VIRTUALIZER_PARAM_STRENGTH, &strength); - result = android_fx_statusToResult(status); - } + if (NO_VIRTUALIZER(thiz)) { + result = SL_RESULT_CONTROL_LOST; + } else { + android::status_t status = android_virt_setParam(thiz->mVirtualizerEffect, + VIRTUALIZER_PARAM_STRENGTH, &strength); + result = android_fx_statusToResult(status); + } #endif - interface_unlock_exclusive(thiz); - } + interface_unlock_exclusive(thiz); + } - SL_LEAVE_INTERFACE + SL_LEAVE_INTERFACE } |
