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

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

Change-Id: I133f4f6fafbcc43d1fd1d0446016e472e2eae60b
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:53:03 +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.