diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-22 07:02:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:09 -0400 |
commit | 38350ba9549b8c981f58ad3d037b335cbae14c43 (patch) | |
tree | e6e20adf6e91ee62b5cc9202a339b495f92f8c85 /drivers/media/video/cx231xx | |
parent | 90960744a1ea83b70ace7983c80173220c9451c3 (diff) |
V4L/DVB (11133): cx231xx: don't print pcb config debug messages by default
Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-pcb-cfg.c | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-pcb-cfg.c b/drivers/media/video/cx231xx/cx231xx-pcb-cfg.c index c00f51eae0ac..7473c33e823e 100644 --- a/drivers/media/video/cx231xx/cx231xx-pcb-cfg.c +++ b/drivers/media/video/cx231xx/cx231xx-pcb-cfg.c | |||
@@ -22,6 +22,10 @@ | |||
22 | #include "cx231xx.h" | 22 | #include "cx231xx.h" |
23 | #include "cx231xx-conf-reg.h" | 23 | #include "cx231xx-conf-reg.h" |
24 | 24 | ||
25 | static unsigned int pcb_debug; | ||
26 | module_param(pcb_debug, int, 0644); | ||
27 | MODULE_PARM_DESC(pcb_debug, "enable pcb config debug messages [video]"); | ||
28 | |||
25 | /******************************************************************************/ | 29 | /******************************************************************************/ |
26 | 30 | ||
27 | struct pcb_config cx231xx_Scenario[] = { | 31 | struct pcb_config cx231xx_Scenario[] = { |
@@ -659,11 +663,8 @@ u32 initialize_cx231xx(struct cx231xx *dev) | |||
659 | u32 ts1_source = 0; | 663 | u32 ts1_source = 0; |
660 | u32 ts2_source = 0; | 664 | u32 ts2_source = 0; |
661 | u32 analog_source = 0; | 665 | u32 analog_source = 0; |
662 | u8 tmp = 0; | ||
663 | u8 _current_scenario_idx = 0xff; | 666 | u8 _current_scenario_idx = 0xff; |
664 | 667 | ||
665 | cx231xx_info("PcbConfig::initialize \n"); | ||
666 | |||
667 | ts1_source = SOURCE_TS_BDA; | 668 | ts1_source = SOURCE_TS_BDA; |
668 | ts2_source = SOURCE_TS_BDA; | 669 | ts2_source = SOURCE_TS_BDA; |
669 | 670 | ||
@@ -672,7 +673,6 @@ u32 initialize_cx231xx(struct cx231xx *dev) | |||
672 | cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, BOARD_CFG_STAT, data, 4); | 673 | cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, BOARD_CFG_STAT, data, 4); |
673 | 674 | ||
674 | config_info = *((u32 *) data); | 675 | config_info = *((u32 *) data); |
675 | cx231xx_info("SC(0x00) register = 0x%x\n", config_info); | ||
676 | usb_speed = (u8) (config_info & 0x1); | 676 | usb_speed = (u8) (config_info & 0x1); |
677 | 677 | ||
678 | /* Verify this device belongs to Bus power or Self power device */ | 678 | /* Verify this device belongs to Bus power or Self power device */ |
@@ -776,18 +776,20 @@ u32 initialize_cx231xx(struct cx231xx *dev) | |||
776 | memcpy(&dev->current_pcb_config, p_pcb_info, | 776 | memcpy(&dev->current_pcb_config, p_pcb_info, |
777 | sizeof(struct pcb_config)); | 777 | sizeof(struct pcb_config)); |
778 | 778 | ||
779 | /*******************************************************************/ | 779 | if (pcb_debug) { |
780 | tmp = (dev->current_pcb_config.index) + 1; | 780 | cx231xx_info("SC(0x00) register = 0x%x\n", config_info); |
781 | 781 | cx231xx_info("scenario %d\n", | |
782 | cx231xx_info("scenario %d\n", tmp); | 782 | (dev->current_pcb_config.index) + 1); |
783 | cx231xx_info("type=%x\n", dev->current_pcb_config.type); | 783 | cx231xx_info("type=%x\n", dev->current_pcb_config.type); |
784 | cx231xx_info("mode=%x\n", dev->current_pcb_config.mode); | 784 | cx231xx_info("mode=%x\n", dev->current_pcb_config.mode); |
785 | cx231xx_info("speed=%x\n", dev->current_pcb_config.speed); | 785 | cx231xx_info("speed=%x\n", dev->current_pcb_config.speed); |
786 | cx231xx_info("ts1_source=%x\n", dev->current_pcb_config.ts1_source); | 786 | cx231xx_info("ts1_source=%x\n", |
787 | cx231xx_info("ts2_source=%x\n", dev->current_pcb_config.ts2_source); | 787 | dev->current_pcb_config.ts1_source); |
788 | cx231xx_info("analog_source=%x\n", | 788 | cx231xx_info("ts2_source=%x\n", |
789 | dev->current_pcb_config.analog_source); | 789 | dev->current_pcb_config.ts2_source); |
790 | /*******************************************************************/ | 790 | cx231xx_info("analog_source=%x\n", |
791 | dev->current_pcb_config.analog_source); | ||
792 | } | ||
791 | 793 | ||
792 | return 0; | 794 | return 0; |
793 | } | 795 | } |