pipeline: rkisp1: Add error log when parameter queuing fails
When the extensible parameters queued to the kernel contain an unknown block type it fails with -EINVAL. This should not happen as user land is supposed to check for the supported parameter types. But it took a while to figure out where things went wrong. Add a error statement when queuing of the parameter buffer fails for whatever reason. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
ef830669d0
commit
96d346c935
@@ -422,7 +422,14 @@ void RkISP1CameraData::paramsComputed(unsigned int frame, unsigned int bytesused
|
||||
return;
|
||||
|
||||
info->paramBuffer->_d()->metadata().planes()[0].bytesused = bytesused;
|
||||
pipe->param_->queueBuffer(info->paramBuffer);
|
||||
|
||||
int ret = pipe->param_->queueBuffer(info->paramBuffer);
|
||||
if (ret < 0) {
|
||||
LOG(RkISP1, Error) << "Failed to queue parameter buffer: "
|
||||
<< strerror(-ret);
|
||||
return;
|
||||
}
|
||||
|
||||
pipe->stat_->queueBuffer(info->statBuffer);
|
||||
|
||||
if (info->mainPathBuffer)
|
||||
|
||||
Reference in New Issue
Block a user