Path: blob/master/drivers/media/dvb/frontends/cx24110.c
15112 views
/*1cx24110 - Single Chip Satellite Channel Receiver driver module23Copyright (C) 2002 Peter Hettkamp <[email protected]> based on4work5Copyright (C) 1999 Convergence Integrated Media GmbH <[email protected]>67This program is free software; you can redistribute it and/or modify8it under the terms of the GNU General Public License as published by9the Free Software Foundation; either version 2 of the License, or10(at your option) any later version.1112This program is distributed in the hope that it will be useful,13but WITHOUT ANY WARRANTY; without even the implied warranty of14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1516GNU General Public License for more details.1718You should have received a copy of the GNU General Public License19along with this program; if not, write to the Free Software20Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2122*/2324#include <linux/slab.h>25#include <linux/kernel.h>26#include <linux/module.h>27#include <linux/init.h>2829#include "dvb_frontend.h"30#include "cx24110.h"313233struct cx24110_state {3435struct i2c_adapter* i2c;3637const struct cx24110_config* config;3839struct dvb_frontend frontend;4041u32 lastber;42u32 lastbler;43u32 lastesn0;44};4546static int debug;47#define dprintk(args...) \48do { \49if (debug) printk(KERN_DEBUG "cx24110: " args); \50} while (0)5152static struct {u8 reg; u8 data;} cx24110_regdata[]=53/* Comments beginning with @ denote this value should54be the default */55{{0x09,0x01}, /* SoftResetAll */56{0x09,0x00}, /* release reset */57{0x01,0xe8}, /* MSB of code rate 27.5MS/s */58{0x02,0x17}, /* middle byte " */59{0x03,0x29}, /* LSB " */60{0x05,0x03}, /* @ DVB mode, standard code rate 3/4 */61{0x06,0xa5}, /* @ PLL 60MHz */62{0x07,0x01}, /* @ Fclk, i.e. sampling clock, 60MHz */63{0x0a,0x00}, /* @ partial chip disables, do not set */64{0x0b,0x01}, /* set output clock in gapped mode, start signal low65active for first byte */66{0x0c,0x11}, /* no parity bytes, large hold time, serial data out */67{0x0d,0x6f}, /* @ RS Sync/Unsync thresholds */68{0x10,0x40}, /* chip doc is misleading here: write bit 6 as 169to avoid starting the BER counter. Reset the70CRC test bit. Finite counting selected */71{0x15,0xff}, /* @ size of the limited time window for RS BER72estimation. It is <value>*256 RS blocks, this73gives approx. 2.6 sec at 27.5MS/s, rate 3/4 */74{0x16,0x00}, /* @ enable all RS output ports */75{0x17,0x04}, /* @ time window allowed for the RS to sync */76{0x18,0xae}, /* @ allow all standard DVB code rates to be scanned77for automatically */78/* leave the current code rate and normalization79registers as they are after reset... */80{0x21,0x10}, /* @ during AutoAcq, search each viterbi setting81only once */82{0x23,0x18}, /* @ size of the limited time window for Viterbi BER83estimation. It is <value>*65536 channel bits, i.e.84approx. 38ms at 27.5MS/s, rate 3/4 */85{0x24,0x24}, /* do not trigger Viterbi CRC test. Finite count window */86/* leave front-end AGC parameters at default values */87/* leave decimation AGC parameters at default values */88{0x35,0x40}, /* disable all interrupts. They are not connected anyway */89{0x36,0xff}, /* clear all interrupt pending flags */90{0x37,0x00}, /* @ fully enable AutoAcqq state machine */91{0x38,0x07}, /* @ enable fade recovery, but not autostart AutoAcq */92/* leave the equalizer parameters on their default values */93/* leave the final AGC parameters on their default values */94{0x41,0x00}, /* @ MSB of front-end derotator frequency */95{0x42,0x00}, /* @ middle bytes " */96{0x43,0x00}, /* @ LSB " */97/* leave the carrier tracking loop parameters on default */98/* leave the bit timing loop parameters at default */99{0x56,0x4d}, /* set the filtune voltage to 2.7V, as recommended by */100/* the cx24108 data sheet for symbol rates above 15MS/s */101{0x57,0x00}, /* @ Filter sigma delta enabled, positive */102{0x61,0x95}, /* GPIO pins 1-4 have special function */103{0x62,0x05}, /* GPIO pin 5 has special function, pin 6 is GPIO */104{0x63,0x00}, /* All GPIO pins use CMOS output characteristics */105{0x64,0x20}, /* GPIO 6 is input, all others are outputs */106{0x6d,0x30}, /* tuner auto mode clock freq 62kHz */107{0x70,0x15}, /* use auto mode, tuner word is 21 bits long */108{0x73,0x00}, /* @ disable several demod bypasses */109{0x74,0x00}, /* @ " */110{0x75,0x00} /* @ " */111/* the remaining registers are for SEC */112};113114115static int cx24110_writereg (struct cx24110_state* state, int reg, int data)116{117u8 buf [] = { reg, data };118struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 };119int err;120121if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) {122dprintk ("%s: writereg error (err == %i, reg == 0x%02x,"123" data == 0x%02x)\n", __func__, err, reg, data);124return -EREMOTEIO;125}126127return 0;128}129130static int cx24110_readreg (struct cx24110_state* state, u8 reg)131{132int ret;133u8 b0 [] = { reg };134u8 b1 [] = { 0 };135struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 },136{ .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } };137138ret = i2c_transfer(state->i2c, msg, 2);139140if (ret != 2) return ret;141142return b1[0];143}144145static int cx24110_set_inversion (struct cx24110_state* state, fe_spectral_inversion_t inversion)146{147/* fixme (low): error handling */148149switch (inversion) {150case INVERSION_OFF:151cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1);152/* AcqSpectrInvDis on. No idea why someone should want this */153cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)&0xf7);154/* Initial value 0 at start of acq */155cx24110_writereg(state,0x22,cx24110_readreg(state,0x22)&0xef);156/* current value 0 */157/* The cx24110 manual tells us this reg is read-only.158But what the heck... set it ayways */159break;160case INVERSION_ON:161cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1);162/* AcqSpectrInvDis on. No idea why someone should want this */163cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)|0x08);164/* Initial value 1 at start of acq */165cx24110_writereg(state,0x22,cx24110_readreg(state,0x22)|0x10);166/* current value 1 */167break;168case INVERSION_AUTO:169cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)&0xfe);170/* AcqSpectrInvDis off. Leave initial & current states as is */171break;172default:173return -EINVAL;174}175176return 0;177}178179static int cx24110_set_fec (struct cx24110_state* state, fe_code_rate_t fec)180{181/* fixme (low): error handling */182183static const int rate[]={-1,1,2,3,5,7,-1};184static const int g1[]={-1,0x01,0x02,0x05,0x15,0x45,-1};185static const int g2[]={-1,0x01,0x03,0x06,0x1a,0x7a,-1};186187/* Well, the AutoAcq engine of the cx24106 and 24110 automatically188searches all enabled viterbi rates, and can handle non-standard189rates as well. */190191if (fec>FEC_AUTO)192fec=FEC_AUTO;193194if (fec==FEC_AUTO) { /* (re-)establish AutoAcq behaviour */195cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)&0xdf);196/* clear AcqVitDis bit */197cx24110_writereg(state,0x18,0xae);198/* allow all DVB standard code rates */199cx24110_writereg(state,0x05,(cx24110_readreg(state,0x05)&0xf0)|0x3);200/* set nominal Viterbi rate 3/4 */201cx24110_writereg(state,0x22,(cx24110_readreg(state,0x22)&0xf0)|0x3);202/* set current Viterbi rate 3/4 */203cx24110_writereg(state,0x1a,0x05); cx24110_writereg(state,0x1b,0x06);204/* set the puncture registers for code rate 3/4 */205return 0;206} else {207cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x20);208/* set AcqVitDis bit */209if(rate[fec]>0) {210cx24110_writereg(state,0x05,(cx24110_readreg(state,0x05)&0xf0)|rate[fec]);211/* set nominal Viterbi rate */212cx24110_writereg(state,0x22,(cx24110_readreg(state,0x22)&0xf0)|rate[fec]);213/* set current Viterbi rate */214cx24110_writereg(state,0x1a,g1[fec]);215cx24110_writereg(state,0x1b,g2[fec]);216/* not sure if this is the right way: I always used AutoAcq mode */217} else218return -EOPNOTSUPP;219/* fixme (low): which is the correct return code? */220};221return 0;222}223224static fe_code_rate_t cx24110_get_fec (struct cx24110_state* state)225{226int i;227228i=cx24110_readreg(state,0x22)&0x0f;229if(!(i&0x08)) {230return FEC_1_2 + i - 1;231} else {232/* fixme (low): a special code rate has been selected. In theory, we need to233return a denominator value, a numerator value, and a pair of puncture234maps to correctly describe this mode. But this should never happen in235practice, because it cannot be set by cx24110_get_fec. */236return FEC_NONE;237}238}239240static int cx24110_set_symbolrate (struct cx24110_state* state, u32 srate)241{242/* fixme (low): add error handling */243u32 ratio;244u32 tmp, fclk, BDRI;245246static const u32 bands[]={5000000UL,15000000UL,90999000UL/2};247int i;248249dprintk("cx24110 debug: entering %s(%d)\n",__func__,srate);250if (srate>90999000UL/2)251srate=90999000UL/2;252if (srate<500000)253srate=500000;254255for(i = 0; (i < ARRAY_SIZE(bands)) && (srate>bands[i]); i++)256;257/* first, check which sample rate is appropriate: 45, 60 80 or 90 MHz,258and set the PLL accordingly (R07[1:0] Fclk, R06[7:4] PLLmult,259R06[3:0] PLLphaseDetGain */260tmp=cx24110_readreg(state,0x07)&0xfc;261if(srate<90999000UL/4) { /* sample rate 45MHz*/262cx24110_writereg(state,0x07,tmp);263cx24110_writereg(state,0x06,0x78);264fclk=90999000UL/2;265} else if(srate<60666000UL/2) { /* sample rate 60MHz */266cx24110_writereg(state,0x07,tmp|0x1);267cx24110_writereg(state,0x06,0xa5);268fclk=60666000UL;269} else if(srate<80888000UL/2) { /* sample rate 80MHz */270cx24110_writereg(state,0x07,tmp|0x2);271cx24110_writereg(state,0x06,0x87);272fclk=80888000UL;273} else { /* sample rate 90MHz */274cx24110_writereg(state,0x07,tmp|0x3);275cx24110_writereg(state,0x06,0x78);276fclk=90999000UL;277};278dprintk("cx24110 debug: fclk %d Hz\n",fclk);279/* we need to divide two integers with approx. 27 bits in 32 bit280arithmetic giving a 25 bit result */281/* the maximum dividend is 90999000/2, 0x02b6446c, this number is282also the most complex divisor. Hence, the dividend has,283assuming 32bit unsigned arithmetic, 6 clear bits on top, the284divisor 2 unused bits at the bottom. Also, the quotient is285always less than 1/2. Borrowed from VES1893.c, of course */286287tmp=srate<<6;288BDRI=fclk>>2;289ratio=(tmp/BDRI);290291tmp=(tmp%BDRI)<<8;292ratio=(ratio<<8)+(tmp/BDRI);293294tmp=(tmp%BDRI)<<8;295ratio=(ratio<<8)+(tmp/BDRI);296297tmp=(tmp%BDRI)<<1;298ratio=(ratio<<1)+(tmp/BDRI);299300dprintk("srate= %d (range %d, up to %d)\n", srate,i,bands[i]);301dprintk("fclk = %d\n", fclk);302dprintk("ratio= %08x\n", ratio);303304cx24110_writereg(state, 0x1, (ratio>>16)&0xff);305cx24110_writereg(state, 0x2, (ratio>>8)&0xff);306cx24110_writereg(state, 0x3, (ratio)&0xff);307308return 0;309310}311312static int _cx24110_pll_write (struct dvb_frontend* fe, const u8 buf[], int len)313{314struct cx24110_state *state = fe->demodulator_priv;315316if (len != 3)317return -EINVAL;318319/* tuner data is 21 bits long, must be left-aligned in data */320/* tuner cx24108 is written through a dedicated 3wire interface on the demod chip */321/* FIXME (low): add error handling, avoid infinite loops if HW fails... */322323cx24110_writereg(state,0x6d,0x30); /* auto mode at 62kHz */324cx24110_writereg(state,0x70,0x15); /* auto mode 21 bits */325326/* if the auto tuner writer is still busy, clear it out */327while (cx24110_readreg(state,0x6d)&0x80)328cx24110_writereg(state,0x72,0);329330/* write the topmost 8 bits */331cx24110_writereg(state,0x72,buf[0]);332333/* wait for the send to be completed */334while ((cx24110_readreg(state,0x6d)&0xc0)==0x80)335;336337/* send another 8 bytes */338cx24110_writereg(state,0x72,buf[1]);339while ((cx24110_readreg(state,0x6d)&0xc0)==0x80)340;341342/* and the topmost 5 bits of this byte */343cx24110_writereg(state,0x72,buf[2]);344while ((cx24110_readreg(state,0x6d)&0xc0)==0x80)345;346347/* now strobe the enable line once */348cx24110_writereg(state,0x6d,0x32);349cx24110_writereg(state,0x6d,0x30);350351return 0;352}353354static int cx24110_initfe(struct dvb_frontend* fe)355{356struct cx24110_state *state = fe->demodulator_priv;357/* fixme (low): error handling */358int i;359360dprintk("%s: init chip\n", __func__);361362for(i = 0; i < ARRAY_SIZE(cx24110_regdata); i++) {363cx24110_writereg(state, cx24110_regdata[i].reg, cx24110_regdata[i].data);364};365366return 0;367}368369static int cx24110_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t voltage)370{371struct cx24110_state *state = fe->demodulator_priv;372373switch (voltage) {374case SEC_VOLTAGE_13:375return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0xc0);376case SEC_VOLTAGE_18:377return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0x40);378default:379return -EINVAL;380};381}382383static int cx24110_diseqc_send_burst(struct dvb_frontend* fe, fe_sec_mini_cmd_t burst)384{385int rv, bit;386struct cx24110_state *state = fe->demodulator_priv;387unsigned long timeout;388389if (burst == SEC_MINI_A)390bit = 0x00;391else if (burst == SEC_MINI_B)392bit = 0x08;393else394return -EINVAL;395396rv = cx24110_readreg(state, 0x77);397if (!(rv & 0x04))398cx24110_writereg(state, 0x77, rv | 0x04);399400rv = cx24110_readreg(state, 0x76);401cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40 | bit));402timeout = jiffies + msecs_to_jiffies(100);403while (!time_after(jiffies, timeout) && !(cx24110_readreg(state, 0x76) & 0x40))404; /* wait for LNB ready */405406return 0;407}408409static int cx24110_send_diseqc_msg(struct dvb_frontend* fe,410struct dvb_diseqc_master_cmd *cmd)411{412int i, rv;413struct cx24110_state *state = fe->demodulator_priv;414unsigned long timeout;415416if (cmd->msg_len < 3 || cmd->msg_len > 6)417return -EINVAL; /* not implemented */418419for (i = 0; i < cmd->msg_len; i++)420cx24110_writereg(state, 0x79 + i, cmd->msg[i]);421422rv = cx24110_readreg(state, 0x77);423if (rv & 0x04) {424cx24110_writereg(state, 0x77, rv & ~0x04);425msleep(30); /* reportedly fixes switching problems */426}427428rv = cx24110_readreg(state, 0x76);429430cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40) | ((cmd->msg_len-3) & 3));431timeout = jiffies + msecs_to_jiffies(100);432while (!time_after(jiffies, timeout) && !(cx24110_readreg(state, 0x76) & 0x40))433; /* wait for LNB ready */434435return 0;436}437438static int cx24110_read_status(struct dvb_frontend* fe, fe_status_t* status)439{440struct cx24110_state *state = fe->demodulator_priv;441442int sync = cx24110_readreg (state, 0x55);443444*status = 0;445446if (sync & 0x10)447*status |= FE_HAS_SIGNAL;448449if (sync & 0x08)450*status |= FE_HAS_CARRIER;451452sync = cx24110_readreg (state, 0x08);453454if (sync & 0x40)455*status |= FE_HAS_VITERBI;456457if (sync & 0x20)458*status |= FE_HAS_SYNC;459460if ((sync & 0x60) == 0x60)461*status |= FE_HAS_LOCK;462463return 0;464}465466static int cx24110_read_ber(struct dvb_frontend* fe, u32* ber)467{468struct cx24110_state *state = fe->demodulator_priv;469470/* fixme (maybe): value range is 16 bit. Scale? */471if(cx24110_readreg(state,0x24)&0x10) {472/* the Viterbi error counter has finished one counting window */473cx24110_writereg(state,0x24,0x04); /* select the ber reg */474state->lastber=cx24110_readreg(state,0x25)|475(cx24110_readreg(state,0x26)<<8);476cx24110_writereg(state,0x24,0x04); /* start new count window */477cx24110_writereg(state,0x24,0x14);478}479*ber = state->lastber;480481return 0;482}483484static int cx24110_read_signal_strength(struct dvb_frontend* fe, u16* signal_strength)485{486struct cx24110_state *state = fe->demodulator_priv;487488/* no provision in hardware. Read the frontend AGC accumulator. No idea how to scale this, but I know it is 2s complement */489u8 signal = cx24110_readreg (state, 0x27)+128;490*signal_strength = (signal << 8) | signal;491492return 0;493}494495static int cx24110_read_snr(struct dvb_frontend* fe, u16* snr)496{497struct cx24110_state *state = fe->demodulator_priv;498499/* no provision in hardware. Can be computed from the Es/N0 estimator, but I don't know how. */500if(cx24110_readreg(state,0x6a)&0x80) {501/* the Es/N0 error counter has finished one counting window */502state->lastesn0=cx24110_readreg(state,0x69)|503(cx24110_readreg(state,0x68)<<8);504cx24110_writereg(state,0x6a,0x84); /* start new count window */505}506*snr = state->lastesn0;507508return 0;509}510511static int cx24110_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)512{513struct cx24110_state *state = fe->demodulator_priv;514u32 lastbyer;515516if(cx24110_readreg(state,0x10)&0x40) {517/* the RS error counter has finished one counting window */518cx24110_writereg(state,0x10,0x60); /* select the byer reg */519lastbyer=cx24110_readreg(state,0x12)|520(cx24110_readreg(state,0x13)<<8)|521(cx24110_readreg(state,0x14)<<16);522cx24110_writereg(state,0x10,0x70); /* select the bler reg */523state->lastbler=cx24110_readreg(state,0x12)|524(cx24110_readreg(state,0x13)<<8)|525(cx24110_readreg(state,0x14)<<16);526cx24110_writereg(state,0x10,0x20); /* start new count window */527}528*ucblocks = state->lastbler;529530return 0;531}532533static int cx24110_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p)534{535struct cx24110_state *state = fe->demodulator_priv;536537538if (fe->ops.tuner_ops.set_params) {539fe->ops.tuner_ops.set_params(fe, p);540if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0);541}542543cx24110_set_inversion (state, p->inversion);544cx24110_set_fec (state, p->u.qpsk.fec_inner);545cx24110_set_symbolrate (state, p->u.qpsk.symbol_rate);546cx24110_writereg(state,0x04,0x05); /* start acquisition */547548return 0;549}550551static int cx24110_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p)552{553struct cx24110_state *state = fe->demodulator_priv;554s32 afc; unsigned sclk;555556/* cannot read back tuner settings (freq). Need to have some private storage */557558sclk = cx24110_readreg (state, 0x07) & 0x03;559/* ok, real AFC (FEDR) freq. is afc/2^24*fsamp, fsamp=45/60/80/90MHz.560* Need 64 bit arithmetic. Is thiss possible in the kernel? */561if (sclk==0) sclk=90999000L/2L;562else if (sclk==1) sclk=60666000L;563else if (sclk==2) sclk=80888000L;564else sclk=90999000L;565sclk>>=8;566afc = sclk*(cx24110_readreg (state, 0x44)&0x1f)+567((sclk*cx24110_readreg (state, 0x45))>>8)+568((sclk*cx24110_readreg (state, 0x46))>>16);569570p->frequency += afc;571p->inversion = (cx24110_readreg (state, 0x22) & 0x10) ?572INVERSION_ON : INVERSION_OFF;573p->u.qpsk.fec_inner = cx24110_get_fec (state);574575return 0;576}577578static int cx24110_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)579{580struct cx24110_state *state = fe->demodulator_priv;581582return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&~0x10)|(((tone==SEC_TONE_ON))?0x10:0));583}584585static void cx24110_release(struct dvb_frontend* fe)586{587struct cx24110_state* state = fe->demodulator_priv;588kfree(state);589}590591static struct dvb_frontend_ops cx24110_ops;592593struct dvb_frontend* cx24110_attach(const struct cx24110_config* config,594struct i2c_adapter* i2c)595{596struct cx24110_state* state = NULL;597int ret;598599/* allocate memory for the internal state */600state = kzalloc(sizeof(struct cx24110_state), GFP_KERNEL);601if (state == NULL) goto error;602603/* setup the state */604state->config = config;605state->i2c = i2c;606state->lastber = 0;607state->lastbler = 0;608state->lastesn0 = 0;609610/* check if the demod is there */611ret = cx24110_readreg(state, 0x00);612if ((ret != 0x5a) && (ret != 0x69)) goto error;613614/* create dvb_frontend */615memcpy(&state->frontend.ops, &cx24110_ops, sizeof(struct dvb_frontend_ops));616state->frontend.demodulator_priv = state;617return &state->frontend;618619error:620kfree(state);621return NULL;622}623624static struct dvb_frontend_ops cx24110_ops = {625626.info = {627.name = "Conexant CX24110 DVB-S",628.type = FE_QPSK,629.frequency_min = 950000,630.frequency_max = 2150000,631.frequency_stepsize = 1011, /* kHz for QPSK frontends */632.frequency_tolerance = 29500,633.symbol_rate_min = 1000000,634.symbol_rate_max = 45000000,635.caps = FE_CAN_INVERSION_AUTO |636FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |637FE_CAN_FEC_5_6 | FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO |638FE_CAN_QPSK | FE_CAN_RECOVER639},640641.release = cx24110_release,642643.init = cx24110_initfe,644.write = _cx24110_pll_write,645.set_frontend = cx24110_set_frontend,646.get_frontend = cx24110_get_frontend,647.read_status = cx24110_read_status,648.read_ber = cx24110_read_ber,649.read_signal_strength = cx24110_read_signal_strength,650.read_snr = cx24110_read_snr,651.read_ucblocks = cx24110_read_ucblocks,652653.diseqc_send_master_cmd = cx24110_send_diseqc_msg,654.set_tone = cx24110_set_tone,655.set_voltage = cx24110_set_voltage,656.diseqc_send_burst = cx24110_diseqc_send_burst,657};658659module_param(debug, int, 0644);660MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off).");661662MODULE_DESCRIPTION("Conexant CX24110 DVB-S Demodulator driver");663MODULE_AUTHOR("Peter Hettkamp");664MODULE_LICENSE("GPL");665666EXPORT_SYMBOL(cx24110_attach);667668669