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

Commit b6a8851f authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audio hal: Add a method to select presentation in a nex-gen media stream

This adds the following method:
  IStreamOut.selectPresentation

This corresponds to the following legacy parameters:
  AUDIO_PARAMETER_STREAM_PRESENTATION_ID
  AUDIO_PARAMETER_STREAM_PROGRAM_ID

Bug: 63901775
Test: make
Change-Id: I9ca6ead72b1ef80d2de582a6e4b051ee32fe1857
parent b2f1c0f8
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -264,4 +264,16 @@ interface IStreamOut extends IStream {
     */
    getPresentationPosition()
            generates (Result retval, uint64_t frames, TimeSpec timeStamp);

    /**
     * Selects a presentation for decoding from a next generation media stream
     * (as defined per ETSI TS 103 190-2) and a program within the presentation.
     * Optional method
     *
     * @param presentationId selected audio presentation.
     * @param programId refinement for the presentation.
     * @return retval operation completion status.
     */
    selectPresentation(int32_t presentationId, int32_t programId)
            generates (Result retval);
};
+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,10 @@ enum Result : int32_t {
    NOT_INITIALIZED,
    INVALID_ARGUMENTS,
    INVALID_STATE,
    /**
     * Methods marked as "Optional method" must return this result value
     * if the operation is not supported by HAL.
     */
    NOT_SUPPORTED
};