Commit a54d1dea authored by Ian Armstrong's avatar Ian Armstrong Committed by Mauro Carvalho Chehab

V4L/DVB (7242): ivtv: fix for yuv filter table check

As the result of a previous change that delayed the loading of the firmware,
the driver can sometimes report a bogus error regarding the yuv output filter
table not being found in the firmware. This patch moves the filter table
check to ensure it's only done after the firmware has been loaded.
Signed-off-by: default avatarIan Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent e8d35932
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
#include "ivtv-vbi.h" #include "ivtv-vbi.h"
#include "ivtv-routing.h" #include "ivtv-routing.h"
#include "ivtv-gpio.h" #include "ivtv-gpio.h"
#include "ivtv-yuv.h"
#include <media/tveeprom.h> #include <media/tveeprom.h>
#include <media/saa7115.h> #include <media/saa7115.h>
...@@ -1053,9 +1052,6 @@ static int __devinit ivtv_probe(struct pci_dev *dev, ...@@ -1053,9 +1052,6 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
goto free_io; goto free_io;
} }
/* Check yuv output filter table */
if (itv->has_cx23415) ivtv_yuv_filter_check(itv);
ivtv_gpio_init(itv); ivtv_gpio_init(itv);
/* active i2c */ /* active i2c */
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "ivtv-driver.h" #include "ivtv-driver.h"
#include "ivtv-mailbox.h" #include "ivtv-mailbox.h"
#include "ivtv-firmware.h" #include "ivtv-firmware.h"
#include "ivtv-yuv.h"
#include <linux/firmware.h> #include <linux/firmware.h>
#define IVTV_MASK_SPU_ENABLE 0xFFFFFFFE #define IVTV_MASK_SPU_ENABLE 0xFFFFFFFE
...@@ -225,11 +226,14 @@ int ivtv_firmware_init(struct ivtv *itv) ...@@ -225,11 +226,14 @@ int ivtv_firmware_init(struct ivtv *itv)
return 0; return 0;
itv->dec_mbox.mbox = ivtv_search_mailbox(itv->dec_mem, IVTV_DECODER_SIZE); itv->dec_mbox.mbox = ivtv_search_mailbox(itv->dec_mem, IVTV_DECODER_SIZE);
if (itv->dec_mbox.mbox == NULL) if (itv->dec_mbox.mbox == NULL) {
IVTV_ERR("Decoder mailbox not found\n"); IVTV_ERR("Decoder mailbox not found\n");
else if (itv->has_cx23415 && ivtv_vapi(itv, CX2341X_DEC_PING_FW, 0)) { } else if (itv->has_cx23415 && ivtv_vapi(itv, CX2341X_DEC_PING_FW, 0)) {
IVTV_ERR("Decoder firmware dead!\n"); IVTV_ERR("Decoder firmware dead!\n");
itv->dec_mbox.mbox = NULL; itv->dec_mbox.mbox = NULL;
} else {
/* Firmware okay, so check yuv output filter table */
ivtv_yuv_filter_check(itv);
} }
return itv->dec_mbox.mbox ? 0 : -ENODEV; return itv->dec_mbox.mbox ? 0 : -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment