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

Commit a3606089 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioSystem: remove obsolete method.

Bug: 18067208.
Change-Id: I9bbf9088485f5162c765ca504d9b784b956234c6
parent 1cf9ad1a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -116,8 +116,6 @@ public:
    static status_t getLatency(audio_io_handle_t output,
                               uint32_t* latency);

    static bool routedToA2dpOutput(audio_stream_type_t streamType);

    // return status NO_ERROR implies *buffSize > 0
    static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
        audio_channel_mask_t channelMask, size_t* buffSize);
+0 −15
Original line number Diff line number Diff line
@@ -543,21 +543,6 @@ void AudioSystem::setErrorCallback(audio_error_callback cb)
    gAudioErrorCallback = cb;
}


bool AudioSystem::routedToA2dpOutput(audio_stream_type_t streamType)
{
    switch (streamType) {
    case AUDIO_STREAM_MUSIC:
    case AUDIO_STREAM_VOICE_CALL:
    case AUDIO_STREAM_BLUETOOTH_SCO:
    case AUDIO_STREAM_SYSTEM:
        return true;
    default:
        return false;
    }
}


// client singleton for AudioPolicyService binder interface
sp<IAudioPolicyService> AudioSystem::gAudioPolicyService;
sp<AudioSystem::AudioPolicyServiceClient> AudioSystem::gAudioPolicyServiceClient;