AHAL: add more comment for IModule.disconnectExternalDevice am: cf210c83b2

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2569670

Change-Id: I1b674adfdb5d66fc9829b361ca2035ce8b0629d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jiabin Huang
2023-04-28 02:09:11 +00:00
committed by Automerger Merge Worker

View File

@@ -234,6 +234,12 @@ interface IModule {
* 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.