[linux-dvb] Re: [PATCH] Fix a bug when tunning C-BAND channels with
kaffeine
Manu Abraham
abraham.manu at gmail.com
Wed Mar 29 16:19:14 CEST 2006
Mauro Carvalho Chehab wrote:
> ------------------------------------------------------------------------
>
> 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 at infradead.org>
>
> 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) {
>
Looks Nice, i will apply it.
Thanks,
Manu
More information about the linux-dvb
mailing list