LinHES Forums http://forum.linhes.org/ |
|
IVTV-0.4.3 with a PVR-150 and HD-3000 http://forum.linhes.org/viewtopic.php?f=2&t=8792 |
Page 1 of 1 |
Author: | mihanson [ Fri Mar 03, 2006 12:39 pm ] |
Post subject: | IVTV-0.4.3 with a PVR-150 and HD-3000 |
Hi all, I installed ivtv-0.4.3 the other day on my R5A30.1 system, which was running ivtv-0.4.0 at the time. I followed tjc's nice write up on the wiki. Everything was working fine with both my PVR-150 and my HD-3000 until I did a cold boot. Now, I cannot get and signal on the PVR-150. When I select it as a source, the screen goes black for about 15 seconds and I'm then kicked back to my DVB Input (the HD-3000). Nothing is trying to record on the PVR-150. When I check my mythbackend.log, I see this error everytime I tried to access the PVR-150: Code: Error getting codec params IVTV_IOC_G_CODEC:: Bad address I checked the IVTV Mailing list and only came up with 3 threads from 2004 that did not provide me a solution. I cleared my card settings several times, attempting several different combinations of devices for my PVR-150. i.e. /dev/video0 S-Video or /dev/video1 S-Video0 etc. I also tried to set up the PVR-150 first (so it's input is selected first when I select "Watch TV" but that did not solve the issue. Here is the ivtv output of my dmesg: Code: tuner (ivtv): chip found at addr 0xc2 i2c-bus cx88[0] ivtv: ==================== START INIT IVTV ==================== ivtv: version 0.4.3 (tagged release) loading ivtv: Linux version: 2.6.13.2-chw-3 SMP preempt 586 gcc-3.3 ivtv: In case of problems please include the debug info between ivtv: the START INIT IVTV and END INIT IVTV lines, along with ivtv: any module options, when mailing the ivtv-users mailinglist. ivtv0: Autodetected WinTV PVR 150 card (cx23416 based) tveeprom: ivtv version ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50] tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0 ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61] cx25840 1-0044: ivtv driver cx25840 1-0044: cx25841-23 found @ 0x88 (ivtv i2c driver #0) ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44] wm8775 1-001b: ivtv driver wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0) ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b] tda9887 0-0043: (ivtv) chip found @ 0x86 (cx88[0]) ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) ivtv0: Encoder revision: 0x02050032 ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total) ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total) ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total) ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total) tuner: type set to 50 (TCL 2002N) by ivtv i2c driver #0 ivtv0: Initialized WinTV PVR 150, card #0 ivtv: ==================== END INIT IVTV ==================== ivtv0: i2c attach to card #0 ok [client=Hauppauge PVR150 IR RX, addr=71] ivtv0: i2c attach to card #0 ok [client=Hauppauge PVR150 IR TX, addr=70] Here's the output of ivtv-detect. Note that no matter what /dev/video I select in the mythtv-setup, this does not seem to change. Code: driver: cx8800-0.0.5 card: pcHDTV HD3000 HDTV, bus info PCI:0000:00:09.0 /dev/video0: YUV encoding (links: /dev/video) /dev/radio0: Radio (links: /dev/radio) /dev/vbi0: VBI encoding (links: /dev/vbi) driver: ivtv-0.4.3 (tagged release) card: WinTV PVR 150, bus info 0000:00:08.0, ivtv card #0 hardware: cx25840 wm8775 tveeprom /dev/video1: MPG encoding /dev/vbi1: VBI encoding /dev/video24: PCM encoding /dev/video32: YUV encoding The output of ivtvctl -d /dev/video1 -a Code: ioctl IVTV_IOC_G_CODEC ok Codec parameters aspect : 2 audio : 0x00e9 bframes : 3 bitrate_mode: 0 bitrate : 8000000 bitrate_peak: 9600000 dnr_mode : 0 dnr_spatial : 0 dnr_temporal: 8 dnr_type : 0 framerate : 0 framespergop: 15 gop_closure : 1 pulldown : 0 stream_type : 14 ioctl VIDIOC_G_FMT ok Type : Video Capture Width : 720 Height : 480 ioctl VIDIOC_QUERYCAP ok Driver name : ivtv Card type : WinTV PVR 150 Bus info : 0000:00:08.0 Driver version: 1027 Capabilities : 0x01030011 ioctl: VIDIOC_ENUMINPUT Input : 0 Name : Tuner Type : 0x00000001 Audioset: 0x00000003 Tuner : 0x00000000 Standard: 0x0000000000003000 ( NTSC ) Status : 0 Input : 1 Name : Composite 0 Type : 0x00000002 Audioset: 0x00000003 Tuner : 0x00000000 Standard: 0x00000000007F7FFF ( PAL NTSC SECAM ) Status : 0 Input : 2 Name : Composite 1 Type : 0x00000002 Audioset: 0x00000003 Tuner : 0x00000000 Standard: 0x00000000007F7FFF ( PAL NTSC SECAM ) Status : 0 Input : 3 Name : S-Video 0 Type : 0x00000002 Audioset: 0x00000003 Tuner : 0x00000000 Standard: 0x00000000007F7FFF ( PAL NTSC SECAM ) Status : 0 Input : 4 Name : S-Video 1 Type : 0x00000002 Audioset: 0x00000003 Tuner : 0x00000000 Standard: 0x00000000007F7FFF ( PAL NTSC SECAM ) Status : 0 ioctl VIDIOC_G_INPUT ok Video input = 3 ioctl: VIDIOC_ENUMOUTPUT ioctl VIDIOC_G_OUTPUT failed: Invalid argument ioctl: VIDIOC_ENUMAUDIO Input : 0 Name : Tuner Audio In Input : 1 Name : Audio Line 1 Input : 2 Name : Audio Line 2 Input : 3 Name : Audio Line 3 Input : 4 Name : Audio Line 4 ioctl VIDIOC_G_AUDIO ok Audio input = 2: Audio Line 2 ioctl VIDIOC_G_FREQUENCY ok Frequency = 1076 ioctl: VIDIOC_ENUMSTD index : 0 ID : 0x0000000000003000 Name : NTSC Frame period: 1001/30000 Frame lines : 525 index : 1 ID : 0x00000000000000FF Name : PAL Frame period: 1/25 Frame lines : 625 index : 2 ID : 0x00000000007F0000 Name : SECAM Frame period: 1/25 Frame lines : 625 ioctl VIDIOC_G_STD ok Video standard = 0x00003000 ioctl: VIDIOC_QUERYCTRL Brightness = 128 Contrast = 64 Saturation = 64 Hue = 0 Volume = 60928 Mute = 0 The contents of /etc/mythtv/modules/ivtv Code: alias char-major-81 videodev alias char-major-61 lirc_i2c #options ivtv debug=1 #options tuner type=2 options msp3400 once=1 install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115; /sbin/modprobe --ignore-install ivtv remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -r saa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner The contents of /lib/modules/2.6.13.2-chw-2/ivtv Code: total 508 -rw-r--r-- 1 root root 9289 Mar 1 22:00 cs53l32a.ko -rw-r--r-- 1 root root 34460 Mar 1 22:00 cx25840.ko -rw-r--r-- 1 root root 43717 Mar 1 22:00 ivtv-fb.ko -rw-r--r-- 1 root root 248286 Mar 1 22:00 ivtv.ko -rw-r--r-- 1 root root 40554 Mar 1 22:00 msp3400.ko -rw-r--r-- 1 root root 20228 Mar 1 22:00 saa7115.ko -rw-r--r-- 1 root root 16415 Mar 1 22:00 saa7127.ko -rw-r--r-- 1 root root 22372 Mar 1 22:00 tda9887.ko -rw-r--r-- 1 root root 30774 Mar 1 22:00 tuner.ko -rw-r--r-- 1 root root 19462 Mar 1 22:00 tveeprom.ko -rw-r--r-- 1 root root 8932 Mar 1 22:00 wm8775.ko The contents of /lib/modules/ivtv, followed by the md5sum: Code: -rw-r--r-- 1 root root 262144 Mar 1 22:03 /lib/modules/ivtv-fw-dec.bin -rw-r--r-- 1 root root 262144 Mar 1 22:03 /lib/modules/ivtv-fw-enc.bin -rw-r--r-- 1 root root 155648 Oct 9 15:53 /lib/modules/ivtv_init_mpeg.bin 305dba74bbe5905447add8883f3ecb68 /lib/modules/ivtv-fw-dec.bin d85cb08382395390dc95ac6ebc2205f9 /lib/modules/ivtv-fw-enc.bin 0661f8b2693fe3123e6234557353eacc /lib/modules/ivtv_init_mpeg.bin I found a file at /etc/sysconfig/ivtv that says it configures ivtv at boot time. It claims that it sets everything to the defaults (i.e. /dev/video0). Can the cfg-0 that it reads from be changed from /dev/video0 to /dev/video1? Any insights are definately appreciated. Let me know if you need more info. cfg-0: Code: # /etc/sysconfig/ivtv/Readme
# # A KnoppMyth configuration file. # # This file is an example configuration file for tv tuner cards # that use the ivtv driver module, such as the PVR-250. # # If a copy of this file is placed in the /etc/sysconfig/ivtv # directory with the name of (for example) cfg-0, then, when # /etc/init.d/set_ivtv_params gets run during boot, the ivtv # card that represents /dev/video0 will have the following # parameters set. # # IVTV_TUNER is the tuner input selection value, # if not set the Default of '0' will be used. #IVTV_TUNER='0' # IVTV_TYPE is the type of the tuner. Possible values # are NTSC or PAL. A default value of 'NTSC' will be used if # this is not set. #IVTV_TYPE='NTSC' # End |
Author: | tjc [ Fri Mar 03, 2006 5:37 pm ] |
Post subject: | |
I suspect didn't reboot the first time and still have "Tuner0" in your configration rather than the modern "Tuner" for the PVR-150 and 500 cards. Please revisit the last two steps in the directions on the wiki. Quote:
* After it comes back up you will need to stop the backend, run mythtv-setup, clear your capture card settings, restablish them and the input connections, and finally exit mythtv-setup and restart the backend. Note that with the new driver you will see a different set of inputs for PVR-150 and PVR-500 cards. |
Author: | mihanson [ Sat Mar 04, 2006 1:20 am ] |
Post subject: | |
tjc wrote: I suspect didn't reboot the first time and still have "Tuner0" in your configration rather than the modern "Tuner" for the PVR-150 and 500 cards. Please revisit the last two steps in the directions on the wiki. I must have done that a hundred times. ![]() The ivtv-0.4.3 documentation on the http://ivtvdriver.org website says: Quote: If you are installing a dvb card together with a PVR card, try using the kernel tveeprom instead of the ivtv tveeprom-ivtv module. Numerous users have reported this combination enables the use of PVR cards and dvb cards together. Known combinations include Hauppauge PVR350 and 500 with the pcHD3000....
...We just want to make the kernel look for the dvb version module, instead of the ivtv version module when it looks for 'tveeprom.ko'. Based on that I did a little tinkering. Code: # cd /lib/modules/2.6.13.2-chw-3/ivtv # mv tveeprom.ko tveeprom.ko.HIDE # cd /lib/modules/2.6.13.2-chw-3/kernel/drivers/media/video # cp tveeprom.ko /lib/modules/2.6.13.2-chw-3/ivtv/tveeprom.ko # /etc/init.d/mythtv-backend stop # mythtv-setup (say yes to clear cards, no to clearing channels) I set up my HD-3000 as a DVB card with it's proper video source. I then selected the MPEG-2 card (PVR-250, 350) and used /dev/video1 and the S-Video 0. (My other option was /dev/video0 and S-Video, but that did not work.) I exited the setup and Code: # shutdown
Unplug and wait 30-60 seconds. Plug back in and fire it up. On boot everything looks ok, except the tuner card comes up as <unknown>. Into mythtv I go and I select "Watch TV." My DVB input is looking and sounding good. I change tuner cards to the PVR-150 and I get picture, but my sound is distorted. It sounds like the audio is being played back at the wrong sample rate. High pitched, tinny is the best I can describe it. I know there are oodles of posts on this forum about similar audio issues. This is becoming a little more trouble than it's worth for me. I think I'm going to revert back to my ivtv-0.4.0 which was working fine for me. I need to stop upgrading just for the sake of upgrading... I need to leave well enough alone! ![]() |
Author: | mac [ Sat Mar 11, 2006 8:54 am ] |
Post subject: | |
version 0.4.3 handles the firmware loads differently than 0.4.0 look at: http://ivtvdriver.org/index.php/Firmware |
Author: | mihanson [ Sat Mar 11, 2006 11:44 am ] |
Post subject: | |
mac wrote: version 0.4.3 handles the firmware loads differently than 0.4.0 look at: http://ivtvdriver.org/index.php/Firmware I had the firmware right... Quote: ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
I'm wondering if there is a bug when a PVR-150 and HD-3000 are installed together with the 0.4.3 driver. The ivtvdriver.org docs mention a 250/350 are known to work, but there's no mention of a PVR-150 working with a HD-3000 installed... |
Author: | tjc [ Sat Mar 11, 2006 12:43 pm ] |
Post subject: | |
Most of the compatibility issues with PVR-x50/PVR-500 and HD-3000 cards come down to module load order, and there's no difference between the [23]50 and 150/500 on that count. I've currently got the HD-3000 yanked out of my box because given my crappy reception, hassling with the module order everytime I do an upgrade is a nusciance. The 0.4.3 dependency on the hotplug firmware loader just makes this more difficult. |
Author: | mac [ Sat Mar 11, 2006 6:28 pm ] |
Post subject: | |
right.. some how I got it in my head that you were using a pvr350. |
Author: | tkoster [ Thu Mar 16, 2006 11:02 pm ] |
Post subject: | |
I am apparently struggling with the same issue. Has anyone gotten the ivtv drivers to play nice with the HD3000 (dvb) drivers? |
Author: | tkoster [ Fri Mar 17, 2006 7:19 am ] |
Post subject: | |
Resolved: the latest ivtv drivers appear to let the dvb drivers take the highroad. In the process they moved my 350 from video0 to video1. It took some playing in mythtv-setup, but now is working. |
Author: | mihanson [ Wed Oct 18, 2006 7:08 pm ] |
Post subject: | |
For the benefit of others... There was a patch posted in this thread that has fixed my tinny audio issue with a PVR-150. Don't know how to patch? Try this: Code: # man patch
|
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |