Ticket #5403: mantis.diff

File mantis.diff, 1.2 KB (added by wagabunda, 12 years ago)

I've made an path to the package Mantis, for faster lock. Maybe this is not done well, but it works. It should also work with a package Multiproto.

  • linux/drivers/media/dvb/frontends/stb0899_algo.c

    diff -r 0b04be0c088a linux/drivers/media/dvb/frontends/stb0899_algo.c
    a b static enum stb0899_status stb0899_check 
    381381 */
    382382static enum stb0899_status stb0899_search_data(struct stb0899_state *state)
    383383{
    384         short int derot_freq, derot_step, derot_limit, next_loop = 3;
     384        short int derot_freq, derot_limit, next_loop = 3;
    385385        u8 cfr[2];
    386386        u8 reg;
    387387        int index = 1;
    static enum stb0899_status stb0899_searc 
    389389        struct stb0899_internal *internal = &state->internal;
    390390        struct stb0899_params *params = &state->params;
    391391
    392         derot_step = (params->srate / 4L) / internal->mclk;
    393392        derot_limit = (internal->sub_range / 2L) / internal->mclk;
    394393        derot_freq = internal->derot_freq;
    395394
    396395        do {
    397396                if ((internal->status != CARRIEROK) || (stb0899_check_data(state) != DATAOK)) {
    398397
    399                         derot_freq += index * internal->direction * derot_step; /* next zig zag derotator position      */
     398                        derot_freq += index * internal->direction * internal->derot_step;       /* next zig zag derotator position      */
    400399                        if (ABS(derot_freq) > derot_limit)
    401400                                next_loop--;
    402401