]> Git Repo - linux.git/blobdiff - drivers/media/dvb/frontends/dib7000p.c
[media] dib7090: add the reference board TFE7090E
[linux.git] / drivers / media / dvb / frontends / dib7000p.c
index 08e62a4c9603f34c918d245012954d092c0f6bdc..2b52542cf5feed793fcfe2f3eef165522bedbe72 100644 (file)
@@ -418,6 +418,24 @@ int dib7000p_set_wbd_ref(struct dvb_frontend *demod, u16 value)
 }
 EXPORT_SYMBOL(dib7000p_set_wbd_ref);
 
+int dib7000p_get_agc_values(struct dvb_frontend *fe,
+               u16 *agc_global, u16 *agc1, u16 *agc2, u16 *wbd)
+{
+       struct dib7000p_state *state = fe->demodulator_priv;
+
+       if (agc_global != NULL)
+               *agc_global = dib7000p_read_word(state, 394);
+       if (agc1 != NULL)
+               *agc1 = dib7000p_read_word(state, 392);
+       if (agc2 != NULL)
+               *agc2 = dib7000p_read_word(state, 393);
+       if (wbd != NULL)
+               *wbd = dib7000p_read_word(state, 397);
+
+       return 0;
+}
+EXPORT_SYMBOL(dib7000p_get_agc_values);
+
 static void dib7000p_reset_pll(struct dib7000p_state *state)
 {
        struct dibx000_bandwidth_config *bw = &state->cfg.bw[0];
This page took 0.033669 seconds and 4 git commands to generate.