Commit 955e6ed8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] CodingStyle cleanup at s5h1432 and cx231xx

The patches received from the vendor contained a lot of CodingStyle
issues. Cleans the style issues reported by checkpatch.pl on
those drivers.

It is better to do such style fixes when merging a big set of
changes than latter. Of course, the better is to receive patches
already cleaned ;)
Acked-by: default avatarSri Deevi <Srinivasa.Deevi@conexant.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 61b04cb2
/* /*
Samsung s5h1432 DVB-T demodulator driver * Samsung s5h1432 DVB-T demodulator driver
*
Copyright (C) 2009 Bill Liu <Bill.Liu@Conexant.com> * Copyright (C) 2009 Bill Liu <Bill.Liu@Conexant.com>
*
This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. * (at your option) any later version.
*
This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. * GNU General Public License for more details.
*
You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
*/
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -162,7 +161,7 @@ static int s5h1432_set_IF(struct dvb_frontend *fe, u32 ifFreqHz) ...@@ -162,7 +161,7 @@ static int s5h1432_set_IF(struct dvb_frontend *fe, u32 ifFreqHz)
value = (u32) (((48000 - (ifFreqHz / 1000)) * 512 * value = (u32) (((48000 - (ifFreqHz / 1000)) * 512 *
(u32) 32768) / (48 * 1000)); (u32) 32768) / (48 * 1000));
printk(KERN_INFO printk(KERN_INFO
"Default IFFreq %d :reg value = 0x%x \n", "Default IFFreq %d :reg value = 0x%x\n",
ifFreqHz, value); ifFreqHz, value);
s5h1432_writereg(state, S5H1432_I2C_TOP_ADDR, 0xe4, s5h1432_writereg(state, S5H1432_I2C_TOP_ADDR, 0xe4,
(u8) value & 0xFF); (u8) value & 0xFF);
...@@ -379,7 +378,6 @@ struct dvb_frontend *s5h1432_attach(const struct s5h1432_config *config, ...@@ -379,7 +378,6 @@ struct dvb_frontend *s5h1432_attach(const struct s5h1432_config *config,
kfree(state); kfree(state);
return NULL; return NULL;
} }
EXPORT_SYMBOL(s5h1432_attach); EXPORT_SYMBOL(s5h1432_attach);
static struct dvb_frontend_ops s5h1432_ops = { static struct dvb_frontend_ops s5h1432_ops = {
...@@ -415,8 +413,3 @@ MODULE_PARM_DESC(debug, "Enable verbose debug messages"); ...@@ -415,8 +413,3 @@ MODULE_PARM_DESC(debug, "Enable verbose debug messages");
MODULE_DESCRIPTION("Samsung s5h1432 DVB-T Demodulator driver"); MODULE_DESCRIPTION("Samsung s5h1432 DVB-T Demodulator driver");
MODULE_AUTHOR("Bill Liu"); MODULE_AUTHOR("Bill Liu");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
/*
* Local variables:
* c-basic-offset: 8
*/
/* /*
Samsung s5h1432 VSB/QAM demodulator driver * Samsung s5h1432 VSB/QAM demodulator driver
*
Copyright (C) 2009 Bill Liu <Bill.Liu@Conexant.com> * Copyright (C) 2009 Bill Liu <Bill.Liu@Conexant.com>
*
This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. * (at your option) any later version.
*
This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. * GNU General Public License for more details.
*
You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/ */
#ifndef __S5H1432_H__ #ifndef __S5H1432_H__
#define __S5H1432_H__ #define __S5H1432_H__
...@@ -89,8 +89,3 @@ static inline struct dvb_frontend *s5h1432_attach(const struct s5h1432_config ...@@ -89,8 +89,3 @@ static inline struct dvb_frontend *s5h1432_attach(const struct s5h1432_config
#endif /* CONFIG_DVB_s5h1432 */ #endif /* CONFIG_DVB_s5h1432 */
#endif /* __s5h1432_H__ */ #endif /* __s5h1432_H__ */
/*
* Local variables:
* c-basic-offset: 8
*/
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#define CX231xx_FIRM_IMAGE_SIZE 376836 #define CX231xx_FIRM_IMAGE_SIZE 376836
#define CX231xx_FIRM_IMAGE_NAME "v4l-cx23885-enc.fw" #define CX231xx_FIRM_IMAGE_NAME "v4l-cx23885-enc.fw"
/* for polaris ITVC*/ /* for polaris ITVC */
#define ITVC_WRITE_DIR 0x03FDFC00 #define ITVC_WRITE_DIR 0x03FDFC00
#define ITVC_READ_DIR 0x0001FC00 #define ITVC_READ_DIR 0x0001FC00
...@@ -66,8 +66,7 @@ ...@@ -66,8 +66,7 @@
#define MCI_REGISTER_MODE 0x70 #define MCI_REGISTER_MODE 0x70
/*Read and write modes /* Read and write modes for polaris ITVC */
for polaris ITVC*/
#define MCI_MODE_REGISTER_READ 0x000 #define MCI_MODE_REGISTER_READ 0x000
#define MCI_MODE_REGISTER_WRITE 0x100 #define MCI_MODE_REGISTER_WRITE 0x100
#define MCI_MODE_MEMORY_READ 0x000 #define MCI_MODE_MEMORY_READ 0x000
...@@ -250,20 +249,22 @@ enum cx231xx_mute_video_shift { ...@@ -250,20 +249,22 @@ enum cx231xx_mute_video_shift {
#define IVTV_REG_VPU (0x9058) #define IVTV_REG_VPU (0x9058)
#define IVTV_REG_APU (0xA064) #define IVTV_REG_APU (0xA064)
/**** Bit definitions for MC417_RWD and MC417_OEN registers *** /*
bits 31-16 * Bit definitions for MC417_RWD and MC417_OEN registers
+-----------+ *
| Reserved | * bits 31-16
+-----------+ *+-----------+
bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 *| Reserved |
+-------+-------+-------+-------+-------+-------+-------+-------+ *|+-----------+
| MIWR# | MIRD# | MICS# |MIRDY# |MIADDR3|MIADDR2|MIADDR1|MIADDR0| *| bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8
+-------+-------+-------+-------+-------+-------+-------+-------+ *|+-------+-------+-------+-------+-------+-------+-------+-------+
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 *|| MIWR# | MIRD# | MICS# |MIRDY# |MIADDR3|MIADDR2|MIADDR1|MIADDR0|
+-------+-------+-------+-------+-------+-------+-------+-------+ *|+-------+-------+-------+-------+-------+-------+-------+-------+
|MIDATA7|MIDATA6|MIDATA5|MIDATA4|MIDATA3|MIDATA2|MIDATA1|MIDATA0| *| bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
+-------+-------+-------+-------+-------+-------+-------+-------+ *|+-------+-------+-------+-------+-------+-------+-------+-------+
***/ *||MIDATA7|MIDATA6|MIDATA5|MIDATA4|MIDATA3|MIDATA2|MIDATA1|MIDATA0|
*|+-------+-------+-------+-------+-------+-------+-------+-------+
*/
#define MC417_MIWR 0x8000 #define MC417_MIWR 0x8000
#define MC417_MIRD 0x4000 #define MC417_MIRD 0x4000
#define MC417_MICS 0x2000 #define MC417_MICS 0x2000
...@@ -272,12 +273,12 @@ enum cx231xx_mute_video_shift { ...@@ -272,12 +273,12 @@ enum cx231xx_mute_video_shift {
#define MC417_MIDATA 0x00FF #define MC417_MIDATA 0x00FF
/*** Bit definitions for MC417_CTL register **** /* Bit definitions for MC417_CTL register ****
bits 31-6 bits 5-4 bit 3 bits 2-1 Bit 0 *bits 31-6 bits 5-4 bit 3 bits 2-1 Bit 0
+--------+-------------+--------+--------------+------------+ *+--------+-------------+--------+--------------+------------+
|Reserved|MC417_SPD_CTL|Reserved|MC417_GPIO_SEL|UART_GPIO_EN| *|Reserved|MC417_SPD_CTL|Reserved|MC417_GPIO_SEL|UART_GPIO_EN|
+--------+-------------+--------+--------------+------------+ *+--------+-------------+--------+--------------+------------+
***/ */
#define MC417_SPD_CTL(x) (((x) << 4) & 0x00000030) #define MC417_SPD_CTL(x) (((x) << 4) & 0x00000030)
#define MC417_GPIO_SEL(x) (((x) << 1) & 0x00000006) #define MC417_GPIO_SEL(x) (((x) << 1) & 0x00000006)
#define MC417_UART_GPIO_EN 0x00000001 #define MC417_UART_GPIO_EN 0x00000001
...@@ -337,6 +338,7 @@ int waitForMciComplete(struct cx231xx *dev) ...@@ -337,6 +338,7 @@ int waitForMciComplete(struct cx231xx *dev)
} }
return 0; return 0;
} }
int mc417_register_write(struct cx231xx *dev, u16 address, u32 value) int mc417_register_write(struct cx231xx *dev, u16 address, u32 value)
{ {
u32 temp; u32 temp;
...@@ -393,10 +395,8 @@ int mc417_register_write(struct cx231xx *dev, u16 address, u32 value) ...@@ -393,10 +395,8 @@ int mc417_register_write(struct cx231xx *dev, u16 address, u32 value)
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
return waitForMciComplete(dev); return waitForMciComplete(dev);
} }
int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value) int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value)
{ {
/*write address byte 0;*/ /*write address byte 0;*/
...@@ -404,69 +404,68 @@ int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value) ...@@ -404,69 +404,68 @@ int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value)
u32 return_value = 0; u32 return_value = 0;
int ret = 0; int ret = 0;
temp = 0x82|MCI_REGISTER_ADDRESS_BYTE0|((address&0x00FF)<<8); temp = 0x82 | MCI_REGISTER_ADDRESS_BYTE0 | ((address & 0x00FF) << 8);
temp = temp<<10; temp = temp << 10;
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
temp = temp|((0x05)<<10); temp = temp | ((0x05) << 10);
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
/*write address byte 1;*/ /*write address byte 1;*/
temp = 0x82|MCI_REGISTER_ADDRESS_BYTE1|(address&0xFF00); temp = 0x82 | MCI_REGISTER_ADDRESS_BYTE1 | (address & 0xFF00);
temp = temp<<10; temp = temp << 10;
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
temp = temp|((0x05)<<10); temp = temp | ((0x05) << 10);
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
/*write that the mode is read;*/ /*write that the mode is read;*/
temp = 0x82 | MCI_REGISTER_MODE | MCI_MODE_REGISTER_READ; temp = 0x82 | MCI_REGISTER_MODE | MCI_MODE_REGISTER_READ;
temp = temp<<10; temp = temp << 10;
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
temp = temp|((0x05)<<10); temp = temp | ((0x05) << 10);
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
/*wait for the MIRDY line to be asserted , /*wait for the MIRDY line to be asserted ,
signalling that the read is done;*/ signalling that the read is done;*/
ret = waitForMciComplete(dev); ret = waitForMciComplete(dev);
/*switch the DATA- GPIO to input mode;*/ /*switch the DATA- GPIO to input mode;*/
/*Read data byte 0;*/ /*Read data byte 0;*/
temp = (0x82|MCI_REGISTER_DATA_BYTE0)<<10; temp = (0x82 | MCI_REGISTER_DATA_BYTE0) << 10;
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
temp = ((0x81|MCI_REGISTER_DATA_BYTE0)<<10); temp = ((0x81 | MCI_REGISTER_DATA_BYTE0) << 10);
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
getITVCReg(dev, ITVC_READ_DIR, &temp); getITVCReg(dev, ITVC_READ_DIR, &temp);
return_value |= ((temp&0x03FC0000)>>18); return_value |= ((temp & 0x03FC0000) >> 18);
setITVCReg(dev, ITVC_READ_DIR, (0x87<<10)); setITVCReg(dev, ITVC_READ_DIR, (0x87 << 10));
/* Read data byte 1;*/ /* Read data byte 1;*/
temp = (0x82|MCI_REGISTER_DATA_BYTE1)<<10; temp = (0x82 | MCI_REGISTER_DATA_BYTE1) << 10;
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
temp = ((0x81|MCI_REGISTER_DATA_BYTE1)<<10); temp = ((0x81 | MCI_REGISTER_DATA_BYTE1) << 10);
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
getITVCReg(dev, ITVC_READ_DIR, &temp); getITVCReg(dev, ITVC_READ_DIR, &temp);
return_value |= ((temp&0x03FC0000)>>10); return_value |= ((temp & 0x03FC0000) >> 10);
setITVCReg(dev, ITVC_READ_DIR, (0x87<<10)); setITVCReg(dev, ITVC_READ_DIR, (0x87 << 10));
/*Read data byte 2;*/ /*Read data byte 2;*/
temp = (0x82|MCI_REGISTER_DATA_BYTE2)<<10; temp = (0x82 | MCI_REGISTER_DATA_BYTE2) << 10;
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
temp = ((0x81|MCI_REGISTER_DATA_BYTE2)<<10); temp = ((0x81 | MCI_REGISTER_DATA_BYTE2) << 10);
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
getITVCReg(dev, ITVC_READ_DIR, &temp); getITVCReg(dev, ITVC_READ_DIR, &temp);
return_value |= ((temp&0x03FC0000)>>2); return_value |= ((temp & 0x03FC0000) >> 2);
setITVCReg(dev, ITVC_READ_DIR, (0x87<<10)); setITVCReg(dev, ITVC_READ_DIR, (0x87 << 10));
/*Read data byte 3;*/ /*Read data byte 3;*/
temp = (0x82|MCI_REGISTER_DATA_BYTE3)<<10; temp = (0x82 | MCI_REGISTER_DATA_BYTE3) << 10;
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
temp = ((0x81|MCI_REGISTER_DATA_BYTE3)<<10); temp = ((0x81 | MCI_REGISTER_DATA_BYTE3) << 10);
setITVCReg(dev, ITVC_READ_DIR, temp); setITVCReg(dev, ITVC_READ_DIR, temp);
getITVCReg(dev, ITVC_READ_DIR, &temp); getITVCReg(dev, ITVC_READ_DIR, &temp);
return_value |= ((temp&0x03FC0000)<<6); return_value |= ((temp & 0x03FC0000) << 6);
setITVCReg(dev, ITVC_READ_DIR, (0x87<<10)); setITVCReg(dev, ITVC_READ_DIR, (0x87 << 10));
*value = return_value; *value = return_value;
...@@ -476,25 +475,24 @@ int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value) ...@@ -476,25 +475,24 @@ int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value)
int mc417_memory_write(struct cx231xx *dev, u32 address, u32 value) int mc417_memory_write(struct cx231xx *dev, u32 address, u32 value)
{ {
/*write data byte 0;*/ /*write data byte 0;*/
u32 temp; u32 temp;
int ret = 0; int ret = 0;
temp = 0x82|MCI_MEMORY_DATA_BYTE0|((value&0x000000FF)<<8); temp = 0x82 | MCI_MEMORY_DATA_BYTE0|((value & 0x000000FF) << 8);
temp = temp<<10; temp = temp << 10;
ret = setITVCReg(dev, ITVC_WRITE_DIR, temp); ret = setITVCReg(dev, ITVC_WRITE_DIR, temp);
if (ret < 0) if (ret < 0)
return ret; return ret;
temp = temp|((0x05)<<10); temp = temp | ((0x05) << 10);
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
/*write data byte 1;*/ /*write data byte 1;*/
temp = 0x82|MCI_MEMORY_DATA_BYTE1|(value&0x0000FF00); temp = 0x82 | MCI_MEMORY_DATA_BYTE1 | (value & 0x0000FF00);
temp = temp<<10; temp = temp << 10;
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
temp = temp|((0x05)<<10); temp = temp | ((0x05) << 10);
setITVCReg(dev, ITVC_WRITE_DIR, temp); setITVCReg(dev, ITVC_WRITE_DIR, temp);
/*write data byte 2;*/ /*write data byte 2;*/
...@@ -536,13 +534,11 @@ int mc417_memory_write(struct cx231xx *dev, u32 address, u32 value) ...@@ -536,13 +534,11 @@ int mc417_memory_write(struct cx231xx *dev, u32 address, u32 value)
/*wait for MIRDY line;*/ /*wait for MIRDY line;*/
waitForMciComplete(dev); waitForMciComplete(dev);
return 0; return 0;
} }
int mc417_memory_read(struct cx231xx *dev, u32 address, u32 *value) int mc417_memory_read(struct cx231xx *dev, u32 address, u32 *value)
{ {
u32 temp = 0; u32 temp = 0;
u32 return_value = 0; u32 return_value = 0;
int ret = 0; int ret = 0;
...@@ -951,7 +947,6 @@ void mciWriteMemoryToGPIO(struct cx231xx *dev, u32 address, u32 value, ...@@ -951,7 +947,6 @@ void mciWriteMemoryToGPIO(struct cx231xx *dev, u32 address, u32 value,
*p_fw_image = 0xFFFFFFFF; *p_fw_image = 0xFFFFFFFF;
p_fw_image++; p_fw_image++;
} }
} }
...@@ -1055,7 +1050,7 @@ static int cx231xx_load_firmware(struct cx231xx *dev) ...@@ -1055,7 +1050,7 @@ static int cx231xx_load_firmware(struct cx231xx *dev)
p_fw_data += 1; p_fw_data += 1;
} }
/*download the firmware by ep5-out*/ /*download the firmware by ep5-out*/
for (frame = 0; frame < (int)(CX231xx_FIRM_IMAGE_SIZE*20/_buffer_size); for (frame = 0; frame < (int)(CX231xx_FIRM_IMAGE_SIZE*20/_buffer_size);
frame++) { frame++) {
......
...@@ -1349,8 +1349,8 @@ void cx231xx_dump_HH_reg(struct cx231xx *dev) ...@@ -1349,8 +1349,8 @@ void cx231xx_dump_HH_reg(struct cx231xx *dev)
vid_blk_write_word(dev, AFE_CTRL_C2HH_SRC_CTRL, 0x4485D390); vid_blk_write_word(dev, AFE_CTRL_C2HH_SRC_CTRL, 0x4485D390);
status = vid_blk_read_word(dev, AFE_CTRL_C2HH_SRC_CTRL, &value); status = vid_blk_read_word(dev, AFE_CTRL_C2HH_SRC_CTRL, &value);
cx231xx_info("AFE_CTRL_C2HH_SRC_CTRL=0x%x\n", value); cx231xx_info("AFE_CTRL_C2HH_SRC_CTRL=0x%x\n", value);
} }
void cx231xx_dump_SC_reg(struct cx231xx *dev) void cx231xx_dump_SC_reg(struct cx231xx *dev)
{ {
u8 value[4] = { 0, 0, 0, 0 }; u8 value[4] = { 0, 0, 0, 0 };
...@@ -1537,7 +1537,6 @@ u32 cx231xx_Get_Colibri_CarrierOffset(u32 mode, u32 standerd) ...@@ -1537,7 +1537,6 @@ u32 cx231xx_Get_Colibri_CarrierOffset(u32 mode, u32 standerd)
{ {
u32 colibri_carrier_offset = 0; u32 colibri_carrier_offset = 0;
if (mode == TUNER_MODE_FM_RADIO) { if (mode == TUNER_MODE_FM_RADIO) {
colibri_carrier_offset = 1100000; colibri_carrier_offset = 1100000;
} else if (standerd & (V4L2_STD_NTSC | V4L2_STD_NTSC_M_JP)) { } else if (standerd & (V4L2_STD_NTSC | V4L2_STD_NTSC_M_JP)) {
...@@ -1549,21 +1548,18 @@ u32 cx231xx_Get_Colibri_CarrierOffset(u32 mode, u32 standerd) ...@@ -1549,21 +1548,18 @@ u32 cx231xx_Get_Colibri_CarrierOffset(u32 mode, u32 standerd)
colibri_carrier_offset = 2100000; /*2.10MHz */ colibri_carrier_offset = 2100000; /*2.10MHz */
} }
return colibri_carrier_offset; return colibri_carrier_offset;
} }
void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq, void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq,
u8 spectral_invert, u32 mode) u8 spectral_invert, u32 mode)
{ {
unsigned long pll_freq_word; unsigned long pll_freq_word;
int status = 0; int status = 0;
u32 dif_misc_ctrl_value = 0; u32 dif_misc_ctrl_value = 0;
u64 pll_freq_u64 = 0; u64 pll_freq_u64 = 0;
u32 i = 0; u32 i = 0;
cx231xx_info("if_freq=%d;spectral_invert=0x%x;mode=0x%x\n", cx231xx_info("if_freq=%d;spectral_invert=0x%x;mode=0x%x\n",
if_freq, spectral_invert, mode); if_freq, spectral_invert, mode);
...@@ -1616,7 +1612,6 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq, ...@@ -1616,7 +1612,6 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq,
Dif_set_array[i].register_address, Dif_set_array[i].value); Dif_set_array[i].register_address, Dif_set_array[i].value);
} }
} }
} }
/****************************************************************************** /******************************************************************************
......
/* /*
cx231xx-dif.h - driver for Conexant Cx23100/101/102 USB video capture devices * cx231xx-dif.h - driver for Conexant Cx23100/101/102 USB video capture devices
*
Copyright {C} 2009 <Bill.Liu@conexant.com> * Copyright {C} 2009 <Bill.Liu@conexant.com>
*
This program is free software, you can redistribute it and/or modify * This program is free software, you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or * the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. * (at your option) any later version.
*
This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY, without even the implied warranty of * but WITHOUT ANY WARRANTY, without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. * GNU General Public License for more details.
*
You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
along with this program, if not, write to the Free Software * along with this program, if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef _CX231XX_DIF_H #ifndef _CX231XX_DIF_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment