summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-02-10 11:19:16 -0200
committerChris Pascoe <c.pascoe@itee.uq.edu.au>2007-02-10 11:19:16 -0200
commit90c4407a4023f4e54f115280d745512e8419ddf4 (patch)
treecdacb999f7d25caedd3a397b0aa5daa1bc2d06f2 /linux/drivers/media/dvb
parenta45e480ff17686d2396e05141c3dc110eac44152 (diff)
downloadmediapointer-dvb-s2-90c4407a4023f4e54f115280d745512e8419ddf4.tar.gz
mediapointer-dvb-s2-90c4407a4023f4e54f115280d745512e8419ddf4.tar.bz2
zl10353: register definitions update
From: Chris Pascoe <c.pascoe@itee.uq.edu.au> Update the descriptions of "discovered" registers on the zl10353, using the equivalaent mt352 register names. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/zl10353.c14
-rw-r--r--linux/drivers/media/dvb/frontends/zl10353_priv.h7
2 files changed, 14 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/frontends/zl10353.c b/linux/drivers/media/dvb/frontends/zl10353.c
index 2cee1c143..be9f858b7 100644
--- a/linux/drivers/media/dvb/frontends/zl10353.c
+++ b/linux/drivers/media/dvb/frontends/zl10353.c
@@ -262,9 +262,9 @@ static int zl10353_read_ber(struct dvb_frontend *fe, u32 *ber)
{
struct zl10353_state *state = fe->demodulator_priv;
- *ber = zl10353_read_register(state, 0x11) << 16 |
- zl10353_read_register(state, 0x12) << 8 |
- zl10353_read_register(state, 0x13);
+ *ber = zl10353_read_register(state, RS_ERR_CNT_2) << 16 |
+ zl10353_read_register(state, RS_ERR_CNT_1) << 8 |
+ zl10353_read_register(state, RS_ERR_CNT_0);
return 0;
}
@@ -273,8 +273,8 @@ static int zl10353_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
{
struct zl10353_state *state = fe->demodulator_priv;
- u16 signal = zl10353_read_register(state, 0x0a) << 10 |
- zl10353_read_register(state, 0x0b) << 2 | 3;
+ u16 signal = zl10353_read_register(state, AGC_GAIN_1) << 10 |
+ zl10353_read_register(state, AGC_GAIN_0) << 2 | 3;
*strength = ~signal;
@@ -301,8 +301,8 @@ static int zl10353_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{
struct zl10353_state *state = fe->demodulator_priv;
- *ucblocks = zl10353_read_register(state, 0x14) << 8 |
- zl10353_read_register(state, 0x15);
+ *ucblocks = zl10353_read_register(state, RS_UBC_1) << 8 |
+ zl10353_read_register(state, RS_UBC_0);
return 0;
}
diff --git a/linux/drivers/media/dvb/frontends/zl10353_priv.h b/linux/drivers/media/dvb/frontends/zl10353_priv.h
index d2186927f..4962434b3 100644
--- a/linux/drivers/media/dvb/frontends/zl10353_priv.h
+++ b/linux/drivers/media/dvb/frontends/zl10353_priv.h
@@ -38,7 +38,14 @@ enum zl10353_reg_addr {
STATUS_7 = 0x07,
STATUS_8 = 0x08,
STATUS_9 = 0x09,
+ AGC_GAIN_1 = 0x0A,
+ AGC_GAIN_0 = 0x0B,
SNR = 0x10,
+ RS_ERR_CNT_2 = 0x11,
+ RS_ERR_CNT_1 = 0x12,
+ RS_ERR_CNT_0 = 0x13,
+ RS_UBC_1 = 0x14,
+ RS_UBC_0 = 0x15,
TRL_NOMINAL_RATE_1 = 0x65,
TRL_NOMINAL_RATE_0 = 0x66,
CHIP_ID = 0x7F,