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

Commit 7c5b60ae authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: build with USE_LEGACY_AUDIO_POLICY

Change-Id: I9def12ea689b00c0295c670c07373dacfb186799
parent 333f66d4
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -485,4 +485,17 @@ status_t AudioPolicyService::setAudioPortConfig(const struct audio_port_config *
    return INVALID_OPERATION;
}

audio_io_handle_t AudioPolicyService::getOutputForAttr(const audio_attributes_t *attr __unused,
                                    uint32_t samplingRate,
                                    audio_format_t format,
                                    audio_channel_mask_t channelMask,
                                    audio_output_flags_t flags,
                                    const audio_offload_info_t *offloadInfo)
{
    //FIXME: temporary to fix build with USE_LEGACY_AUDIO_POLICY
    audio_stream_type_t stream = AUDIO_STREAM_MUSIC;
    return getOutput(stream, samplingRate, format, channelMask, flags, offloadInfo);
}


}; // namespace android