Skip to contentSkip to conversation

Twinhan VisionPlus DVB-T Card not working

linux-dvb In review Terry Barnaby 2 participants 6 messages Nov 20, 2008 – Nov 22, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

I am having a problem with the latest DVB drivers.
I have a Twinhan VisionPlus DVB-T card (and other DVB cards) in my MythTv server running Fedora 8. This is running fine with the Fedora stock kernel: 2.6.26.6-49.fc8.

However, I have now added a Hauppauge DVB-S2 and so have been trying the latest DVB Mercurial DVB tree.
This compiles and installs fine and the two DVB-T cards and the new DVB-S card are recognised and has /dev/dvb entries. The first DVB-T card, a Twinhan based on the SAA7133/SAA7135 works fine but the Twinhan VisionPlus, which is Bt878 will not tune in.

Any ideas ?
Has there been any recent changes to the Bt878 driver that could have caused this ?

/var/log/messages does have:

bttv0: tuner absent

Quoted 1 line

From the dvb apps scan utility I get:

[root@king scan]# ./scan -a 2 dvb-t/uk-Mendip
scanning dvb-t/uk-Mendip
using '/dev/dvb/adapter2/frontend0' and '/dev/dvb/adapter2/demux0' initial transponder 754167000 0 2 9 1 0 0 0

Quoted 1 line
Quoted 1 line
Quoted 1 line

tune to:

754167000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_AUTO:QAM_16:TRANSMISSION_MODE_2K:GUARD_INTERVAL_1_32:HIERARCHY_NONE
WARNING: >>> tuning failed!!!

Quoted 1 line
Quoted 1 line
Quoted 1 line

tune to:

754167000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_AUTO:QAM_16:TRANSMISSION_MODE_2K:GUARD_INTERVAL_1_32:HIERARCHY_NONE (tuning failed)
WARNING: >>> tuning failed!!!
ERROR: initial tuning failed
dumping lists (0 services)

The lspci dump for the card is:

02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Subsystem: Twinhan Technology Co. Ltd VisionPlus DVB card
Flags: bus master, medium devsel, latency 64, IRQ 16 Memory at cfeff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel driver in use: bttv
Kernel modules: bttv

In numeric:
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 1822:0001
Flags: bus master, medium devsel, latency 64, IRQ 16 Memory at cfeff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2 Kernel driver in use: bttv
Kernel modules: bttv

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw
Quoted 15 lines · Terry Barnaby

Hi,

I am having a problem with the latest DVB drivers.
I have a Twinhan VisionPlus DVB-T card (and other DVB cards) in my MythTv server running Fedora 8. This is running fine with the Fedora stock kernel: 2.6.26.6-49.fc8.

However, I have now added a Hauppauge DVB-S2 and so have been trying the latest DVB Mercurial DVB tree.
This compiles and installs fine and the two DVB-T cards and the new DVB-S card are recognised and has /dev/dvb entries. The first DVB-T card, a Twinhan based on the SAA7133/SAA7135 works fine but the Twinhan VisionPlus, which is Bt878 will not tune in.

Quoted 4 lines

Any ideas ?
Has there been any recent changes to the Bt878 driver that could have caused this ?
...

I have been playing around with the bt8xx source code.
If I set "dst_algo = 1" in "bt8xx/dst.c" then my Twinhan VisionPlus DVB-T appears to work.
This parameter appears to enable hardware rather than software tuning. I assume there is some bug in the software tuning algorithm ...

What are the benefits of software tuning over hardware based tuning ?

Cheers

Terry

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw
In reply to Terry Barnaby
Quoted 15 lines · Terry Barnaby

Hi,

I am having a problem with the latest DVB drivers.
I have a Twinhan VisionPlus DVB-T card (and other DVB cards) in my MythTv server running Fedora 8. This is running fine with the Fedora stock kernel: 2.6.26.6-49.fc8.

However, I have now added a Hauppauge DVB-S2 and so have been trying the latest DVB Mercurial DVB tree.
This compiles and installs fine and the two DVB-T cards and the new DVB-S card are recognised and has /dev/dvb entries. The first DVB-T card, a Twinhan based on the SAA7133/SAA7135 works fine but the Twinhan VisionPlus, which is Bt878 will not tune in.

Quoted 4 lines

Any ideas ?
Has there been any recent changes to the Bt878 driver that could have caused this ?

