Camera3: Make ITS test_format_combos test pass 100%
When support stream is used, during configure_streams,
support stream needs to be stopped and restarted. Add
this change to make sure that test_format_combos passes
for all 40/40 test cases.
Bug: 15989117
Change-Id: Ic483106a7fac931ba9d6e664130d59884ac69c3e
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index dfeddb1..1b4e6b2 100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -524,6 +524,8 @@
channel->stop();
(*it)->status = INVALID;
}
+ if (mSupportChannel)
+ mSupportChannel->stop();
if (mMetadataChannel) {
/* If content of mStreamInfo is not 0, there is metadata stream */
mMetadataChannel->stop();
@@ -596,6 +598,10 @@
delete mMetadataChannel;
mMetadataChannel = NULL;
}
+ if (mSupportChannel) {
+ delete mSupportChannel;
+ mSupportChannel = NULL;
+ }
//Create metadata channel and initialize it
mMetadataChannel = new QCamera3MetadataChannel(mCameraHandle->camera_handle,