前文回顾
上一篇文章,简单讲述close的过程
一 、异常流程
1.1 原文解析
* 13. In case of an error or other asynchronous event, the HAL must call
* camera3_callback_ops_t->notify() with the appropriate error/event
* message. After returning from a fatal device-wide error notification, the
* HAL should act as if close() had been called on it. However, the HAL must
* either cancel or complete all outstanding captures before calling
* notify(), so that once notify() is called with a fatal error, the
* framework will not receive further callbacks from the device. Methods
* besides close() should return -ENODEV or NULL after the notify() method
* returns from a fatal error message.13、出现错误&异常:(1)如果发生错误或其他异步事件,则HAL必须调用结构体3.3camera3_callback_ops_t-> notify()具有相应的错误/事件()之外的方法应返回-ENODEV或NULL。
1.2 官网文档
暂无
1.3 代码分析
//TODO,喝口水,远眺下,继续撸代码