View previous topic :: View next topic |
Author |
Message |
Greisby Tux's lil' helper
Joined: 17 Jun 2003 Posts: 87 Location: Germany
|
Posted: Sun Jun 13, 2004 10:07 am Post subject: PVR 250 & ivtv : cannot tune channels |
|
|
Hi,
I finally found out how to install & configure ivtv, with the http://wopr.yi.org/mythtv.html guide.
Everything's ok, except that mythtv gives me a blank screen and seems frozen with I try to watch tv. So I decided to try later and to search for the channels myself to watch tv with mplayer /dev/video
Well, it seems that ptune.pl doesn't change the channels at all (I have the same garbage on all).
Any clue?
I'm using gentoo-dev-sources-2.6.5-r1 and ivtv-0.1.9-r3
In /etc/modules.d/ivtv I have:
Code: |
# Hauppage PVR 250
alias char-major-81 videodev
alias char-major-81-0 ivtv
option ivtv ivtv_debug=0 mpg_buffers=90
# TUNER_PHILIPS_SECAM
options tuner type=3
# 0x09=france / 0x03=germany / 0x01=auto
options msp3400 once=1 simple=1 standard=0x03 debug=0
add below ivtv msp3400 saa7115 tuner
# IR
alias char-major-61 lirc_i2c
add above ivtv lirc_dev lirc_i2c
|
Besides, I'm not sure of the tuner type and the msp3400 standard, since I'm living at the french-german border and want to get both PAL and SECAM channels.
Despite the add below, the tuner, saa7115 and msp3400 modules are not loaded at boot, so I added the following in /etc/modules.autoload.d/kernel-2.6 :
Code: |
# PVR-250 Tuner
tuner
msp3400
saa7115
ivtv
|
Here the little script I wrote to scan all channels :
Code: |
#!/bin/bash
IVTV_DIR="/tmp"
TEST_DIR=$IVTV_DIR/test-`date +"%Y%m%d"`
TEST_DURATION=15
echo "Set capture size to 720x576"
# 1st set to PAL or SECAM (here PAL)
test_ioctl -u 0xff
test_ioctl -p 4
test_ioctl -f width=720,height=576
test_ioctl -v input=2,output=1
# input 3?
for TABLE in pal-europe pal-europe-west secam-france custom ; do
if [ "$TABLE" == "secam-france" ] ; then
echo "Switch tuner to SECAM"
STANDARD=SECAM
test_ioctl -u 0x7f0000 >/dev/null
else
echo "Switch tuner to PAL"
STANDARD=PAL
test_ioctl -u 0xff >/dev/null
fi
for CHANNEL in `ptune.pl --freqtable $TABLE --list-channels | grep = | colrm 5` ; do
echo -n "Test $TABLE channel $CHANNEL..."
ptune.pl --freqtable $TABLE --channel $CHANNEL
if [ -s $TEST_DIR/$TABLE-$CHANNEL.mpg ] ; then
echo "already tested."
continue
elif [ -a $TEST_DIR/$TABLE-$CHANNEL.mpg ] ; then
echo -n "retest."
fi
record-v4l2.pl --duration $TEST_DURATION --standard $STANDARD \
--type mpeg --directory $IVTV_DIR \
--directory-format "test-%d" --date-format "+%Y%m%d" \
--freqtable $TABLE --channel $CHANNEL --inputname 'Tuner 0' \
--input /dev/video0 --width 720 --height 576 \
--output $TABLE-$CHANNEL.mpg --input /dev/video0 >/dev/null
echo
if [ ! -s $TEST_DIR/$TABLE-$CHANNEL.mpg ] ; then
echo "***Error creating file. Reinitialize ivtv:"
echo "# rmmod ivtv msp3400 saa7115 ; sleep 1 ; modprobe msp3400 saa7115 ivtv"
echo "And restart the script that will scan the remaining channels."
exit 1
fi
done
done
echo "Check now in $TEST_DIR which files have video."
exit 0
|
|
|
Back to top |
|
|
Greisby Tux's lil' helper
Joined: 17 Jun 2003 Posts: 87 Location: Germany
|
Posted: Sun Jun 13, 2004 10:42 am Post subject: |
|
|
Damn. I just realized that the tuner and msp3400 options are not used, despite of their presence in /etc/modules.conf
Code: |
### modules-update: start processing /etc/modules.d/ivtv
# Hauppage PVR 250
alias char-major-81 videodev
alias char-major-81-0 ivtv
option ivtv ivtv_debug=0 mpg_buffers=90
# TUNER_PHILIPS_SECAM
options tuner type=3
# 0x09=france / 0x03=germany / 0x01=auto
options msp3400 once=1 simple=1 standard=0x03 debug=0
add below ivtv msp3400 saa7115 tuner
# IR
alias char-major-61 lirc_i2c
add above ivtv lirc_dev lirc_i2c
### modules-update: end processing /etc/modules.d/ivtv
|
I had lots of "Jun 13 10:52:07 gentoo kernel: tuner: tuner type not set" in /var/log/messages
I have to load the modules "manually" :
Code: |
# insmod /lib/modules/2.6.5-gentoo-r1/kernel/drivers/media/video/tuner.ko type=3
# insmod /lib/modules/2.6.5-gentoo-r1/extra/msp3400.ko once=1 simple=1 standard=0x03 debug=0
# modprobe saa7115
|
Here the /var/log/messages extract:
Code: |
Jun 13 11:58:23 gentoo kernel: ivtv: 100 ms time out waiting for firmware
Jun 13 11:58:23 gentoo kernel: ivtv: api call 0x00000081
Jun 13 11:58:23 gentoo kernel: ivtv: startcap error 1. Code -16
Jun 13 11:58:24 gentoo kernel: tuner: tuner type not set
Jun 13 11:59:59 gentoo kernel: ivtv: You've not seen the last of willy!
Jun 13 12:00:16 gentoo kernel: ivtv: version 0.1.9 (release) loading
Jun 13 12:00:16 gentoo kernel: ivtv: SGarray_size = 420, DSGarray_size = 16
Jun 13 12:00:16 gentoo kernel: ivtv: Found an iTVC15 based chip
Jun 13 12:00:18 gentoo kernel: ivtv: Encoder revision: 0x02040011
Jun 13 12:00:18 gentoo kernel: ivtv: Decoder revision: 0x02020023
Jun 13 12:00:18 gentoo kernel: ivtv: i2c client addr: 0x61 not found!
Jun 13 12:00:18 gentoo kernel: ivtv: i2c client addr: 0x61 not found!
Jun 13 12:00:18 gentoo kernel: ivtv: i2c client addr: 0x40 not found!
Jun 13 12:00:18 gentoo kernel: ivtv: Registered v4l2 device, minor 0
Jun 13 12:00:18 gentoo kernel: ivtv: Registered v4l2 device, minor 32
Jun 13 12:00:18 gentoo kernel: ivtv: Registered v4l2 device, minor 224
Jun 13 12:00:18 gentoo kernel: ivtv: Registered v4l2 device, minor 24
Jun 13 12:00:18 gentoo kernel: ivtv: loaded
Jun 13 12:02:57 gentoo kernel: tuner: no version for "struct_module" found: kernel tainted.
Jun 13 12:02:57 gentoo kernel: tuner: no version magic, tainting kernel.
Jun 13 12:06:21 gentoo kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
Jun 13 12:06:21 gentoo kernel: tuner: type set to 3 (Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)) by insmod option
Jun 13 12:08:16 gentoo kernel: msp34xx: init: chip=MSP3415G-B8, has NICAM support
Jun 13 12:08:16 gentoo kernel: msp3410: daemon started
Jun 13 12:08:37 gentoo kernel: saa7114.c: starting probe for adapter ivtv i2c driver #0 (0x10005)
Jun 13 12:08:37 gentoo kernel: saa7114.c: detecting saa7114 client on address 0x42
Jun 13 12:08:37 gentoo kernel: saa7115.c: writing init values
Jun 13 12:08:39 gentoo kernel: status: (1E) 0x2c, (1F) 0xc0
Jun 13 12:18:15 gentoo kernel: saa7115[0]: decoder set size
Jun 13 12:18:15 gentoo kernel: Setting full PAL width
Jun 13 12:18:15 gentoo kernel: Setting full PAL height
|
Is it correct so?
Well, I restart the scan to see if it's tuning now... |
|
Back to top |
|
|
Greisby Tux's lil' helper
Joined: 17 Jun 2003 Posts: 87 Location: Germany
|
Posted: Sun Jun 13, 2004 1:13 pm Post subject: |
|
|
That was is.
I have now scanned all the channels, but... I have no sound on SECAM channels. Only on PAL ones.
Any clue? |
|
Back to top |
|
|
Greisby Tux's lil' helper
Joined: 17 Jun 2003 Posts: 87 Location: Germany
|
Posted: Mon Jun 14, 2004 11:19 pm Post subject: |
|
|
Clue for future guy having this problem:
load the msp3400.komsp3400.ko module with standard 0x09 (france).
With 0x01 (auto-detect), 1/2 of the channels (random) pal & secam don't have sound.
With 0x03 (germany) near all secam channels don't have sound.
With 0x09 (france), all pal&secam channels have sound.
# insmod /lib/modules/<your kernel version>/extra/msp3400.ko once=1 simple=1 standard=0x09 debug=0 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|