summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-firmware.h
diff options
context:
space:
mode:
authorIan Armstrong2010-06-12 18:33:21 +0200
committerMauro Carvalho Chehab2010-08-02 19:47:55 +0200
commit914610e8c508224a6fb9fb501ed4bda25b340ba6 (patch)
tree461d7bf99143ddda1847be4e9095a65268530ec3 /drivers/media/video/ivtv/ivtv-firmware.h
parentV4L/DVB: lgdt3305: enable FE_HAS_SIGNAL hack for the lgdt3304 in QAM mode (diff)
downloadkernel-qcow2-linux-914610e8c508224a6fb9fb501ed4bda25b340ba6.tar.gz
kernel-qcow2-linux-914610e8c508224a6fb9fb501ed4bda25b340ba6.tar.xz
kernel-qcow2-linux-914610e8c508224a6fb9fb501ed4bda25b340ba6.zip
V4L/DVB: ivtv: Add firmare monitoring and debug mode to ignore firmware problems
>From Ian's e-mail: When a device is opened the firmware state will be checked. If it isn't responding then the open will fail with -EIO. Due to the nature of the hardware, a single failed check will block everything since we don't know exactly what has failed. A side effect of this is the blocking of debug access, so an additional debug level has been created which allows the block to be bypassed. Andy Walls' modifications: I modified Ian's patch to add a separate fw_debug module parameter to change the driver's behavior, as opposed to using the normal debug module parameter. The fw_debug module parameter is only available when CONFIG_VIDEO_ADV_DEBUG is set. I also made some minor whitespace adjustments and changed some warning messages to be a bit more specific. s/happy/glad/g Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk> Signed-off-by: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-firmware.h')
-rw-r--r--drivers/media/video/ivtv/ivtv-firmware.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-firmware.h b/drivers/media/video/ivtv/ivtv-firmware.h
index 041ba94e65bc..52bb4e5598fd 100644
--- a/drivers/media/video/ivtv/ivtv-firmware.h
+++ b/drivers/media/video/ivtv/ivtv-firmware.h
@@ -26,5 +26,6 @@ int ivtv_firmware_init(struct ivtv *itv);
void ivtv_firmware_versions(struct ivtv *itv);
void ivtv_halt_firmware(struct ivtv *itv);
void ivtv_init_mpeg_decoder(struct ivtv *itv);
+int ivtv_firmware_check(struct ivtv *itv, char *where);
#endif