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>
This commit is contained in:
parent
90960744a1
commit
38350ba954
1 changed files with 18 additions and 16 deletions
|
@ -22,6 +22,10 @@
|
||||||
#include "cx231xx.h"
|
#include "cx231xx.h"
|
||||||
#include "cx231xx-conf-reg.h"
|
#include "cx231xx-conf-reg.h"
|
||||||
|
|
||||||
|
static unsigned int pcb_debug;
|
||||||
|
module_param(pcb_debug, int, 0644);
|
||||||
|
MODULE_PARM_DESC(pcb_debug, "enable pcb config debug messages [video]");
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
struct pcb_config cx231xx_Scenario[] = {
|
struct pcb_config cx231xx_Scenario[] = {
|
||||||
|
@ -659,11 +663,8 @@ u32 initialize_cx231xx(struct cx231xx *dev)
|
||||||
u32 ts1_source = 0;
|
u32 ts1_source = 0;
|
||||||
u32 ts2_source = 0;
|
u32 ts2_source = 0;
|
||||||
u32 analog_source = 0;
|
u32 analog_source = 0;
|
||||||
u8 tmp = 0;
|
|
||||||
u8 _current_scenario_idx = 0xff;
|
u8 _current_scenario_idx = 0xff;
|
||||||
|
|
||||||
cx231xx_info("PcbConfig::initialize \n");
|
|
||||||
|
|
||||||
ts1_source = SOURCE_TS_BDA;
|
ts1_source = SOURCE_TS_BDA;
|
||||||
ts2_source = SOURCE_TS_BDA;
|
ts2_source = SOURCE_TS_BDA;
|
||||||
|
|
||||||
|
@ -672,7 +673,6 @@ u32 initialize_cx231xx(struct cx231xx *dev)
|
||||||
cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, BOARD_CFG_STAT, data, 4);
|
cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, BOARD_CFG_STAT, data, 4);
|
||||||
|
|
||||||
config_info = *((u32 *) data);
|
config_info = *((u32 *) data);
|
||||||
cx231xx_info("SC(0x00) register = 0x%x\n", config_info);
|
|
||||||
usb_speed = (u8) (config_info & 0x1);
|
usb_speed = (u8) (config_info & 0x1);
|
||||||
|
|
||||||
/* Verify this device belongs to Bus power or Self power device */
|
/* Verify this device belongs to Bus power or Self power device */
|
||||||
|
@ -776,18 +776,20 @@ u32 initialize_cx231xx(struct cx231xx *dev)
|
||||||
memcpy(&dev->current_pcb_config, p_pcb_info,
|
memcpy(&dev->current_pcb_config, p_pcb_info,
|
||||||
sizeof(struct pcb_config));
|
sizeof(struct pcb_config));
|
||||||
|
|
||||||
/*******************************************************************/
|
if (pcb_debug) {
|
||||||
tmp = (dev->current_pcb_config.index) + 1;
|
cx231xx_info("SC(0x00) register = 0x%x\n", config_info);
|
||||||
|
cx231xx_info("scenario %d\n",
|
||||||
cx231xx_info("scenario %d\n", tmp);
|
(dev->current_pcb_config.index) + 1);
|
||||||
cx231xx_info("type=%x\n", dev->current_pcb_config.type);
|
cx231xx_info("type=%x\n", dev->current_pcb_config.type);
|
||||||
cx231xx_info("mode=%x\n", dev->current_pcb_config.mode);
|
cx231xx_info("mode=%x\n", dev->current_pcb_config.mode);
|
||||||
cx231xx_info("speed=%x\n", dev->current_pcb_config.speed);
|
cx231xx_info("speed=%x\n", dev->current_pcb_config.speed);
|
||||||
cx231xx_info("ts1_source=%x\n", dev->current_pcb_config.ts1_source);
|
cx231xx_info("ts1_source=%x\n",
|
||||||
cx231xx_info("ts2_source=%x\n", dev->current_pcb_config.ts2_source);
|
dev->current_pcb_config.ts1_source);
|
||||||
cx231xx_info("analog_source=%x\n",
|
cx231xx_info("ts2_source=%x\n",
|
||||||
dev->current_pcb_config.analog_source);
|
dev->current_pcb_config.ts2_source);
|
||||||
/*******************************************************************/
|
cx231xx_info("analog_source=%x\n",
|
||||||
|
dev->current_pcb_config.analog_source);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue