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