Commit 1c96f3de authored by Akihiro Tsukada's avatar Akihiro Tsukada Committed by Mauro Carvalho Chehab

media: dvb-frontends/tc90522: fix bit shift mistakes

GIT_AUTHOR_NAME=Akihiro TSUKADA
GIT_AUTHOR_EMAIL=tskd08@gmail.com

they were obviously wrong.
Signed-off-by: default avatarAkihiro Tsukada <tskd08@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 0872f4f4
...@@ -352,7 +352,7 @@ static int tc90522t_get_frontend(struct dvb_frontend *fe, ...@@ -352,7 +352,7 @@ static int tc90522t_get_frontend(struct dvb_frontend *fe,
mode = 1; mode = 1;
ret = reg_read(state, 0xb0, val, 1); ret = reg_read(state, 0xb0, val, 1);
if (ret == 0) { if (ret == 0) {
mode = (val[0] & 0xc0) >> 2; mode = (val[0] & 0xc0) >> 6;
c->transmission_mode = tm_conv[mode]; c->transmission_mode = tm_conv[mode];
c->guard_interval = (val[0] & 0x30) >> 4; c->guard_interval = (val[0] & 0x30) >> 4;
} }
...@@ -379,7 +379,7 @@ static int tc90522t_get_frontend(struct dvb_frontend *fe, ...@@ -379,7 +379,7 @@ static int tc90522t_get_frontend(struct dvb_frontend *fe,
} }
/* layer B */ /* layer B */
v = (val[3] & 0x03) << 1 | (val[4] & 0xc0) >> 6; v = (val[3] & 0x03) << 2 | (val[4] & 0xc0) >> 6;
if (v == 0x0f) if (v == 0x0f)
c->layer[1].segment_count = 0; c->layer[1].segment_count = 0;
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment