Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176835
b: refs/heads/master
c: 247cb14
h: refs/heads/master
i:
  176833: 98e5fca
  176831: 24b7220
v: v3
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 95062d9 commit cf1274e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 174c44e4a7d2418e8990c075dd7f5de51699781e
refs/heads/master: 247cb142a924fad215337170a5201a5cf9d960e1
13 changes: 13 additions & 0 deletions trunk/drivers/media/dvb/frontends/stv0900_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,8 @@ static int stv0900_status(struct stv0900_internal *intp,
{
enum fe_stv0900_search_state demod_state;
int locked = FALSE;
u8 tsbitrate0_val, tsbitrate1_val;
s32 bitrate;

demod_state = stv0900_get_bits(intp, HEADER_MODE);
switch (demod_state) {
Expand All @@ -1473,6 +1475,17 @@ static int stv0900_status(struct stv0900_internal *intp,

dprintk("%s: locked = %d\n", __func__, locked);

if (stvdebug) {
/* Print TS bitrate */
tsbitrate0_val = stv0900_read_reg(intp, TSBITRATE0);
tsbitrate1_val = stv0900_read_reg(intp, TSBITRATE1);
/* Formula Bit rate = Mclk * px_tsfifo_bitrate / 16384 */
bitrate = (stv0900_get_mclk_freq(intp, intp->quartz)/1000000)
* (tsbitrate1_val << 8 | tsbitrate0_val);
bitrate /= 16384;
dprintk("TS bitrate = %d Mbit/sec \n", bitrate);
};

return locked;
}

Expand Down

0 comments on commit cf1274e

Please sign in to comment.