diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 21:11:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:32 -0500 |
commit | 47bd5bc6486a5288aa3002533c24c8e9e564f9ac (patch) | |
tree | 1170e67936265c81ef238b33c070df56d3b04af2 /drivers/media/video/tuner-xc2028.c | |
parent | aeb012bbf460171b75ba17dc064a543f7256521f (diff) |
V4L/DVB (6650): xc2028: base firmwares should have std0
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 'drivers/media/video/tuner-xc2028.c')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 8f9ccaee9bb5..115738d75f3e 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -614,6 +614,7 @@ static int check_firmware(struct dvb_frontend *fe, enum tuner_mode new_mode, | |||
614 | unsigned int type = 0; | 614 | unsigned int type = 0; |
615 | struct firmware_properties new_fw; | 615 | struct firmware_properties new_fw; |
616 | u16 version, hwmodel; | 616 | u16 version, hwmodel; |
617 | v4l2_std_id std0; | ||
617 | 618 | ||
618 | tuner_dbg("%s called\n", __FUNCTION__); | 619 | tuner_dbg("%s called\n", __FUNCTION__); |
619 | 620 | ||
@@ -690,7 +691,9 @@ retry: | |||
690 | if (rc < 0) | 691 | if (rc < 0) |
691 | goto fail; | 692 | goto fail; |
692 | 693 | ||
693 | rc = load_firmware(fe, BASE | new_fw.type, &new_fw.id); | 694 | /* BASE firmwares are all std0 */ |
695 | std0 = 0; | ||
696 | rc = load_firmware(fe, BASE | new_fw.type, &std0); | ||
694 | if (rc < 0) { | 697 | if (rc < 0) { |
695 | tuner_err("Error %d while loading base firmware\n", | 698 | tuner_err("Error %d while loading base firmware\n", |
696 | rc); | 699 | rc); |
@@ -700,7 +703,7 @@ retry: | |||
700 | /* Load INIT1, if needed */ | 703 | /* Load INIT1, if needed */ |
701 | tuner_dbg("Load init1 firmware, if exists\n"); | 704 | tuner_dbg("Load init1 firmware, if exists\n"); |
702 | 705 | ||
703 | rc = load_firmware(fe, BASE | INIT1 | new_fw.type, &new_fw.id); | 706 | rc = load_firmware(fe, BASE | INIT1 | new_fw.type, &std0); |
704 | if (rc < 0 && rc != -ENOENT) { | 707 | if (rc < 0 && rc != -ENOENT) { |
705 | tuner_err("Error %d while loading init1 firmware\n", | 708 | tuner_err("Error %d while loading init1 firmware\n", |
706 | rc); | 709 | rc); |