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

Commit c574b759 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Mauro Carvalho Chehab
Browse files

[media] v4l2-async: Don't fail if registered_async isn't implemented



After sub-dev registration in v4l2_async_test_notify(), the v4l2-async
core calls the registered_async callback but if a sub-dev driver does
not implement it, v4l2_subdev_call() will return a -ENOIOCTLCMD which
should not be considered an error.

Reported-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Tested-by: default avatarBenoit Parrot <bparrot@ti.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 3d0ccad0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ static int v4l2_async_test_notify(struct v4l2_async_notifier *notifier,
	}

	ret = v4l2_subdev_call(sd, core, registered_async);
	if (ret < 0) {
	if (ret < 0 && ret != -ENOIOCTLCMD) {
		if (notifier->unbind)
			notifier->unbind(notifier, sd, asd);
		return ret;