V4L/DVB (9440): Bug in previous commit
authorArvo Jarve <arvo@softshark.ee>
Fri, 9 Nov 2007 21:21:27 +0000 (18:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:20 +0000 (17:53 -0200)
Signed-off-by: Arvo Jarve <arvo@softshark.ee>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_algo.c

index 6913bebe716299773626c655af3d50fc6e934017..2d2b87cf6d00e872db1584b13a3628988209bae8 100644 (file)
@@ -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 & 0xf0;
+       sfr[2] = (tmp <<  4) & 0xf0;
 
 //     stb0899_write_regs(state, STB0899_SFRUPH, sfr_up, 3);
        stb0899_write_regs(state, STB0899_SFRH, sfr, 3);