* Re: [linux-dvb] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
@ 2008-12-01 17:18 Alain
2008-12-01 21:31 ` [linux-dvb] [FIXEd] " Alain Turbide
0 siblings, 1 reply; 8+ messages in thread
From: Alain @ 2008-12-01 17:18 UTC (permalink / raw)
To: linux-dvb
[-- Attachment #1.1: Type: text/plain, Size: 633 bytes --]
Found the problem I believe. The original code always ran dvb_frontend_swzigzag(fe) even if the algo is 0
This fixes the issue for me.
--- dvb_frontend.c 2008-12-01 12:07:28.000000000 -0500
+++ /dvb_frontend.c 2008-12-01 12:07:16.000000000 -0500
@@ -645,6 +645,8 @@
break;
default:
dprintk("%s: UNDEFINED ALGO !\n", __func__);
+ dvb_frontend_swzigzag(fe);
break;
}
} else {
________________________________
[-- Attachment #1.2: Type: text/html, Size: 2059 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
2008-12-01 17:18 [linux-dvb] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend Alain
@ 2008-12-01 21:31 ` Alain Turbide
2008-12-02 17:37 ` VDR User
0 siblings, 1 reply; 8+ messages in thread
From: Alain Turbide @ 2008-12-01 21:31 UTC (permalink / raw)
To: linux-dvb
[-- Attachment #1.1: Type: text/plain, Size: 1812 bytes --]
Digging in a little further.The dst_algo (which the twinhan uses) is set to return 0 as the default setting for the SW algo in dst.c, yet in dvb_frontend.h, the DVBFE_ALGO_SW algo is defined as 2. Which is the correct one here? Should dst.c be changed to return 2 as sw or is 0 the correct number for the SW algo and thus DVBFE_ALGO_SW be changed to return 0?
----- Original Message -----
From: Alain
To: linux-dvb@linuxtv.org
Sent: Monday, December 01, 2008 12:18 PM
Subject: Re: [linux-dvb] Bug Report - Twinhan vp-1020,bt_8xx driver + frontend
Found the problem I believe. The original code always ran dvb_frontend_swzigzag(fe) even if the algo is 0
This fixes the issue for me.
--- dvb_frontend.c 2008-12-01 12:07:28.000000000 -0500
+++ /dvb_frontend.c 2008-12-01 12:07:16.000000000 -0500
@@ -645,6 +645,8 @@
break;
default:
dprintk("%s: UNDEFINED ALGO !\n", __func__);
+ dvb_frontend_swzigzag(fe);
break;
}
} else {
------------------------------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4089 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
2008-12-01 21:31 ` [linux-dvb] [FIXEd] " Alain Turbide
@ 2008-12-02 17:37 ` VDR User
2008-12-02 18:07 ` sinter
2008-12-02 19:05 ` Alain Turbide
0 siblings, 2 replies; 8+ messages in thread
From: VDR User @ 2008-12-02 17:37 UTC (permalink / raw)
To: Alain Turbide; +Cc: linux-dvb
2008/12/1 Alain Turbide <aturbide@rogers.com>:
> Digging in a little further.The dst_algo (which the twinhan uses) is set to
> return 0 as the default setting for the SW algo in dst.c, yet in
> dvb_frontend.h, the DVBFE_ALGO_SW algo is defined as 2. Which is the
> correct one here? Should dst.c be changed to return 2 as sw or is 0 the
> correct number for the SW algo and thus DVBFE_ALGO_SW be changed to return
> 0?
Is nobody else looking into this?! I would think this bug would have
received a little more attention considering the number of people
affected!
Please keep up the work, it's much appreciated! I, on behalf of
several others who aren't subscribed to the ml, am monitoring this
thread in hopes of a proper fix.
Thanks!
-Derek
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
2008-12-02 17:37 ` VDR User
@ 2008-12-02 18:07 ` sinter
2008-12-02 19:05 ` Alain Turbide
1 sibling, 0 replies; 8+ messages in thread
From: sinter @ 2008-12-02 18:07 UTC (permalink / raw)
To: linux-dvb
Am Dienstag 02 Dezember 2008 18:37:54 schrieb VDR User:
> 2008/12/1 Alain Turbide <aturbide@rogers.com>:
> > Digging in a little further.The dst_algo (which the twinhan uses) is set
> > to return 0 as the default setting for the SW algo in dst.c, yet in
> > dvb_frontend.h, the DVBFE_ALGO_SW algo is defined as 2. Which is the
> > correct one here? Should dst.c be changed to return 2 as sw or is 0 the
> > correct number for the SW algo and thus DVBFE_ALGO_SW be changed to
> > return 0?
>
> Is nobody else looking into this?! I would think this bug would have
> received a little more attention considering the number of people
> affected!
Normally this is the traditionally claimed stuff of an Indian person called
Manu Abraham.
But you can forget about Manu Abraham totally because he is, was and ever will
be the sum of a total incapable anti-team working loudmouth and stupid idiot.
This guy may have his capabilities, but he definitely IS in the literal sense
of the word nothing but an asocial incapable human being.
In fact there are people around here offering him some mental sponsoring out of
invisible reasons (which is very typical for all motherfuckers that cannot go
upright, you know).
But in a real honest enterprise or even real social community this guy would
be eliminated without any second of hesitation.
Just sorted out as disfunctional rubbish, you know.
I think the functionary armchair gas passer Mauro Carvalho Chehab (the big
Brazil boss without any legitimation, you know) will give you the appropriate
answer on that.
>
> Please keep up the work, it's much appreciated! I, on behalf of
> several others who aren't subscribed to the ml, am monitoring this
> thread in hopes of a proper fix.
Do not rely on stupid loud mouths and incarnations of inncapability!
Wipe out the bums instead!
> Thanks!
> -Derek
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
2008-12-02 17:37 ` VDR User
2008-12-02 18:07 ` sinter
@ 2008-12-02 19:05 ` Alain Turbide
2008-12-02 19:21 ` Alain Turbide
2008-12-02 19:21 ` Matthias Schwarzott
1 sibling, 2 replies; 8+ messages in thread
From: Alain Turbide @ 2008-12-02 19:05 UTC (permalink / raw)
To: linux-dvb
Well, it's not a difficult fix now that I see it. The issue was that the
original default for FE_ALGO_SW was 0 while FE_ALGO_HW was 1.
Since there is an older documented option for the dst module called dst_algo
that some people might still be using to force the tuning algo to sofware by
setting dst_algo=0, there is no choice but to also make the default of
DVBFE_ALGO_SW to also be 0 so that the values will match and the new code
will still function with users who force dst_algo=0 on the dst module load..
The fix would thus be to go from: this in dvb_frontend.h
enum dvbfe_algo {
DVBFE_ALGO_HW = (1 << 0),
DVBFE_ALGO_SW = (1 << 1),
DVBFE_ALGO_CUSTOM = (1 << 2),
DVBFE_ALGO_RECOVERY = (1 << 31)
};
to this:
enum dvbfe_algo {
DVBFE_ALGO_HW = (1 << 0),
DVBFE_ALGO_SW = 0,
DVBFE_ALGO_CUSTOM = (1 << 2),
DVBFE_ALGO_RECOVERY = (1 << 31)
};
This is what I've done now and works well. This is the only change required
to fix the issue. In dst.c we could also default dst_algo to
DVB_FRONTEND_SW instead of 0 to make it more robust. I can't see any code
else where that depends on DVBFE_ALGO_SW being set to 2.
For those that do not want to patch code, the alternate way to get the cards
to work is to simply load the dst module with the dst_algo parm set. to 2:
ie. modprobe dst dst_algo=2 ( to have the dst module return the current
value of DVBFE_ALGO_SW) back to the front end code.
----- Original Message -----
From: "VDR User" <user.vdr@gmail.com>
To: "Alain Turbide" <aturbide@rogers.com>
Cc: <linux-dvb@linuxtv.org>
Sent: Tuesday, December 02, 2008 12:37 PM
Subject: Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver
+ frontend
> 2008/12/1 Alain Turbide <aturbide@rogers.com>:
>> Digging in a little further.The dst_algo (which the twinhan uses) is set
>> to
>> return 0 as the default setting for the SW algo in dst.c, yet in
>> dvb_frontend.h, the DVBFE_ALGO_SW algo is defined as 2. Which is the
>> correct one here? Should dst.c be changed to return 2 as sw or is 0 the
>> correct number for the SW algo and thus DVBFE_ALGO_SW be changed to
>> return
>> 0?
>
> Is nobody else looking into this?! I would think this bug would have
> received a little more attention considering the number of people
> affected!
>
> Please keep up the work, it's much appreciated! I, on behalf of
> several others who aren't subscribed to the ml, am monitoring this
> thread in hopes of a proper fix.
>
> Thanks!
> -Derek
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
2008-12-02 19:05 ` Alain Turbide
@ 2008-12-02 19:21 ` Alain Turbide
2008-12-02 19:21 ` Matthias Schwarzott
1 sibling, 0 replies; 8+ messages in thread
From: Alain Turbide @ 2008-12-02 19:21 UTC (permalink / raw)
To: linux-dvb
modprobe dst dst_algo=1 (to select the HW tuning algo ) works as well..
Didnt realize the hw algo worked for those cards.
----- Original Message -----
From: "Alain Turbide" <aturbide@rogers.com>
To: <linux-dvb@linuxtv.org>
Sent: Tuesday, December 02, 2008 2:05 PM
Subject: Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020,bt_8xx driver
+ frontend
> Well, it's not a difficult fix now that I see it. The issue was that the
> original default for FE_ALGO_SW was 0 while FE_ALGO_HW was 1.
> Since there is an older documented option for the dst module called
> dst_algo
> that some people might still be using to force the tuning algo to sofware
> by
> setting dst_algo=0, there is no choice but to also make the default of
> DVBFE_ALGO_SW to also be 0 so that the values will match and the new code
> will still function with users who force dst_algo=0 on the dst module
> load..
> The fix would thus be to go from: this in dvb_frontend.h
> enum dvbfe_algo {
> DVBFE_ALGO_HW = (1 << 0),
> DVBFE_ALGO_SW = (1 << 1),
> DVBFE_ALGO_CUSTOM = (1 << 2),
> DVBFE_ALGO_RECOVERY = (1 << 31)
> };
>
> to this:
> enum dvbfe_algo {
> DVBFE_ALGO_HW = (1 << 0),
> DVBFE_ALGO_SW = 0,
> DVBFE_ALGO_CUSTOM = (1 << 2),
> DVBFE_ALGO_RECOVERY = (1 << 31)
> };
>
> This is what I've done now and works well. This is the only change
> required
> to fix the issue. In dst.c we could also default dst_algo to
> DVB_FRONTEND_SW instead of 0 to make it more robust. I can't see any code
> else where that depends on DVBFE_ALGO_SW being set to 2.
>
> For those that do not want to patch code, the alternate way to get the
> cards
> to work is to simply load the dst module with the dst_algo parm set. to 2:
> ie. modprobe dst dst_algo=2 ( to have the dst module return the current
> value of DVBFE_ALGO_SW) back to the front end code.
>
>
>
>
>
> ----- Original Message -----
> From: "VDR User" <user.vdr@gmail.com>
> To: "Alain Turbide" <aturbide@rogers.com>
> Cc: <linux-dvb@linuxtv.org>
> Sent: Tuesday, December 02, 2008 12:37 PM
> Subject: Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx
> driver
> + frontend
>
>
>> 2008/12/1 Alain Turbide <aturbide@rogers.com>:
>>> Digging in a little further.The dst_algo (which the twinhan uses) is set
>>> to
>>> return 0 as the default setting for the SW algo in dst.c, yet in
>>> dvb_frontend.h, the DVBFE_ALGO_SW algo is defined as 2. Which is the
>>> correct one here? Should dst.c be changed to return 2 as sw or is 0 the
>>> correct number for the SW algo and thus DVBFE_ALGO_SW be changed to
>>> return
>>> 0?
>>
>> Is nobody else looking into this?! I would think this bug would have
>> received a little more attention considering the number of people
>> affected!
>>
>> Please keep up the work, it's much appreciated! I, on behalf of
>> several others who aren't subscribed to the ml, am monitoring this
>> thread in hopes of a proper fix.
>>
>> Thanks!
>> -Derek
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
2008-12-02 19:05 ` Alain Turbide
2008-12-02 19:21 ` Alain Turbide
@ 2008-12-02 19:21 ` Matthias Schwarzott
2008-12-02 19:37 ` Alain Turbide
1 sibling, 1 reply; 8+ messages in thread
From: Matthias Schwarzott @ 2008-12-02 19:21 UTC (permalink / raw)
To: linux-dvb
On Dienstag, 2. Dezember 2008, Alain Turbide wrote:
> Well, it's not a difficult fix now that I see it. The issue was that the
> original default for FE_ALGO_SW was 0 while FE_ALGO_HW was 1.
> Since there is an older documented option for the dst module called
> dst_algo that some people might still be using to force the tuning algo to
> sofware by setting dst_algo=0, there is no choice but to also make the
> default of DVBFE_ALGO_SW to also be 0 so that the values will match and the
> new code will still function with users who force dst_algo=0 on the dst
> module load.. The fix would thus be to go from: this in dvb_frontend.h
> enum dvbfe_algo {
> DVBFE_ALGO_HW = (1 << 0),
> DVBFE_ALGO_SW = (1 << 1),
> DVBFE_ALGO_CUSTOM = (1 << 2),
> DVBFE_ALGO_RECOVERY = (1 << 31)
> };
>
> to this:
> enum dvbfe_algo {
> DVBFE_ALGO_HW = (1 << 0),
> DVBFE_ALGO_SW = 0,
> DVBFE_ALGO_CUSTOM = (1 << 2),
> DVBFE_ALGO_RECOVERY = (1 << 31)
> };
>
> This is what I've done now and works well. This is the only change required
> to fix the issue. In dst.c we could also default dst_algo to
> DVB_FRONTEND_SW instead of 0 to make it more robust. I can't see any code
> else where that depends on DVBFE_ALGO_SW being set to 2.
>
Why should we rely on exact values, and not just modify the only place where
these values are exposed to userspace, and change dst_get_tuning_algo to
something similar to:
static int dst_get_tuning_algo(struct dvb_frontend *fe)
{
return dst_algo ? DVBFE_ALGO_HW : DVBFE_ALGO_SW;
}
The other (not backward compatible) fix is to adjust the parameter description
and use 1 and 2 as allowed settings.
Regards
Matthias
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend
2008-12-02 19:21 ` Matthias Schwarzott
@ 2008-12-02 19:37 ` Alain Turbide
0 siblings, 0 replies; 8+ messages in thread
From: Alain Turbide @ 2008-12-02 19:37 UTC (permalink / raw)
To: linux-dvb
Good one Matthias. Your first option seems like the most practical one and
I can also confirm works. 1=HW, any other value will set SW
----- Original Message -----
From: "Matthias Schwarzott" <zzam@gentoo.org>
To: <linux-dvb@linuxtv.org>
Cc: "Alain Turbide" <aturbide@rogers.com>
Sent: Tuesday, December 02, 2008 2:21 PM
Subject: Re: [linux-dvb] [FIXEd] Bug Report - Twinhan vp-1020, bt_8xx driver
+ frontend
> On Dienstag, 2. Dezember 2008, Alain Turbide wrote:
>> Well, it's not a difficult fix now that I see it. The issue was that the
>> original default for FE_ALGO_SW was 0 while FE_ALGO_HW was 1.
>> Since there is an older documented option for the dst module called
>> dst_algo that some people might still be using to force the tuning algo
>> to
>> sofware by setting dst_algo=0, there is no choice but to also make the
>> default of DVBFE_ALGO_SW to also be 0 so that the values will match and
>> the
>> new code will still function with users who force dst_algo=0 on the dst
>> module load.. The fix would thus be to go from: this in dvb_frontend.h
>> enum dvbfe_algo {
>> DVBFE_ALGO_HW = (1 << 0),
>> DVBFE_ALGO_SW = (1 << 1),
>> DVBFE_ALGO_CUSTOM = (1 << 2),
>> DVBFE_ALGO_RECOVERY = (1 << 31)
>> };
>>
>> to this:
>> enum dvbfe_algo {
>> DVBFE_ALGO_HW = (1 << 0),
>> DVBFE_ALGO_SW = 0,
>> DVBFE_ALGO_CUSTOM = (1 << 2),
>> DVBFE_ALGO_RECOVERY = (1 << 31)
>> };
>>
>> This is what I've done now and works well. This is the only change
>> required
>> to fix the issue. In dst.c we could also default dst_algo to
>> DVB_FRONTEND_SW instead of 0 to make it more robust. I can't see any
>> code
>> else where that depends on DVBFE_ALGO_SW being set to 2.
>>
>
> Why should we rely on exact values, and not just modify the only place
> where
> these values are exposed to userspace, and change dst_get_tuning_algo to
> something similar to:
>
> static int dst_get_tuning_algo(struct dvb_frontend *fe)
> {
> return dst_algo ? DVBFE_ALGO_HW : DVBFE_ALGO_SW;
> }
>
> The other (not backward compatible) fix is to adjust the parameter
> description
> and use 1 and 2 as allowed settings.
>
> Regards
> Matthias
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-02 19:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 17:18 [linux-dvb] Bug Report - Twinhan vp-1020, bt_8xx driver + frontend Alain
2008-12-01 21:31 ` [linux-dvb] [FIXEd] " Alain Turbide
2008-12-02 17:37 ` VDR User
2008-12-02 18:07 ` sinter
2008-12-02 19:05 ` Alain Turbide
2008-12-02 19:21 ` Alain Turbide
2008-12-02 19:21 ` Matthias Schwarzott
2008-12-02 19:37 ` Alain Turbide
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.