Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357358
b: refs/heads/master
c: 0458592
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 22, 2013
1 parent 45f150a commit 92d2213
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 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: ce77d120ed24d44aa020bde61f32bbdabb9ed596
refs/heads/master: 04585921ac0fa0f4baaf510cc7e52e3399018fb4
22 changes: 17 additions & 5 deletions trunk/drivers/media/dvb-frontends/mb86a20s.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ static int mb86a20s_get_modulation(struct mb86a20s_state *state,
rc = mb86a20s_readreg(state, 0x6e);
if (rc < 0)
return rc;
switch ((rc & 0x70) >> 4) {
switch ((rc >> 4) & 0x07) {
case 0:
return DQPSK;
case 1:
Expand Down Expand Up @@ -446,7 +446,7 @@ static int mb86a20s_get_fec(struct mb86a20s_state *state,
rc = mb86a20s_readreg(state, 0x6e);
if (rc < 0)
return rc;
switch (rc) {
switch ((rc >> 4) & 0x07) {
case 0:
return FEC_1_2;
case 1:
Expand Down Expand Up @@ -481,9 +481,21 @@ static int mb86a20s_get_interleaving(struct mb86a20s_state *state,
rc = mb86a20s_readreg(state, 0x6e);
if (rc < 0)
return rc;
if (rc > 3)
return -EINVAL; /* Not used */
return rc;

switch ((rc >> 4) & 0x07) {
case 1:
return GUARD_INTERVAL_1_4;
case 2:
return GUARD_INTERVAL_1_8;
case 3:
return GUARD_INTERVAL_1_16;
case 4:
return GUARD_INTERVAL_1_32;

default:
case 0:
return GUARD_INTERVAL_AUTO;
}
}

static int mb86a20s_get_segment_count(struct mb86a20s_state *state,
Expand Down

0 comments on commit 92d2213

Please sign in to comment.