diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-12-02 04:30:50 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:59 -0500 |
commit | e026268870b5f05a3f74b37816d96ed3b19a9e33 (patch) | |
tree | 801a3a9cedc2bd187a047a00bc364f4cd27ac944 /drivers/media | |
parent | aec2aef267203d9ac06ce3508682c0aa81a069dc (diff) |
V4L/DVB (6851): xc2028: include int_freq in firmware version display
Add "int_freq" to the debugging output when selecting firmware and the
HAS_IF flag when dumping firmware during load.
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')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index fd248a19c259..416c717eb78e 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -144,7 +144,8 @@ static unsigned int xc2028_get_reg(struct xc2028_data *priv, u16 reg, u16 *val) | |||
144 | return 0; | 144 | return 0; |
145 | } | 145 | } |
146 | 146 | ||
147 | void dump_firm_type(unsigned int type) | 147 | #define dump_firm_type(t) dump_firm_type_and_int_freq(t, 0) |
148 | void dump_firm_type_and_int_freq(unsigned int type, u16 int_freq) | ||
148 | { | 149 | { |
149 | if (type & BASE) | 150 | if (type & BASE) |
150 | printk("BASE "); | 151 | printk("BASE "); |
@@ -206,6 +207,8 @@ void dump_firm_type(unsigned int type) | |||
206 | printk("INPUT2 "); | 207 | printk("INPUT2 "); |
207 | if (type & SCODE) | 208 | if (type & SCODE) |
208 | printk("SCODE "); | 209 | printk("SCODE "); |
210 | if (type & HAS_IF) | ||
211 | printk("HAS_IF_%d ", int_freq); | ||
209 | } | 212 | } |
210 | 213 | ||
211 | static v4l2_std_id parse_audio_std_option(void) | 214 | static v4l2_std_id parse_audio_std_option(void) |
@@ -350,9 +353,9 @@ static int load_all_firmwares(struct dvb_frontend *fe) | |||
350 | } | 353 | } |
351 | tuner_dbg("Reading firmware type "); | 354 | tuner_dbg("Reading firmware type "); |
352 | if (debug) { | 355 | if (debug) { |
353 | dump_firm_type(type); | 356 | dump_firm_type_and_int_freq(type, int_freq); |
354 | printk("(%x), id %llx, size=%d.\n", | 357 | printk("(%x), id %llx, size=%d.\n", |
355 | type, (unsigned long long)id, size); | 358 | type, (unsigned long long)id, size); |
356 | } | 359 | } |
357 | 360 | ||
358 | memcpy(priv->firm[n].ptr, p, size); | 361 | memcpy(priv->firm[n].ptr, p, size); |
@@ -612,7 +615,8 @@ static int load_scode(struct dvb_frontend *fe, unsigned int type, | |||
612 | } | 615 | } |
613 | 616 | ||
614 | tuner_info("Loading SCODE for type="); | 617 | tuner_info("Loading SCODE for type="); |
615 | dump_firm_type(priv->firm[pos].type); | 618 | dump_firm_type_and_int_freq(priv->firm[pos].type, |
619 | priv->firm[pos].int_freq); | ||
616 | printk("(%x), id %016llx.\n", priv->firm[pos].type, | 620 | printk("(%x), id %016llx.\n", priv->firm[pos].type, |
617 | (unsigned long long)*id); | 621 | (unsigned long long)*id); |
618 | 622 | ||
@@ -670,11 +674,15 @@ retry: | |||
670 | tuner_dbg("checking firmware, user requested type="); | 674 | tuner_dbg("checking firmware, user requested type="); |
671 | if (debug) { | 675 | if (debug) { |
672 | dump_firm_type(new_fw.type); | 676 | dump_firm_type(new_fw.type); |
673 | printk("(%x), id %016llx, scode_tbl ", new_fw.type, | 677 | printk("(%x), id %016llx, ", new_fw.type, |
674 | (unsigned long long)new_fw.std_req); | 678 | (unsigned long long)new_fw.std_req); |
675 | dump_firm_type(priv->ctrl.scode_table); | 679 | if (!int_freq) { |
676 | printk("(%x), scode_nr %d\n", priv->ctrl.scode_table, | 680 | printk("scode_tbl "); |
677 | new_fw.scode_nr); | 681 | dump_firm_type(priv->ctrl.scode_table); |
682 | printk("(%x), ", priv->ctrl.scode_table); | ||
683 | } else | ||
684 | printk("int_freq %d, ", new_fw.int_freq); | ||
685 | printk("scode_nr %d\n", new_fw.scode_nr); | ||
678 | } | 686 | } |
679 | 687 | ||
680 | /* No need to reload base firmware if it matches */ | 688 | /* No need to reload base firmware if it matches */ |