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

Commit 634c2a7e authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audio hal: Move setConnectedState from IStream to IDevice

It was a mistake to put this method on IStream, in fact
it belongs to IDevice.

Bug: 73087917
Change-Id: I3ece962343c8541b7891b6448eb43e2f9481ed8a
Test: make
parent 124fac01
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -268,4 +268,16 @@ interface IDevice {
     */
    getMicrophones()
         generates(Result retval, vec<MicrophoneInfo> microphones);

    /**
     * Notifies the device module about the connection state of an input/output
     * device attached to it. Calling this method is equivalent to setting
     * AUDIO_PARAMETER_DEVICE_[DIS]CONNECT on the legacy HAL.
     *
     * @param address audio device specification.
     * @param connected whether the device is connected.
     * @return retval operation completion status.
     */
    setConnectedState(DeviceAddress address, bool connected)
            generates (Result retval);
};
+0 −12
Original line number Diff line number Diff line
@@ -196,18 +196,6 @@ interface IStream {
     */
    setDevice(DeviceAddress address) generates (Result retval);

    /**
     * Notifies the stream about device connection state. Calling this method is
     * equivalent to setting AUDIO_PARAMETER_DEVICE_[DIS]CONNECT on the legacy
     * HAL.
     *
     * @param address audio device specification.
     * @param connected whether the device is connected.
     * @return retval operation completion status.
     */
    setConnectedState(DeviceAddress address, bool connected)
            generates (Result retval);

    /**
     * Sets the HW synchronization source. Calling this method is equivalent to
     * setting AUDIO_PARAMETER_STREAM_HW_AV_SYNC on the legacy HAL.