summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-10-13 11:35:12 -0300
committerPatrick Boettcher <pb@linuxtv.org>2006-10-13 11:35:12 -0300
commit687c7cc04cf2c33a622fbf17e7bd84bbd85b2c91 (patch)
treed5b7fc70016f5c0f03adc27e652ac7ac533614b6 /linux/drivers/media/dvb/frontends
parentbba88a87a5418d8793c4b52749e3d7b823958e8e (diff)
downloadmediapointer-dvb-s2-687c7cc04cf2c33a622fbf17e7bd84bbd85b2c91.tar.gz
mediapointer-dvb-s2-687c7cc04cf2c33a622fbf17e7bd84bbd85b2c91.tar.bz2
AGC command1/2 is board specific
From: Patrick Boettcher <pb@linuxtv.org> Added config-struct-parameter to take board-specific AGC command 1 and 2 into account. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/dib3000mc.c2
-rw-r--r--linux/drivers/media/dvb/frontends/dib3000mc.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000mc.c b/linux/drivers/media/dvb/frontends/dib3000mc.c
index 555f7d43d..ca4158abc 100644
--- a/linux/drivers/media/dvb/frontends/dib3000mc.c
+++ b/linux/drivers/media/dvb/frontends/dib3000mc.c
@@ -369,7 +369,7 @@ static int dib3000mc_init(struct dvb_frontend *demod)
/* agc */
dib3000mc_write_word(state, 36, state->cfg->max_time);
- dib3000mc_write_word(state, 37, agc->setup);
+ dib3000mc_write_word(state, 37, (state->cfg->agc_command1 << 13) | (state->cfg->agc_command2 << 12) | (0x1d << 0));
dib3000mc_write_word(state, 38, state->cfg->pwm3_value);
dib3000mc_write_word(state, 39, state->cfg->ln_adc_level);
diff --git a/linux/drivers/media/dvb/frontends/dib3000mc.h b/linux/drivers/media/dvb/frontends/dib3000mc.h
index b198cd5b1..0d6fdef77 100644
--- a/linux/drivers/media/dvb/frontends/dib3000mc.h
+++ b/linux/drivers/media/dvb/frontends/dib3000mc.h
@@ -28,6 +28,9 @@ struct dib3000mc_config {
u16 max_time;
u16 ln_adc_level;
+ u8 agc_command1 :1;
+ u8 agc_command2 :1;
+
u8 mobile_mode;
u8 output_mpeg2_in_188_bytes;