Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: AverTV DVB-T not working under Kernel 2.6.6



On Wednesday 02 Jun 2004 09:46, Martin Kenny wrote:
> Hi Andrew,
>
> >The default is 50ms, not 0. Also, it can't be 0: In that case it would
> > spend no time waiting for the frontend to lock, which definitely wouldn't
> > work. Oddly enough 50ms is the same as what the sp887x sets for the
> > timeout so it cannot be that.
>
> Chalk that up to late night fuzziness :-)

:)

> I tried changing:
>
>                 fesettings->step_size = 166666*2;
>                 fesettings->max_drift = (166666*2)+1;
> while leaving the delay alone, and that worked fine.
>
> I then put dvb_frontend_debug=1 on, and started playing with the delay.
> From my testing, I reckon that 350ms seems to be about right (any less, and
> it would sometimes hunt around before settling on the original frequency).
>
> So my final patch would be something like:
> --- sp887x.c.old        2004-06-01 22:50:06.000000000 +0930
> +++ sp887x.c    2004-06-02 18:03:51.154418192 +0930
> @@ -636,9 +636,9 @@
>         case FE_GET_TUNE_SETTINGS:
>         {
>                 struct dvb_frontend_tune_settings* fesettings = (struct
> dvb_frontend_tune_settings*) arg; -               fesettings->min_delay_ms
> = 50;
> -               fesettings->step_size = 0;
> -               fesettings->max_drift = 0;
> +               fesettings->min_delay_ms = 350;
> +               fesettings->step_size = 166666*2;
> +               fesettings->max_drift = (166666*2)+1;
>                 return 0;
>         }

Cool, thanks, I'll bung it in CVS later today.




Home | Main Index | Thread Index