From: Manu Abraham Date: Fri, 9 Nov 2007 20:33:26 +0000 (-0300) Subject: V4L/DVB (9439): Bug! SFRL nibble got swapped X-Git-Tag: v2.6.29-rc1~556^2~505 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1b792e05e99f0f56eb4da91084ac9b8e8a132a15;p=linux-2.6-omap-h63xx.git V4L/DVB (9439): Bug! SFRL nibble got swapped The Bug was found by Arvo Jarve It was a wonder how it worked in the case with this bug, STM verified this that this nibble was in fact insignificant and can be ignored. But still we need to fix all inconsistencies. Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c index 2256fc70c85..6913bebe716 100644 --- a/drivers/media/dvb/frontends/stb0899_algo.c +++ b/drivers/media/dvb/frontends/stb0899_algo.c @@ -110,7 +110,7 @@ static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 sr sfr[0] = (tmp >> 12) & 0xff; sfr[1] = (tmp >> 4) & 0xff; - sfr[2] = tmp & 0x0f; + sfr[2] = tmp & 0xf0; // stb0899_write_regs(state, STB0899_SFRUPH, sfr_up, 3); stb0899_write_regs(state, STB0899_SFRH, sfr, 3);