libcamera: mali-c55: Propagate CSI-2 format to ISP

The latest version of the Mali C55 driver has changed the format
accepted by the ISP sink pad to be the 20-bit wide.

The CSI-2 receiver handles the format expansion internally by
propagating the sensor produced format from its sink to the 20-bit
expanded version on its source pad.

Instead of re-applying the sensor format to the CSI-2 receiver source
pad (which is now an invalid operation) read from there the format
propagated by the driver internally and further propagate it to the ISP
subdevice.

Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
This commit is contained in:
Jacopo Mondi 2024-11-15 10:13:30 +00:00 committed by Daniel Scally
parent 673c785de1
commit 4607866bbe

View file

@ -767,7 +767,7 @@ int PipelineHandlerMaliC55::configure(Camera *camera,
if (ret)
return ret;
ret = data->csi_->setFormat(1, &subdevFormat);
ret = data->csi_->getFormat(1, &subdevFormat);
if (ret)
return ret;
}