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

Commit 277aa7e2 authored by Lalit Kansara's avatar Lalit Kansara Committed by Bruno Martins
Browse files

audiopolicy: fix compilation issue due to AOSP refresh

Edit function signature of startSource() to reflect changes
as per the latest AOSP refresh.

Change-Id: I5d56fa40e8ade8ddb6cb1fd1b801ad868e4ebe59
parent ec4bf84a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -836,6 +836,7 @@ status_t AudioPolicyManagerCustom::stopSource(sp<AudioOutputDescriptor> outputDe
status_t AudioPolicyManagerCustom::startSource(sp<AudioOutputDescriptor> outputDesc,
                                             audio_stream_type_t stream,
                                             audio_devices_t device,
                                             const char *address,
                                             uint32_t *delayMs)
{
    // cannot start playback of STREAM_TTS if any other output is being used
@@ -895,7 +896,8 @@ status_t AudioPolicyManagerCustom::startSource(sp<AudioOutputDescriptor> outputD
                }
            }
        }
        uint32_t muteWaitMs = setOutputDevice(outputDesc, device, force);
        uint32_t muteWaitMs;
        muteWaitMs = setOutputDevice(outputDesc, device, force, 0, NULL, address);

        // handle special case for sonification while in call
        if (isInCall()) {
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ protected:
        status_t startSource(sp<AudioOutputDescriptor> outputDesc,
                             audio_stream_type_t stream,
                             audio_devices_t device,
                             const char *address,
                             uint32_t *delayMs);
         status_t stopSource(sp<AudioOutputDescriptor> outputDesc,
                            audio_stream_type_t stream,