Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e97e807 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by android-build-merger
Browse files

Merge "audio: fix switch to break or use FALLTHROUGH_INTENDED"

am: 599f3305

Change-Id: I179a79cc58c02c59dc08a8cc8ef1e6e33899ccf3
parents 387b0b64 599f3305
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1751,15 +1751,14 @@ int Reverb_getParameter(ReverbContext *pContext,
            //        *(int16_t *)pValue);
            break;
        case REVERB_PARAM_DENSITY:
            *(uint16_t *)pValue = 0;
            *(int16_t *)pValue = ReverbGetDensity(pContext);
            //ALOGV("\tReverb_getParameter() REVERB_PARAM_DENSITY Value is %d",
            //        *(uint32_t *)pValue);
            break;
        case REVERB_PARAM_REFLECTIONS_LEVEL:
            *(uint16_t *)pValue = 0;
            break;
        case REVERB_PARAM_REFLECTIONS_DELAY:
            *(uint32_t *)pValue = 0;
        case REVERB_PARAM_REVERB_DELAY:
            *(uint32_t *)pValue = 0;
            break;
+1 −0
Original line number Diff line number Diff line
@@ -698,6 +698,7 @@ int Effect_SetState(preproc_effect_t *effect, uint32_t state)
        case PREPROC_EFFECT_STATE_ACTIVE:
            effect->ops->disable(effect);
            Session_SetProcEnabled(effect->session, effect->procId, false);
            break;
        case PREPROC_EFFECT_STATE_CONFIG:
        case PREPROC_EFFECT_STATE_CREATED:
        case PREPROC_EFFECT_STATE_INIT:
+1 −0
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ routing_strategy Engine::getStrategyForStream(audio_stream_type_t stream)
        return STRATEGY_DTMF;
    default:
        ALOGE("unknown stream type %d", stream);
        FALLTHROUGH_INTENDED;
    case AUDIO_STREAM_SYSTEM:
        // NOTE: SYSTEM stream uses MEDIA strategy because muting music and switching outputs
        // while key clicks are played produces a poor result
+1 −0
Original line number Diff line number Diff line
@@ -6066,6 +6066,7 @@ void AudioPolicyManager::filterSurroundFormats(FormatVector *formatsPtr) {
                    case AUDIO_FORMAT_DOLBY_TRUEHD:
                    case AUDIO_FORMAT_E_AC3_JOC:
                        mSurroundFormats.insert(format);
                        break;
                    default:
                        break;
                }