I have tracked this down to a bug in the bt8xx/dst frontend. It appears that the front end tuning algorithm number as used in dvb_frontend.c has changed format but the default setting in bt8xx/dst has not been updated to match.

This patch sets the default algorithm to be software tuning as, I believe, was the original setting. However, I wonder if it should be set to use hardware tuning by default ...

Cheers

Terry

linux/drivers/media/dvb/bt8xx/dst.c +2 -2
diff -r 5dc4a6b381f6 linux/drivers/media/dvb/bt8xx/dst.c
@@ -38,9 +38,9 @@ module_param(dst_addons, int, 0644);
 module_param(dst_addons, int, 0644);
 MODULE_PARM_DESC(dst_addons, "CA daughterboard, default is 0 (No addons)");
 
-static unsigned int dst_algo;
+static unsigned int dst_algo = DVBFE_ALGO_SW;
 module_param(dst_algo, int, 0644);
-MODULE_PARM_DESC(dst_algo, "tuning algo: default is 0=(SW), 1=(HW)");
+MODULE_PARM_DESC(dst_algo, "tuning algo: default is DVBFE_ALGO_SW (options: DVBFE_ALGO_HW)");
 
 #define HAS_LOCK		1
 #define ATTEMPT_TUNE		2

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#3 lore raw

PATCH 1/1 Take 2: Re: Twinhan VisionPlus DVB-T Card not working

Quoted 31 lines · Terry Barnaby
Quoted 15 lines · Terry Barnaby

Hi,

I am having a problem with the latest DVB drivers.
I have a Twinhan VisionPlus DVB-T card (and other DVB cards) in my MythTv server running Fedora 8. This is running fine with the Fedora stock kernel: 2.6.26.6-49.fc8.

However, I have now added a Hauppauge DVB-S2 and so have been trying the latest DVB Mercurial DVB tree.
This compiles and installs fine and the two DVB-T cards and the new DVB-S card are recognised and has /dev/dvb entries. The first DVB-T card, a Twinhan based on the SAA7133/SAA7135 works fine but the Twinhan VisionPlus, which is Bt878 will not tune in.

Quoted 4 lines

Any ideas ?
Has there been any recent changes to the Bt878 driver that could have caused this ?

I have tracked this down to a bug in the bt8xx/dst frontend. It appears that the front end tuning algorithm number as used in dvb_frontend.c has changed format but the default setting in bt8xx/dst has not been updated to match.

This patch sets the default algorithm to be software tuning as, I believe, was the original setting. However, I wonder if it should be set to use hardware tuning by default ...

Quoted 5 lines

Cheers

Terry

This is a better patch as it describes the integer values that can be used as options.

Cheers

Terry

linux/drivers/media/dvb/bt8xx/dst.c +2 -2
diff -r 5dc4a6b381f6 linux/drivers/media/dvb/bt8xx/dst.c
@@ -38,9 +38,9 @@ module_param(dst_addons, int, 0644);
 module_param(dst_addons, int, 0644);
 MODULE_PARM_DESC(dst_addons, "CA daughterboard, default is 0 (No addons)");
 
-static unsigned int dst_algo;
+static unsigned int dst_algo = DVBFE_ALGO_SW;
 module_param(dst_algo, int, 0644);
-MODULE_PARM_DESC(dst_algo, "tuning algo: default is 0=(SW), 1=(HW)");
+MODULE_PARM_DESC(dst_algo, "tuning algo: default is 2=DVBFE_ALGO_SW (options: 1=DVBFE_ALGO_HW)");
 
 #define HAS_LOCK		1
 #define ATTEMPT_TUNE		2

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#4 lore raw

Re: [linux-dvb] [PATCH] Take 2: Re: Twinhan VisionPlus DVB-T Card not working

Quoted 52 lines · Terry Barnaby
Quoted 30 lines · Terry Barnaby
Quoted 15 lines · Terry Barnaby

Hi,

I am having a problem with the latest DVB drivers.
I have a Twinhan VisionPlus DVB-T card (and other DVB cards) in my MythTv server running Fedora 8. This is running fine with the Fedora stock kernel: 2.6.26.6-49.fc8.

However, I have now added a Hauppauge DVB-S2 and so have been trying the latest DVB Mercurial DVB tree.
This compiles and installs fine and the two DVB-T cards and the new DVB-S card are recognised and has /dev/dvb entries. The first DVB-T card, a Twinhan based on the SAA7133/SAA7135 works fine but the Twinhan VisionPlus, which is Bt878 will not tune in.

