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

Commit 124fac01 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audio hal: Add method for providing current device rotation to HAL

Added method:
  IPrimaryDevice.updateRotation

Bug: 73088071
Change-Id: I23e78b70fa8cb0dba964420519b939856aaa914e
Test: make
parent 8878f57d
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -132,4 +132,22 @@ interface IPrimaryDevice extends IDevice {
     * @return retval operation completion status.
     */
    setHacEnabled(bool enabled) generates (Result retval);

    enum Rotation : int32_t {
        DEG_0,
        DEG_90,
        DEG_180,
        DEG_270
    };

    /**
     * Updates HAL on the current rotation of the device relative to natural
     * orientation. Calling this method is equivalent to setting legacy
     * parameter "rotation".
     *
     * @param rotation rotation in degrees relative to natural device
     *     orientation.
     * @return retval operation completion status.
     */
    updateRotation(Rotation rotation) generates (Result retval);
};