summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-20 12:11:37 +1000
committerChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-20 12:11:37 +1000
commit545a81a2d6cb78a1bae885df41f2c8f0f8a2b574 (patch)
treea98507878b2c6ba183cac07b1845e653ffc82124 /linux/drivers
parentb06a1f3b7be5d6512cb3036b89a607b5f8b17203 (diff)
downloadmediapointer-dvb-s2-545a81a2d6cb78a1bae885df41f2c8f0f8a2b574.tar.gz
mediapointer-dvb-s2-545a81a2d6cb78a1bae885df41f2c8f0f8a2b574.tar.bz2
xc2028: base firmwares should have std0
From: Chris Pascoe <c.pascoe@itee.uq.edu.au> When loading BASE firmware, we must use std = 0. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tuner-xc2028.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c
index ca61c25a7..a435b8f2a 100644
--- a/linux/drivers/media/video/tuner-xc2028.c
+++ b/linux/drivers/media/video/tuner-xc2028.c
@@ -629,6 +629,7 @@ static int check_firmware(struct dvb_frontend *fe, enum tuner_mode new_mode,
unsigned int type = 0;
struct firmware_properties new_fw;
u16 version, hwmodel;
+ v4l2_std_id std0;
tuner_dbg("%s called\n", __FUNCTION__);
@@ -705,7 +706,9 @@ retry:
if (rc < 0)
goto fail;
- rc = load_firmware(fe, BASE | new_fw.type, &new_fw.id);
+ /* BASE firmwares are all std0 */
+ std0 = 0;
+ rc = load_firmware(fe, BASE | new_fw.type, &std0);
if (rc < 0) {
tuner_err("Error %d while loading base firmware\n",
rc);
@@ -715,7 +718,7 @@ retry:
/* Load INIT1, if needed */
tuner_dbg("Load init1 firmware, if exists\n");
- rc = load_firmware(fe, BASE | INIT1 | new_fw.type, &new_fw.id);
+ rc = load_firmware(fe, BASE | INIT1 | new_fw.type, &std0);
if (rc < 0 && rc != -ENOENT) {
tuner_err("Error %d while loading init1 firmware\n",
rc);