commit | b811015579e2c228a35f8e756a87f494f366c11e | [log] [tgz] |
---|---|---|
author | Jiabin Huang <jiabin@google.com> | Thu Apr 27 23:06:04 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Fri Apr 28 17:10:05 2023 +0000 |
tree | aa00b0e54965d6f0e068305b0f027ac9f62f2f9b | |
parent | f8cdade2d3195fd01c206aa8fd6b3cf1554ffcaf [diff] |
AHAL: add more comment for IModule.disconnectExternalDevice Bug: 277955540 Test: TH (cherry picked from https://android-review.googlesource.com/q/commit:cf210c83b2d29882aa0144a8e52af0d460628b6e) Merged-In: I0d6a73884ab4bcfec62da45124024e8680155144 Change-Id: I0d6a73884ab4bcfec62da45124024e8680155144
diff --git a/audio/aidl/android/hardware/audio/core/IModule.aidl b/audio/aidl/android/hardware/audio/core/IModule.aidl index 7622d9a..e736c32 100644 --- a/audio/aidl/android/hardware/audio/core/IModule.aidl +++ b/audio/aidl/android/hardware/audio/core/IModule.aidl
@@ -234,6 +234,12 @@ * instance previously instantiated using the 'connectExternalDevice' * method. * + * The framework will call this method before closing streams and resetting + * patches. This call can be used by the HAL module to prepare itself to + * device disconnection. If the HAL module indicates an error after the first + * call, the framework will call this method once again after closing associated + * streams and patches. + * * @throws EX_ILLEGAL_ARGUMENT In the following cases: * - If the port can not be found by the ID. * - If this is not a connected device port.