Quoted 4 lines

Any ideas ?
Has there been any recent changes to the Bt878 driver that could have caused this ?

I have tracked this down to a bug in the bt8xx/dst frontend. It appears that the front end tuning algorithm number as used in dvb_frontend.c has changed format but the default setting in bt8xx/dst has not been updated to match.

This patch sets the default algorithm to be software tuning as, I believe, was the original setting. However, I wonder if it should be set to use hardware tuning by default ...

Quoted 5 lines

Cheers

Terry

This is a better patch as it describes the integer values that can be used as options.

Cheers

Terry

------------------------------------------------------------------------

diff -r 5dc4a6b381f6 linux/drivers/media/dvb/bt8xx/dst.c

linux/drivers/media/dvb/bt8xx/dst.c +0 -0
@@ -38,9 +38,9 @@ module_param(dst_addons, int, 0644);
 module_param(dst_addons, int, 0644);

linux/drivers/media/dvb/bt8xx/dst.c module_param(dst_addons, int, 0644); · line 46

Quoted 10 lines
linux/drivers/media/dvb/bt8xx/dst.c +2 -2
 MODULE_PARM_DESC(dst_addons, "CA daughterboard, default is 0 (No addons)");
 
-static unsigned int dst_algo;
+static unsigned int dst_algo = DVBFE_ALGO_SW;
 module_param(dst_algo, int, 0644);
-MODULE_PARM_DESC(dst_algo, "tuning algo: default is 0=(SW), 1=(HW)");
+MODULE_PARM_DESC(dst_algo, "tuning algo: default is 2=DVBFE_ALGO_SW (options: 1=DVBFE_ALGO_HW)");
 
 #define HAS_LOCK		1
 #define ATTEMPT_TUNE		2

Can you please add in your Developer Certificate of Origin

Regards,
Manu

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#5 lore raw

Re: [linux-dvb] [PATCH] Take 3: Re: Twinhan VisionPlus DVB-T Card not working

In reply to Terry Barnaby
Quoted 36 lines · Terry Barnaby
Quoted 30 lines · Terry Barnaby
Quoted 15 lines · Terry Barnaby

Hi,

I am having a problem with the latest DVB drivers.
I have a Twinhan VisionPlus DVB-T card (and other DVB cards) in my MythTv server running Fedora 8. This is running fine with the Fedora stock kernel: 2.6.26.6-49.fc8.

However, I have now added a Hauppauge DVB-S2 and so have been trying the latest DVB Mercurial DVB tree.
This compiles and installs fine and the two DVB-T cards and the new DVB-S card are recognised and has /dev/dvb entries. The first DVB-T card, a Twinhan based on the SAA7133/SAA7135 works fine but the Twinhan VisionPlus, which is Bt878 will not tune in.

Quoted 4 lines

Any ideas ?
Has there been any recent changes to the Bt878 driver that could have caused this ?

I have tracked this down to a bug in the bt8xx/dst frontend. It appears that the front end tuning algorithm number as used in dvb_frontend.c has changed format but the default setting in bt8xx/dst has not been updated to match.

This patch sets the default algorithm to be software tuning as, I believe, was the original setting. However, I wonder if it should be set to use hardware tuning by default ...

Quoted 5 lines

Cheers

Terry

Quoted 8 lines

This is a better patch as it describes the integer values that can be used as options.

Cheers

Terry

Cheers

Terry

linux/drivers/media/dvb/bt8xx/dst.c +2 -2
diff -r 5dc4a6b381f6 linux/drivers/media/dvb/bt8xx/dst.c
@@ -38,9 +38,9 @@ module_param(dst_addons, int, 0644);
 module_param(dst_addons, int, 0644);
 MODULE_PARM_DESC(dst_addons, "CA daughterboard, default is 0 (No addons)");
 
-static unsigned int dst_algo;
+static unsigned int dst_algo = DVBFE_ALGO_SW;
 module_param(dst_algo, int, 0644);
-MODULE_PARM_DESC(dst_algo, "tuning algo: default is 0=(SW), 1=(HW)");
+MODULE_PARM_DESC(dst_algo, "tuning algo: default is 2=DVBFE_ALGO_SW (options: 1=DVBFE_ALGO_HW)");
 
 #define HAS_LOCK		1
 #define ATTEMPT_TUNE		2

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb