LinHES Forums
http://forums.linhes.org/

New PVR-250 cards with Microtune tuners instead of Philips
http://forums.linhes.org/viewtopic.php?f=1&t=942
Page 1 of 1

Author:  spit2k1 [ Mon Mar 08, 2004 2:11 pm ]
Post subject:  New PVR-250 cards with Microtune tuners instead of Philips

I've just brought a new PVR-250 (in the UK) and its fitted with a Microtune tuner instead of the standard Philips one. No problem I thought, probably auto detected with R4V2 - whoops!

Using MythTV I can get a static/snowy picture but the card will never tune in :(

From my understanding, its the BTTV driver that controls the tuning and the IVTV driver for the picture data etc.

R4V2 is compiled with BTTV-0.9.12, and this new tuner is only available in version 0.9.13 - typical!

Its listed (in tuner.h) as TUNER_MICROTUNE_4049FM5 - card type 45.

This problem is simiar http://www.poptix.net/ivtv/Feb-2004/msg00151.html

Now, my question is, how do I install the newer BTTV-0.9.13?

I've downloaded it and make'd it but it complains about "unresolved symbols" in "bttv.o".

Looking at the documents it seems that a patch is needed for this kernel file - however, the R4V2 kernel is "v2.4.21-xfs" and the only patches for this file supplied by bttv are for "v2.4.22-xfs" - just my luck!

Any ideas? Is it worth trying to compile a new kernel?

Author:  spit2k1 [ Mon Mar 08, 2004 4:27 pm ]
Post subject: 

Actually think R4V2 is compiled with bttv-0.7.104 and not the version mentioned above :oops:

Author:  spit2k1 [ Wed Mar 10, 2004 12:29 pm ]
Post subject:  Fixed it myself!

Actually fixed this issue myself! :idea:

Followed some of the threads mentioned on the link above. I've installed a clean R4V2 release so you should have exactly the same file versions I have. What I did was.....

1 modify file /usr/src/kernel-source-2.4.21-xfs/drivers/media/video/tuner.c
add line 16: #include "audiochip.h"
add line 226: { "Microtune 4049 FM5",Microtune,PAL,
add line 227: 16*141.00,16*464.00,0xa0,0x90,0x30,0x8e,623},

2 modify file /usr/src/kernel-source-2.4.21-xfs/drivers/media/video/tuner.h
add line 68: #define TUNER_MICROTUNE_4049FM5 40

3 then
cd /usr/src/kernel-source-2.4.21-xfs
make modules (this will take some time!)
cp -f /usr/src/kernel-source-2.4.21-xfs/drivers/media/video/*.o /lib/modules/2.4.21-xfs/kernel/drivers/media/video/

4 edited my /etc/mythtv/modules/ivtv file to contain
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c
options ivtv ivtv_debug=1 tda9887=1
options tuner type=40
options tda9887
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 tuner tda9887
add above ivtv lirc_dev lirc_i2c
post-install ivtv /usr/sbin/test_ioctl -d /dev/video0 -u 0xFF

5 extract existing version of ivtv
cd /usr/local/lib
tar xzvf ivtv-0.1.9+m179.tar
cd ivtv/driver/

6 edit file /usr/local/lib/ivtv/driver/ivtv-driver.c
add line 316: int tda9887 = -1
add line 329: MODULE_PARM(tda9887, "i");
add line 330: MODULE_PARM_DESC(tda9887, "\nEnable or disable tda9887 unit, 1 to enable");
add line 2175: if( tda9887 > -1) {
add line 2176: ivtv_call_i2c_client(itv,
add line 2177: IVTV_TDA9887_I2C_ADDR, AUDC_CONFIG_PINNACLE, &tda9887 );
add line 2180: }

7 edit file /usr/local/lib/ivtv/driver/ivtv.h
add line 43: #include "audiochip.h"
add line 160: #define IVTV_TDA9887_I2C_ADDR 0x43

8 build the new ivtv driver (following guide in http://mysettopbox.tv/phpBB2/viewtopic.php?t=223)
make clean
make
make install
cd ../utils
make

9 Finally
reboot

Sometimes on a power up of the PC, mythtv shows the picture tuned in okay but has horizontal stripes across the picture - any ideas about this?

Hope this helps others!

Author:  krypton_john [ Sat May 08, 2004 4:50 am ]
Post subject: 

Thanks for that spit2k1!

I have a similar card, but it also has a different encoder chip (iVC16).

I got around this by installing ivtv-0.1.10pre2 with the latest Chris Kennedy patches. This allows capture from composite and S-video to work fine.

So on to the Microtune 4049 tuner. I would just apply your changes, but as I have a different ivtv, I can't tell where to make them.

So I wonder, should I
1) just install a 2.6.5 kernel to get the new bttv and re-apply my ivtv change? What is the drawback to this?
2) try to work out how to apply your changes to my version of ivtv?

Thanks in advance for any comments!

JohnO

Author:  spit2k1 [ Sat May 08, 2004 8:13 am ]
Post subject:  V4R3

I've just installed the V4R3 auto-upgrade and the card seems to work straight out of the box as it were.

Just had to change the tuner to type "5" PAL rather than the default NTSC!

I havent tried svideo or comp. yet though!

Author:  krypton_john [ Sat May 08, 2004 2:00 pm ]
Post subject: 

Yeah, I also just found out that R4V3 has bttv0.9.x as standard, along with a 2.4.25 kernel and vfl2.

I think I'll just upgrade to R4V3 too, along with re-applying the latest ivtv and atchs - fingers crossed!

PS: I'm surprised you used tuner 5 (Phillips PAL) as that was already there in earlier bttv versions. I expected the solution to be a new tuner 43 (or thereabouts) specifically called the Microtune 4049.

Cheers,
JohnO

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/