Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202088
b: refs/heads/master
c: 82751f5
h: refs/heads/master
v: v3
  • Loading branch information
Guillaume Audirac authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent fa43414 commit 4a3e9a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10ea89d03f9850bbfbc9969f5ec79eae879b614f
refs/heads/master: 82751f56791918f205e11ed78d139f043ed3e458
11 changes: 7 additions & 4 deletions trunk/drivers/media/dvb/frontends/tda10048.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
#define TDA10048_CONF_C4_1 0x1E
#define TDA10048_CONF_C4_2 0x1F
#define TDA10048_CODE_IN_RAM 0x20
#define TDA10048_CHANNEL_INFO_1_R 0x22
#define TDA10048_CHANNEL_INFO_2_R 0x23
#define TDA10048_CHANNEL_INFO1_R 0x22
#define TDA10048_CHANNEL_INFO2_R 0x23
#define TDA10048_CHANNEL_INFO1 0x24
#define TDA10048_CHANNEL_INFO2 0x25
#define TDA10048_TIME_ERROR_R 0x26
Expand All @@ -64,8 +64,8 @@
#define TDA10048_IT_STAT 0x32
#define TDA10048_DSP_AD_LSB 0x3C
#define TDA10048_DSP_AD_MSB 0x3D
#define TDA10048_DSP_REF_LSB 0x3E
#define TDA10048_DSP_REF_MSB 0x3F
#define TDA10048_DSP_REG_LSB 0x3E
#define TDA10048_DSP_REG_MSB 0x3F
#define TDA10048_CONF_TRISTATE1 0x44
#define TDA10048_CONF_TRISTATE2 0x45
#define TDA10048_CONF_POLARITY 0x46
Expand Down Expand Up @@ -1033,6 +1033,9 @@ static int tda10048_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)

*ucblocks = tda10048_readreg(state, TDA10048_UNCOR_CPT_MSB) << 8 |
tda10048_readreg(state, TDA10048_UNCOR_CPT_LSB);
/* clear the uncorrected TS packets counter when saturated */
if (*ucblocks == 0xFFFF)
tda10048_writereg(state, TDA10048_UNCOR_CTRL, 0x80);

return 0;
}
Expand Down

0 comments on commit 4a3e9a5

Please sign in to comment.