This patch fixes a bug noticed on some applications when selecting a channel at C-BAND. Those applications sends freq - LNBfreq, but, at C-BAND, LNB freqs are higher than desired freq. Tested with a Gardiner Multipoint LNBf with LO freq 5150 HI freq 5175. Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx> diff -r e44c36a9ac36 linux/drivers/media/dvb/bt8xx/dst.c --- a/linux/drivers/media/dvb/bt8xx/dst.c Wed Mar 29 01:29:20 2006 -0300 +++ b/linux/drivers/media/dvb/bt8xx/dst.c Wed Mar 29 10:26:29 2006 -0300 @@ -336,7 +336,11 @@ static int dst_set_polarization(struct d static int dst_set_freq(struct dst_state *state, u32 freq) { + if ((s32)freq<0) + freq=(u32)-(s32)freq; + state->frequency = freq; + dprintk(verbose, DST_INFO, 1, "set Frequency %u", freq); if (state->dst_type == DST_TYPE_IS_SAT) {
_______________________________________________ linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb