summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dibusb/dvb-fe-dtt200u.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/dibusb/dvb-fe-dtt200u.c')
-rw-r--r--linux/drivers/media/dvb/dibusb/dvb-fe-dtt200u.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-fe-dtt200u.c b/linux/drivers/media/dvb/dibusb/dvb-fe-dtt200u.c
index a1d3990eb..f2995e3b5 100644
--- a/linux/drivers/media/dvb/dibusb/dvb-fe-dtt200u.c
+++ b/linux/drivers/media/dvb/dibusb/dvb-fe-dtt200u.c
@@ -16,12 +16,12 @@
* 82 - crash - do not touch
* 83 - crash - do not touch
* 84 - remote control
- * 85 - crash - do not touch (OK, stop this)
- * 88 - locking ??? 2 bytes (0x80 0x40 == no signal, 0x89 0x20 == nice signal)
+ * 85 - crash - do not touch (OK, stop testing here)
+ * 88 - locking 2 bytes (0x80 0x40 == no signal, 0x89 0x20 == nice signal)
* 89 - noise-to-signal
* 8a - unkown 1 byte - signal_strength
* 8c - ber ???
- * 8d - ber ???
+ * 8d - ber
* 8e - unc
*
* write
@@ -49,6 +49,7 @@ static int dtt200u_fe_read_status(struct dvb_frontend* fe, fe_status_t *stat)
struct dtt200u_fe_state *state = fe->demodulator_priv;
u8 bw[1] = { 0x81 };
u8 br[3] = { 0 };
+// u8 bdeb[5] = { 0 };
dibusb_readwrite_usb(state->dib,bw,1,br,3);
switch (br[0]) {
@@ -62,6 +63,12 @@ static int dtt200u_fe_read_status(struct dvb_frontend* fe, fe_status_t *stat)
moan("br[0]",0x81);
break;
}
+
+// bw[0] = 0x88;
+// dibusb_readwrite_usb(state->dib,bw,1,bdeb,5);
+
+// deb_info("%02x: %02x %02x %02x %02x %02x\n",bw[0],bdeb[0],bdeb[1],bdeb[2],bdeb[3],bdeb[4]);
+
return 0;
}
static int dtt200u_fe_read_ber(struct dvb_frontend* fe, u32 *ber)
@@ -129,7 +136,6 @@ static int dtt200u_fe_set_frontend(struct dvb_frontend* fe,
u16 freq = fep->frequency / 250000;
u8 bw,bwbuf[2] = { 0x03, 0 }, freqbuf[3] = { 0x02, 0, 0 };
- deb_info("set_frontend\n");
switch (fep->u.ofdm.bandwidth) {
case BANDWIDTH_8_MHZ: bw = 8; break;
case BANDWIDTH_7_MHZ: bw = 7; break;