[PATCH] staging: bcm2835-camera: Restore return behavior of ctrl_set_bitrate()
dan.carpenter at oracle.com
Tue Jun 25 07:55:58 UTC 2019
On Tue, Jun 25, 2019 at 12:13:15AM +0200, Stefan Wahren wrote:
> The commit 52c4dfcead49 ("Staging: vc04_services: Cleanup in
> ctrl_set_bitrate()") changed the return behavior of ctrl_set_bitrate().
> This breaks probing of bcm2835-camera:
> bcm2835-v4l2: mmal_init: failed to set all camera controls: -3
> Cleanup: Destroy video encoder
> Cleanup: Destroy image encoder
> Cleanup: Destroy video render
> Cleanup: Destroy camera
> bcm2835-v4l2: bcm2835_mmal_probe: mmal init failed: -3
> bcm2835-camera: probe of bcm2835-camera failed with error -3
> So restore the old behavior and fix this issue.
> Fixes: 52c4dfcead49 ("Staging: vc04_services: Cleanup in ctrl_set_bitrate()")
> Signed-off-by: Stefan Wahren <wahrenst at gmx.net>
I feel like this papers over the issue. It would be better to figure
out why this is failing and fix it properly. -3 is -ESRCH and when I
grep for ESRCH I only see it used in the ioctl so that can't be it.
I think it must be -MMAL_MSG_STATUS_EINVAL actually, but it comes from
the firmware or something so we can't grep for it.
Can we do some more digging to find out why it's failing or otherwise
we could add a comment.
* FIXME: port_parameter_set() sometimes fails with
* -MMAL_MSG_STATUS_EINVAL and we don't know why so we're
* ignoring those errors for now.
More information about the devel