[mythtv-users] Second Tuner Not Working

Michael Starks mythtv at michaelstarks.com
Sat Jan 1 15:21:38 EST 2005


I have a system (Fedora Core II) with a PVR350 and a PVR250.  The first
tuner works OK, but the second does not.  Here are the relevant logs and
config info:

When trying to enable PIP, the menu freezes on the screen and I get this
in mythbackend.log:
Error setting format
VIDIOC_S_FMT:: Device or resource busy

>From then on I can no longer exit live TV, change channels, or get the
menu to respond.

Here is the relevant part of dmesg:
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.1.10 (0.2.0-53_rc1a.rhfc2.at) loading
ivtv: Linux version: 2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3
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:09.0[A] -> GSI 5 (level, low) -> IRQ 5
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: XXX PCI device: 0x0009 vendor: 0x1166
tveeprom: Hauppauge: model = 48132, rev = J323, serial# = 6814496
tveeprom: tuner = Philips FM1236 (idx = 23, type = 2)
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 2, Tuner formats 0x00001000, Radio: yes, Model
0x00a93493, Revision 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 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) 0x01, (1F) 0xc0
saa7127: video encoder driver version V 0.3 loaded
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=simpler
ivtv: i2c attach [client=MSP3448W-A2,ok]
ivtv: Encoder revision: 0x02040024
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 350 card with 9 streams
ivtv: Create DMA stream 0 using 32 131072 byte buffers  4194304 kbytes
total
ivtv: Registered v4l2 device, streamtype 0 minor 0
ivtv: Create DMA stream 1 using 16 131072 byte buffers  2097152 kbytes
total
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 16 131072 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 8 131072 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 8 131072 byte buffers  1048576 kbytes
total
ivtv: Registered v4l2 device, streamtype 8 minor 48
ivtv: ivtv_enc_thread: pid = 2007, itv = 0x1ac7c9a0
ivtv: Setting Tuner 2
ivtv: ivtv_dec_thread: pid = 2008, itv = 0x1ac7c9a0
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by
ivtv i2c driver #0
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: Initialized WinTV PVR 350, card #0
ivtv: Autodetected WinTV PVR 250 card
ivtv: Found an iTVC15 based chip
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 11 (level, low) -> IRQ 11
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: XXX PCI device: 0x0009 vendor: 0x1166
tveeprom: Hauppauge: model = 48011, rev = G510, serial# = 2670247
tveeprom: tuner = Philips FI1236 MK2 (idx = 10, type = 2)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3435 (type = 10)
ivtv: i2c attach [client=tveeprom[1],ok]
tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #1
ivtv: i2c attach [client=(tuner unset),ok]
saa7115: starting probe for adapter ivtv i2c driver #1 (0x10005)
saa7115: detecting saa7115 client on address 0x42
saa7115: writing init values
ivtv: i2c attach [client=saa7115[1],ok]
saa7115: status: (1E) 0x01, (1F) 0xc0
msp34xx: init: chip=MSP3435G-B6 +nicam +simple +simpler +radio
mode=simpler
ivtv: i2c attach [client=MSP3435G-B6,ok]
ivtv: Tuner Type 2, Tuner formats 0x00001000, Radio: yes, Model
0x009d5450, Revision 0x00000004
ivtv: NTSC tuner detected
ivtv: Radio detected
ivtv: Encoder revision: 0x02040024
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 250 card with 5 streams
ivtv: Create DMA stream 0 using 32 131072 byte buffers  4194304 kbytes
total
ivtv: Registered v4l2 device, streamtype 0 minor 1
ivtv: Create DMA stream 1 using 16 131072 byte buffers  2097152 kbytes
total
ivtv: Registered v4l2 device, streamtype 1 minor 33
ivtv: Create stream 2 using 40 52224 byte buffers  2097152 kbytes total
ivtv: Registered v4l2 device, streamtype 2 minor 225
ivtv: Create DMA stream 3 using 16 131072 byte buffers  2097152 kbytes
total
ivtv: Registered v4l2 device, streamtype 3 minor 25
ivtv: Create stream 4
ivtv: Registered v4l2 device, streamtype 4 minor 65
ivtv: Setting Tuner 2
ivtv: ivtv_enc_thread: pid = 2069, itv = 0x1ac90e48
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by
ivtv i2c driver #1
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
ivtv: Initialized WinTV PVR 250, card #1
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.
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 0x1ba31000, size 1350k
ivtv-osd: mode is 720x480x32, linelength=2880
mtrr: Serverworks LE detected. Write-combining disabled.
mtrr: your processor doesn't support write-combining
ivtv-osd: warning: mtrr_add() failed to add write combining region
0xf5400000-0xf5600000
ivtv-osd: fb0: iTVC15 TV out frame buffer device
saa7115: decoder set picture bright=128 contrast=63 saturation=64 hue=0
saa7115: decoder set picture bright=128 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder disable output
ivtv: v4l2 ioctl: set frequency 4436
saa7115: decoder enable output
ivtv: Finished with reset in 100 ms
ivtv: Finished with Mute
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder disable output
ivtv: v4l2 ioctl: set frequency 4916
saa7115: decoder enable output
ivtv: Finished with reset in 100 ms
ivtv: Finished with Mute
lirc_dev: IR Remote Control driver registered, at major 61
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture

And here is the relevant part of modprobe.conf:
# ivtv modules setup
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-81-1 ivtv
install ivtv /sbin/modprobe --ignore-install ivtv; /sbin/modprobe
ivtv-fb

And an lsmod | grep saa shows:
saa7127                10248  0
saa7115                10628  0
i2c_core               17345  8
bttv,lirc_i2c,msp3400,saa7127,saa7115,tuner,tveeprom,i2c_algo_bit

The tuners are configured in mythtvsetup as:
/dev/video0 attached to cable
/dev/video1 also attached to cable

Finally, here are the video devices:
crw-------  1 mythtv root 81, 0 Oct 17 11:37 /dev/video0
crw-------  1 mythtv root 81, 0 Oct 17 11:37 /dev/video1
crw-------  1 mythtv root 81, 0 Oct 17 11:37 /dev/video2
crw-------  1 mythtv root 81, 0 Oct 17 11:37 /dev/video3


Hopefully that's all the info needed.  Thanks in advance for any
assistance.




More information about the mythtv-users mailing list