V4L/DVB (6087): ivtv: prevent changing VBI format while capture is in progress
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 20 Aug 2007 19:26:40 +0000 (16:26 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:06:38 +0000 (22:06 -0300)
commitea115d54bc963eb2eb0dc223795f3bd6c689ff99
treef18a9b52ea30c55e656a9fc8aaf762a4cddfb388
parentad8ff0f10b489562012e433acdac92498fe8bdc9
V4L/DVB (6087): ivtv: prevent changing VBI format while capture is in progress

Changing the VBI format requires a CX2341X_ENC_INITIALIZE_INPUT firmware
call. This can only be done if no capture is in progress. So return
-EBUSY if the encoder is busy.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-ioctl.c