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

Commit b7e9c3b4 authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

audio policy: fixed delayed voice volume commands am: baf35fee

am: 63fb42a8

Change-Id: Ia38547c4465e8a2a29a025490054d0b9e67b3ecd
parents 2f0873e0 63fb42a8
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -987,6 +987,18 @@ void AudioPolicyService::AudioCommandThread::insertCommand_l(sp<AudioCommand>& c
            delayMs = 1;
        } break;

        case SET_VOICE_VOLUME: {
            VoiceVolumeData *data = (VoiceVolumeData *)command->mParam.get();
            VoiceVolumeData *data2 = (VoiceVolumeData *)command2->mParam.get();
            ALOGV("Filtering out voice volume command value %f replaced by %f",
                  data2->mVolume, data->mVolume);
            removedCommands.add(command2);
            command->mTime = command2->mTime;
            // force delayMs to non 0 so that code below does not request to wait for
            // command status as the command is now delayed
            delayMs = 1;
        } break;

        case CREATE_AUDIO_PATCH:
        case RELEASE_AUDIO_PATCH: {
            audio_patch_handle_t handle;