]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: vsp1: Fix routing cleanup when stopping the stream
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 23 Jun 2014 21:40:49 +0000 (18:40 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 15:44:49 +0000 (12:44 -0300)
commitf02081b1ef0e3b579c28c6a2a090f3864ae1daea
tree15c05af171ff80e55c766003b49f982b6b8c2488
parent1ef48bdac24f084f8798fa9ef4a26f93ca2b6f04
[media] v4l: vsp1: Fix routing cleanup when stopping the stream

Commit 2a04b5df30b106ece491ba8d5a2ac1f3569605b9 ("v4l: vsp1: Support
multi-input entities") reworked pipeline routing configuration and
introduced a bug by writing to the entities routing registers without
first checking whether the entity had a routing register. This results
in overwriting the value at offset 0 of the device register space when
stopping the stream.

Fix this by skipping routing register write for entities without a
routing register.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/vsp1/vsp1_video.c