Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80b3982b authored by Jacopo Mondi's avatar Jacopo Mondi Committed by Alex Elder
Browse files

greybus: camera: Fix size of configure_streams(0)



When APB-A CSI-Tx configuration fails, it is necessary to unconfigure
the camera module issuesing a 0 stream configuration request.
Fix size of request and response to avoid Greybus core complain about
Response size differences.

Testing Done: Triggering the error condition after APB-A CSI-tx
              configuration does not make Greybus core complain anymore

Signed-off-by: default avatarJacopo Mondi <jacopo.mondi@linaro.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@linaro.org>
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
parent 36ab1108
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -468,7 +468,8 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
			memset(req, 0, sizeof(*req));
			gb_operation_sync(gcam->connection,
					  GB_CAMERA_TYPE_CONFIGURE_STREAMS,
					  req, req_size, resp, resp_size);
					  req, sizeof(*req),
					  resp, sizeof(*resp));
			*flags = 0;
			*num_streams = 0;
			goto done;