]> git.karo-electronics.de Git - linux-beck.git/commit
[media] cx23885: Add busy checks before changing formats
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 14 Aug 2014 09:43:36 +0000 (06:43 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 8 Sep 2014 13:01:01 +0000 (10:01 -0300)
commitf1b6a735328b507810d2436891ee977fb8cd62d7
treeb4cd086ba308e37c37e762d4f37de66e8fbb9ca6
parent4d63a25c4523b5d18e5307897d56aff785f43bf5
[media] cx23885: Add busy checks before changing formats

Before you can change the standard or the capture format, make sure the
various vb2_queues aren't in use since you cannot change the buffer size from
underneath a a busy vb2_queue.

Also make sure that the return code of cx23885_set_tvnorm is returned
correctly, otherwise the -EBUSY will be lost.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/cx23885/cx23885-417.c
drivers/media/pci/cx23885/cx23885-video.c