Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Patch for bttv: Twinhan DST + Kernel >2.6.10rc2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Robert K.
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 95
Location: Berlin

PostPosted: Fri Apr 15, 2005 9:24 am    Post subject: Patch for bttv: Twinhan DST + Kernel >2.6.10rc2 Reply with quote

Hi,

In Kernel bigger 2.6.10rc2 the bttv module freezes the system, when loading as example in combination with the Twinhan DVB-T (DST-Clones) Card.

I found this Patch on Mailing-List from linuxtv.org

Code:
--- bttv-cards.c.orig   2005-04-04 16:27:34.000000000 +0400
+++ bttv-cards.c        2005-04-04 16:26:41.000000000 +0400
@@ -2718,8 +2718,6 @@ void __devinit bttv_init_card2(struct bt
         }
        btv->pll.pll_current = -1;

-       bttv_reset_audio(btv);
-
        /* tuner configuration (from card list / autodetect / insmod option) */
        if (UNSET != bttv_tvcards[btv->c.type].tuner_type)
                if(UNSET == btv->tuner_type)


save it as /usr/src/linux/drivers/media/video/bttv-cards.c.bin
then change in above directory and execute

patch -p0 <bttv-cards.c.bin

Recompile Kernel and hopefully it works now :-)

Regards
Robert


Last edited by Robert K. on Thu Apr 28, 2005 6:22 pm; edited 2 times in total
Back to top
View user's profile Send private message
Auka
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2002
Posts: 110
Location: Germany

PostPosted: Sun Apr 17, 2005 10:11 am    Post subject: Reply with quote

Great! :) My card stopped working with the 2.6.9x series. I'll have to try this patch as soon as I can find a bit of free time...
I'll include a link to your posting in my TwinHan HowTo if you don't mind. ;-)
Back to top
View user's profile Send private message
Robert K.
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 95
Location: Berlin

PostPosted: Sun Apr 17, 2005 10:43 am    Post subject: Reply with quote

Auka wrote:
Great! :) My card stopped working with the 2.6.9x series. I'll have to try this patch as soon as I can find a bit of free time...
I'll include a link to your posting in my TwinHan HowTo if you don't mind. ;-)


You can use it. :-) I've made a mistake. The Patch is for Kernel >2.6.10rc2. So I corrected this in my above Posting. It's tested to work with different 2.6.10/2.6.11 Kernels.

Original-Thread at linuxtv.org
http://www.linuxtv.org/pipermail/linux-dvb/2005-April/001191.html
Back to top
View user's profile Send private message
harijay
n00b
n00b


Joined: 08 Jan 2004
Posts: 22

PostPosted: Thu Apr 28, 2005 12:32 pm    Post subject: bttv 2005.0 2.6.11-r6 kernel Reply with quote

Hi I got my Hauppage WINTV card working ( the cheap $30 one ..I think it is the WIn-TV Go) with 2.6.11-r6 kernel.

It took me a few days to figure out what was going on

PROBLEMS:
1 ) COuld not find bttv module in gentoo-sourcess..i.e make menuconfig did not show it anywhere..

SOLUTION:
I had forgotten to TURN ON

I2C SUPPORT

support for my chipset under I2C support ( found by lspci -v ..it was a via chipset..in my case)

ANd support for

I2C algo bit ( turn both types on and compile into the kernel )


2) Once I did this , the bttv modules shows up under Multimedia-Video for linux..
I selected this module and deselected the CX88 module .

ALl Modules i.e I2C supprt, I2C algo bit and the bttv modules were compiled directly into the kernel.


When I did these..The warnings during compile dissapeared and everything now works..

Hope this helps
HJ


Also see
http://tldp.org/HOWTO/BTTV/hw.html#RECOMPILE
which says
You will need i2c subsystem support enabled as well as i2c-algo-bit

Too bad the Video for linux section in makemenuconfig does not forewarn us of this requirement..
Back to top
View user's profile Send private message
Alexandr
n00b
n00b


Joined: 06 Sep 2005
Posts: 11
Location: Ukraine

PostPosted: Mon Apr 17, 2006 7:46 pm    Post subject: problem... Reply with quote

# patch -p0 <bttv-cards.c.bin
Code:
patching file bttv-cards.c
Hunk #1 FAILED at 2718.
1 out of 1 hunk FAILED -- saving rejects to file bttv-cards.c.rej

# more bttv-cards.c.rej
Code:
***************
*** 2718,2725 ****
          }
         btv->pll.pll_current = -1;

-        bttv_reset_audio(btv);
-
         /* tuner configuration (from card list / autodetect / insmod option) */
         if (UNSET != bttv_tvcards[btv->c.type].tuner_type)
                 if(UNSET == btv->tuner_type)
--- 2718,2723 ----
          }
         btv->pll.pll_current = -1;

         /* tuner configuration (from card list / autodetect / insmod option) */
         if (UNSET != bttv_tvcards[btv->c.type].tuner_type)
                 if(UNSET == btv->tuner_type)

System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+

damn... don't work for me... any ideas?..
Back to top
View user's profile Send private message
Alexandr
n00b
n00b


Joined: 06 Sep 2005
Posts: 11
Location: Ukraine

PostPosted: Tue Apr 18, 2006 5:17 pm    Post subject: Reply with quote

with 2.6.15-gentoo-r5 kernel working fine without patch on TwinHan 1022A by this guide: https://forums.gentoo.org/viewtopic-t-170889-highlight-twinhan.html?sid=72b58c17a0a733649ce38cd93ccd0bdd

anyway, tanx for work
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum