[mythtv-users] PVR-350 - X via tv-out - tveeprom

dead dead at tormented.com
Wed Jan 26 17:24:02 EST 2005


Greetings,

I followed jarod's MythTV on FC3 guide.

After much tinkering I finally got X working over the TV-out for the 
pvr-350 running on a fully updated FC3 system. I found the fix for the
tveeprom Error -19 that was occuring (adding the alias in modprobe.conf) 
but now X over pvr-350's tv-out no longer works after adding that alias.

I've also never been able to get it to recognize the cable signal 
(tuner0 / input type = 4) and be able to change channels, though it did 
seem to work piping S-video (svideo0 / input type 6 I think). I'm using 
coax cable from the wall that I know works (it works when I plug it into 
my tivo). The end result I'm after is to be able to replace my tivo with 
my mythtv box, and put another tuner card into it to be able to record 2 
shows at once. Just getting it working with 1 tuner is the current goal.

I've done a bit of reading through the various online documentation and 
mailing lists, but I can't seem to get it quite right.


I'm using the following RPMs installed from atrpms:

-- start rpm -qa output --
[root at localhost ~]# rpm -qa | grep myth
mythtv-frontend-0.16-82.2.rhfc3.at
mythtv-theme-purplegalaxy-0.20031214-3.at
mythtv-theme-MediaCenter-0.17-3.at
mythmusic-0.16-61.rhfc3.at
mythnews-0.16-31.rhfc3.at
mythvideo-0.16-58.rhfc3.at
mythtv-0.16-82.2.rhfc3.at
mythtv-theme-gant-0.pr1-2.at
mythtv-theme-abstract-0.20040910-2.at
mythtv-theme-sleek-0.35-2.at
mythtvsetup-0.16-82.2.rhfc3.at
mythmkmovie-1.0.1-3.rhfc3.at
mythdvd-0.16-42.rhfc3.at
mythtv-backend-0.16-82.2.rhfc3.at
mythtv-themes-0.16-82.2.rhfc3.at
mythbrowser-0.16-25.rhfc3.at
mythgallery-0.16-61.rhfc3.at
mythtv-theme-visor-0.16.2-5.at
mythweather-0.16-58.rhfc3.at
mythtv-suite-0.16-45.at
mythtv-theme-photo-4-6.at
mythgame-0.16-60.rhfc3.at
mythweb-0.16-63.at
libmyth-0.16-82.2.rhfc3.at
mythtv-theme-isthmus-0.20040804-1.at
mythphone-0.16-2.rhfc3.at
[root at localhost ~]# rpm -qa | grep ivtv
ivtv-kmdl-2.6.10-1.741_FC3-0.3.2c-66.rhfc3.at
ivtv-firmware-dec-2.02.023-4.at
ivtv-kmdl-2.6.10-1.741_FC3-0.1.10-49.1_pre2_ck100zz.rhfc3.at
ivtv-firmware-1.8a-4.at
perl-Video-ivtv-0.13-6.rhfc3.at
ivtv-0.3.2c-66.rhfc3.at
ivtv-firmware-enc-2.04.024-4.at
ivtvdev-0.8-1.rhfc3.at
[root at localhost ~]# rpm -qa | grep lirc
lirc-0.7.0-43.1.rhfc3.at
lirc-kmdl-2.6.10-1.741_FC3-0.7.0-43.1.rhfc3.at
lirc-lib-0.7.0-43.1.rhfc3.at
lirc-devices-0.7.0-1.rhfc3.at
[root at localhost ~]# rpm -qa | grep video4linux
video4linux-20050113_172233-54.1.rhfc3.at
video4linux-kmdl-2.6.10-1.741_FC3-20050113_172233-54.1.rhfc3.at
-- end rpm -qa output --

Here is the error from Xorg.0.log

-- start Xorg.0.log snippet --
(II) IVTVDEV: driver for framebuffer: PVR-350
(II) Primary Device is: PCI 01:00:0
(--) Chipset PVR-350 found
(EE) ivtvHWProvbe failed to do IVTVFB_IOCTL_GET_STATE for device (null)
(EE) Screen 0 deleted because of no matching config section.
(II) UnloadModule: "ivtvdev"
(EE) Device(s) detected, but none match those in the config file.

Fatal server error:
no screens found
-- end Xorg.0.log snippet --

More conf files / logs / cmd outputs below:

-- start xorg.conf snippet --
Section "Monitor"
         Identifier  "NTSC Monitor"
         HorizSync  30-68
         VertRefresh 50-120
         Mode "720x480"
           # D: 34.563 MHz, H: 37.244 kHz, V: 73.897 Hz
           DotClock 34.564
           HTimings 720 752 840 928
           VTimings 480 484 488 504
           Flags    "-HSync" "-VSync"
         EndMode
EndSection

Section "ServerFlags"
         Option "blank time" "0"
         Option "standby time" "0"
         Option "suspend time" "0"
         Option "off time" "0"
EndSection

Section "Device"
         Identifier  "Hauppauge PVR 350 iTVC15 Framebuffer"
         Driver      "ivtvdev"
         #Driver      "fbdev"

         ## change fb0 to whatever your card grabbed
         Option      "ivtv" "/dev/fb0"

         ## change the BusID to whatever is reported by lspci
         BusID "0:10:0"
EndSection


Section "Screen"
         Identifier "Screen0"
         Device      "Hauppauge PVR 350 iTVC15 Framebuffer"
         Monitor     "NTSC Monitor"
         DefaultDepth 24
         DefaultFbbpp 32
         Subsection "Display"
           Depth 24
           FbBpp 32
           Modes "720x480"
         EndSubsection

EndSection
-- end xorg.conf snippet --

-- start modprobe.conf --
alias eth0 via-velocity
alias snd-card-0 snd-ens1371
options snd-card-0 index=0
install snd-ens1371 /sbin/modprobe --ignore-install snd-ens1371 && 
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-ens1371 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; 
/sbin/modprobe -r --ignore-remove snd-ens1371
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
# nvidia kernel module
alias char-major-195 nvidia-1_0-6629
# lirc
alias char-major-61 lirc_i2c
# ivtv/pvr350 driver module
alias tveeprom tveeprom-ivtv
alias char-major-81 videodev
alias char-major-81-0 ivtv
install ivtv /sbin/modprobe --ignore-install ivtv; /sbin/modprobe ivtv-fb
install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe --ignore-install 
lirc_i2c
-- end modprobe.conf --

-- start dmesg snippet --
lirc_dev: no version for "struct_module" found: kernel tainted.
lirc_dev: IR Remote Control driver registered, at major 61
Linux video capture interface: v1.00
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.3.2 (c) loading
ivtv: Linux version: 2.6.10-1.741_FC3 686 REGPARM 4KSTACKS gcc-3.4
ivtv: In case of problems please include the debug info
ivtv: between the START INIT IVTV and END INIT IVTV lines when
ivtv: mailing the ivtv-devel mailinglist.
ivtv: Autodetected WinTV PVR 350 card
ivtv: Found an iTVC15 based chip
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 10 (level, low) -> IRQ 10
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: VIA PCI device: 0x0258 vendor: 0x1106
tveeprom: Hauppauge: model = 48132, rev = K268, serial# = 2918377
tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type = 47)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
ivtv: i2c attach [client=tveeprom[0],ok]
ivtv: Tuner Type 47, Tuner formats 0x00001000, Radio: yes, Model 
0x00ad2598, Rev
ision 0x00000001
ivtv: NTSC tuner detected
ivtv: Radio detected
tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv: i2c attach [client=(tuner unset),ok]
saa7115: starting probe for adapter SMBus Via Pro adapter at 0400 (0x0)
saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
saa7115: detecting saa7115 client on address 0x42
saa7115: writing init values
ivtv: i2c attach [client=saa7115[0],ok]
saa7115: status: (1E) 0x48, (1F) 0xc0
saa7127: Ignoring new-style parameters in presence of obsolete ones
saa7127: video encoder driver version V 0.3 loaded
saa7127: detecting saa7127 client on address 0x88
saa7127: Selecting NTSC video Standard
saa7127: Selecting S-Video+Composite
saa7127: Turn WSS off
saa7127: Widescreen Mode 4:3 Full Format
saa7127: Selecting Normal Encoder Input
saa7127: Enable Video Output
ivtv: i2c attach [client=saa7127[0],ok]
msp34xx: init: chip=MSP3448W-A2 +nicam +simple +simpler +radio mode=simple
ivtv: i2c attach [client=MSP3448W-A2,ok]
msp3410: daemon started
ivtv: Encoder revision: 0x02040024
ivtv: Encoder Firmware may be buggy, use version 0x02040011
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 350 card with 10 streams
ivtv: Create DMA stream 0 using 256 16384 byte buffers  4194304 kbytes total
ivtv: Registered v4l2 device, streamtype 0 minor 0
ivtv: Create DMA stream 1
ivtv: Registered v4l2 device, streamtype 1 minor 32
ivtv: Create stream 2 using 40 52224 byte buffers  2097152 kbytes total
ivtv: Registered v4l2 device, streamtype 2 minor 224
ivtv: Create DMA stream 3 using 455 4608 byte buffers  2097152 kbytes total
ivtv: Registered v4l2 device, streamtype 3 minor 24
ivtv: Create stream 4
ivtv: Registered v4l2 device, streamtype 4 minor 64
ivtv: Create DMA stream 5 using 16 65536 byte buffers  1048576 kbytes total
ivtv: Registered v4l2 device, streamtype 5 minor 16
ivtv: Create stream 6 using 1024 2048 byte buffers  262144 kbytes total
ivtv: Registered v4l2 device, streamtype 6 minor 228
ivtv: Create stream 7
ivtv: Registered v4l2 device, streamtype 7 minor 232
ivtv: Create DMA stream 8 using 6 103680 byte buffers  622080 kbytes total
ivtv: Registered v4l2 device, streamtype 8 minor 48
ivtv: Create DMA stream 9 using 32 65536 byte buffers  2097152 kbytes total
ivtv: Setting Tuner 47
tuner: type set to 47 (LG NTSC (TAPE series)) by ivtv i2c driver #0
saa7115: decoder set input (4)
saa7115: now setting Composite input
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
saa7127: Setting Encoder Video Standard
saa7127: Set NTSC Video Mode
saa7127: Selecting NTSC video Standard
ivtv: ivtv_enc_thread: pid = 4138, itv = 0xe10e9a20
ivtv: ivtv_dec_thread: pid = 4139, itv = 0xe10e9a20
ivtv: Initialized WinTV PVR 350, card #0
ivtv: ====================  END INIT IVTV  ====================
ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and has 
1704960
bytes.
spurious 8259A interrupt: IRQ7.
ivtv-osd: screen coords: [0 0] -> [720 480]
ivtv-osd: original global alpha = 208
ivtv-osd: current OSD state = 39
ivtv-osd: new global alpha = 208 (1 255 0)
ivtv-osd: framebuffer at 0xf5510000, mapped to 0xe1f90000, size 1350k
ivtv-osd: mode is 720x480x32, linelength=2880
ivtv-osd: fb1: iTVC15 TV out frame buffer device
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
lirc_i2c: chip found @ 0x18 (Hauppauge IR)
ivtv: i2c attach [client=Hauppauge IR,ok]
lirc_dev: lirc_register_plugin:sample_rate: 10
-- end dmesg snippet --

-- start ivtvctl stuff --
[root at localhost ~]# ivtvctl -a
ioctl: IVTV_IOC_G_CODEC
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 9600000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 0
ioctl: VIDIOC_G_FMT
         Type   : Video Capture
         Width  : 720
         Height : 480
ioctl: VIDIOC_QUERYCAP
         Driver name   : ivtv
         Card type     : Vanilla iTVC15 card
         Bus info      : 0
         Driver version: 770
         Capabilities  : 0x01070033
ioctl: VIDIOC_ENUMINPUT
         Input   : 0
         Name    : Composite 0
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 1
         Name    : Composite 1
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 2
         Name    : Composite 2
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 3
         Name    : Composite 3
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 4
         Name    : Tuner 0
         Type    : 0x00000001
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x0000000000003000 ( NTSC )
         Status  : 0

         Input   : 5
         Name    : Composite 4
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 6
         Name    : S-Video 0
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 7
         Name    : S-Video 1
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 8
         Name    : S-Video 2
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0

         Input   : 9
         Name    : S-Video 3
         Type    : 0x00000002
         Audioset: 0x00000003
         Tuner   : 0x00000000
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
         Status  : 0
ioctl: VIDIOC_G_INPUT
Input = 4
ioctl: VIDIOC_ENUMOUTPUT
         Output  : 0
         Name    : S-Video + Composite
         Type    : 0x00000002
         Audioset: 0x00000001
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

         Output  : 1
         Name    : Composite
         Type    : 0x00000002
         Audioset: 0x00000001
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

         Output  : 2
         Name    : S-Video
         Type    : 0x00000002
         Audioset: 0x00000001
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

         Output  : 3
         Name    : RGB
         Type    : 0x00000002
         Audioset: 0x00000001
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

         Output  : 4
         Name    : YUV C
         Type    : 0x00000002
         Audioset: 0x00000001
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

         Output  : 5
         Name    : YUV V
         Type    : 0x00000002
         Audioset: 0x00000001
         Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
ioctl: VIDIOC_G_OUTPUT
Output = 0
ioctl: VIDIOC_ENUMAUDIO
         Input   : 0
         Name    : Tuner Audio In

         Input   : 1
         Name    : Audio Line In
ioctl: VIDIOC_G_AUDIO
Input = 0: Tuner Audio In
ioctl: VIDIOC_G_FREQUENCY
Frequency = 0
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
Standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 58880
Mute = 1
-- end ivtv stuffs --

Any tips, hints, suggestions, fixes or comments will be much appreciated.

If more info is needed to help diagnose my issues, just ask for it.

Thanks in advance.




More information about the mythtv-users mailing list