diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2017-08-20 13:29:15 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 14:29:54 +0300 |
commit | 0758ecdbd888289a783d16122dc24be4c5f1c222 (patch) | |
tree | bd2b2cb6604f8a8cad4ce0b807e596677928f66b /drivers/media/dvb-frontends/stv0910.c | |
parent | f0e72c29fd063aca325afee25a6f9bcc22871837 (diff) | |
download | linux-0758ecdbd888289a783d16122dc24be4c5f1c222.tar.xz |
media: dvb-frontends/stv0910: fix mask for scramblingcode setup
The scrambling code has 4 bits. Fix the mask accordingly.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv0910.c')
-rw-r--r-- | drivers/media/dvb-frontends/stv0910.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index e87a3ee6155c..d0a8ed36b899 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -1021,7 +1021,7 @@ static int start(struct stv *state, struct dtv_frontend_properties *p) write_reg(state, RSTV0910_P2_PLROOT1 + state->regoff, (scrambling_code >> 8) & 0xff); write_reg(state, RSTV0910_P2_PLROOT2 + state->regoff, - (scrambling_code >> 16) & 0x07); + (scrambling_code >> 16) & 0x0f); state->cur_scrambling_code = scrambling_code; } |