Hi!
(this is repost)
I cannot force to work a tuner "Yuan mpg600" correctly.
Tuner: Yuan mpg600 Smart VDO EZ DVD, saa7115, cx23416, FI1256 MK2/PH
System: Linux, kernel 2.6.9, ivtv 0.3.4y
># lspci -v
01:00.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416)
MPEG-2 Encoder (rev 01)
Subsystem: Yuan Yuan Enterprise Co., Ltd.: Unknown device ffff
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [44] Power Management version 2
># cat /etc/modprobe.conf
alias usb-controller uhci-hcd
alias eth0 e100
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-intel8x0
options snd-card-0 index=0
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 &&
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; };
/sbin/modprobe -r --ignore-remove snd-intel8x0
alias usb-controller1 ehci-hcd
alias scsi_hostadapter ata_piix
options i2c_algo_bit i2c_debug=1
options saa7115 debug=2
options ivtv ivtv_debug=255 ivtv_std=3 radio=0
># modprobe ivtv
># cat /var/log/messages
kernel: Linux video capture interface: v1.00
kernel: ivtv: ==================== START INIT IVTV ====================
kernel: ivtv: version 0.3.4 (y) loading
kernel: ivtv: Linux version: 2.6.9-1.681asp 686 REGPARM 4KSTACKS gcc-3.3
kernel: ivtv: In case of problems please include the debug info
kernel: ivtv: between the START INIT IVTV and END INIT IVTV lines when
kernel: ivtv: mailing the ivtv-devel mailinglist.
kernel: ivtv: ... running on kernel 2.6.9-1.681asp
kernel: ivtv: Setting some variables to invalid for detection
kernel: ivtv: Scanning PCI bus..
kernel: ivtv: Found card #0
kernel: ivtv: Autodetected YUAN MPG600/Kuroutoshikou ITVC16-STVLP card
kernel: ivtv: Found an iTVC16 based chip
kernel: ivtv: base addr: 0xe0000000
kernel: ivtv: Enabling pci device
kernel: ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 10 (level, low) -> IRQ 10
kernel: ivtv: Bus Mastering Enabled.<6>ivtv: Unreasonably low latency timer,
setting to 64 (was 32)
kernel: ivtv: 22 (rev 1) at 01:00.0, ivtv: irq: 10, latency: 64, memory:
0xe0000000
kernel: ivtv: XXX PCI device: 0x2570 vendor: 0x8086
kernel: ivtv: attempting ioremap at 0xe0000000 len 0x00800000
kernel: ivtv: attempting ioremap at 0xe1000000 len 0x00800000
kernel: ivtv: attempting ioremap at 0xe2000000 len 0x00010000
kernel: ivtv: activating i2c...
kernel: ivtv: i2c init
kernel: ivtv: setting scl and sda to 1
kernel: ivtv: Active card count: 1.
kernel: tuner: Ignoring new-style parameters in presence of obsolete ones
kernel: ivtv: Loaded module tuner
kernel: saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
kernel: saa7115: detecting saa7115 client on address 0x42
kernel: saa7115: writing init values
kernel: ivtv: i2c client attach
kernel: ivtv: i2c attach [client=saa7115[50],ok]
kernel: saa7115: status: (1E) 0x48, (1F) 0xc0
kernel: ivtv: Loaded module saa7115
kernel: ivtv: Stopping VDM
kernel: ivtv: Stopping AO
kernel: ivtv: pinging (?) APU
kernel: ivtv: Stopping VPU
kernel: ivtv: Resetting Hw Blocks
kernel: ivtv: Stopping SPU
kernel: ivtv: Sleeping for 10ms
kernel: ivtv: init Encoder SDRAM pre-charge
kernel: ivtv: init Encoder SDRAM refresh to 1us
kernel: ivtv: init Decoder SDRAM pre-charge
kernel: ivtv: init Decoder SDRAM refresh to 1us
kernel: ivtv: Sleeping for 600ms (600 recommended)
kernel: ivtv: Card ready for firmware!
kernel: ivtv: Loading encoder image
kernel: ivtv: Sleeping for 10 ms
kernel: ivtv: Sleeping for 10 ms
kernel: ivtv: GPIO INIT
kernel: ivtv: GPIO initial dir:00000000, out:00000000
kernel: ivtv: About to search for mailboxes
kernel: ivtv: Searching for encoder mailbox
kernel: ivtv: .ivtv: match: 0x34567812 at 0x12000104. match: 1
kernel: ivtv: match: 0x56781234 at 0x12000108. match: 2
kernel: ivtv: match: 0x78123456 at 0x1200010c. match: 3
kernel: ivtv: found encoder mailbox!
kernel: ivtv: Searching for decoder mailbox
kernel: ivtv: .ivtv: match: 0x34567812 at 0x12880104. match: 1
kernel: ivtv: match: 0x56781234 at 0x12880108. match: 2
kernel: ivtv: match: 0x78123456 at 0x1288010c. match: 3
kernel: ivtv: found decoder mailbox!
kernel: ivtv: Getting firmware version..
kernel: ivtv: Getting encoder firmware rev.
kernel: ivtv: API Call: 0x000000c4
kernel: ivtv: got new mailbox: 0 after 0 tries
kernel: ivtv: [0]result not ready, waiting 10 ms
kernel: ivtv: Releasing mailbox (before 0x00000007, ivtv: after 0x00000000)
kernel: ivtv: Encoder revision: 0x02040008
kernel: ivtv: v4l2 streams setup
kernel: ivtv: Configuring YUAN MPG600/Kuroutoshikou ITVC16-STVLP card with 4
streams
kernel: ivtv: Registered v4l2 device, streamtype 0 minor 0
kernel: ivtv: Create DMA stream 0 using 128 16384 byte buffers 0 kbytes total
kernel: ivtv: Registered v4l2 device, streamtype 1 minor 32
kernel: ivtv: Create DMA stream 1 using 20 103680 byte buffers 0 kbytes total
kernel: ivtv: Registered v4l2 device, streamtype 2 minor 224
kernel: ivtv: Create DMA stream 2 using 128 16384 byte buffers 0 kbytes total
kernel: ivtv: Registered v4l2 device, streamtype 3 minor 24
kernel: ivtv: Create DMA stream 3 using 455 4608 byte buffers 0 kbytes total
kernel: ivtv: Starting Threads
kernel: ivtv: Masking interrupts
kernel: ivtv: call_i2c_client
kernel: ivtv: using client 0, addr 0x21
kernel: saa7115: decoder set input (4)
kernel: saa7115: now setting Composite input
kernel: ivtv: Setting audio to input 0
kernel: ivtv: v4l2 ioctl: set standard
kernel: ivtv: Switching standard to SECAM.
kernel: ivtv: call_i2c_client
kernel: ivtv: skipping client 0, addr 0x21, id 0xf1
kernel: ivtv: no client 1 found
kernel: ivtv: no client 2 found
kernel: ivtv: no client 3 found
kernel: ivtv: no client 4 found
kernel: ivtv: no client 5 found
kernel: ivtv: no client 6 found
kernel: ivtv: no client 7 found
kernel: ivtv: no client 8 found
kernel: ivtv: no client 9 found
kernel: ivtv: no client 10 found
kernel: ivtv: no client 11 found
kernel: ivtv: no client 12 found
kernel: ivtv: no client 13 found
kernel: ivtv: no client 14 found
kernel: ivtv: no client 15 found
kernel: ivtv: i2c client id: 0x02 not found!
kernel: ivtv: call_i2c_client
kernel: ivtv: using client 0, addr 0x21
kernel: saa7115: decoder set norm SECAM
kernel: ivtv: ivtv_enc_thread: pid = 2996, itv = 0x11ea2e20
kernel: ivtv: encoder thread sleeping 2996
kernel: ivtv: ivtv_enc_vbi_thread: pid = 2997, itv = 0x11ea2e20
kernel: ivtv: encoder thread sleeping 2997
kernel: saa7115: set audio: 0x01
kernel: ivtv: Initialized YUAN MPG600/Kuroutoshikou ITVC16-STVLP, card #0
kernel: ivtv: ==================== END INIT IVTV ====================
kernel: ivtv: v4l2 open on minor 0
kernel: ivtv: current minor 0
kernel: ivtv: opened card # 1, stream 0
kernel: ivtv: v4l2 ioctl 0x80685600
kernel: ivtv: v4l2 ioctl: querycap
kernel: ivtv: v4l2 close
kernel: ivtv: v4l2 open on minor 32
kernel: ivtv: current minor 0
kernel: ivtv: current minor 32
kernel: ivtv: opened card # 1, stream 1
kernel: ivtv: v4l2 ioctl 0x80685600
kernel: ivtv: v4l2 ioctl: querycap
kernel: ivtv: v4l2 close
kernel: ivtv: v4l2 open on minor 24
kernel: ivtv: current minor 0
kernel: ivtv: current minor 32
kernel: ivtv: current minor 224
kernel: ivtv: current minor 24
kernel: ivtv: opened card # 1, stream 3
kernel: ivtv: v4l2 ioctl 0x80685600
kernel: ivtv: v4l2 ioctl: querycap
kernel: ivtv: v4l2 close
># lsmod
Module Size Used by
saa7115 12308 0
tuner 19372 0
ivtv 1316676 1
i2c_algo_bit 8521 1 ivtv
videodev 9537 2 ivtv
i2c_dev 10433 0
i2c_core 22209 4 saa7115,tuner,i2c_algo_bit,i2c_dev
># 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: 8
dnr_type : 0
framerate : 0
framespergop: 12
gop_closure : 1
pulldown : 0
stream_type : 14
ioctl: VIDIOC_G_FMT
Type : Video Capture
Width : 720
Height : 576
ioctl: VIDIOC_QUERYCAP
Driver name : ivtv
Card type : YUAN MPG600/Kuroutoshikou ITVC160
Bus info : 0
Driver version: 772
Capabilities : 0x01030011
ioctl: VIDIOC_ENUMINPUT
Input : 0
Name : N/A
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 1
Name : N/A
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 2
Name : N/A
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 3
Name : Composite 0
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: 0x00000000007F0000 ( SECAM )
Status : 0
Input : 5
Name : N/A
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: 0x0000000000000000 ( )
Status : 0
ioctl: VIDIOC_G_INPUT
Input = 4
ioctl: VIDIOC_ENUMOUTPUT
ioctl: VIDIOC_G_OUTPUT
ioctl: VIDIOC_G_OUTPUT failed
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 = 0x007f0000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 65535
Mute = 0
>After this command I see in /var/log/messages:
kernel: ivtv: v4l2 open on minor 0
kernel: ivtv: current minor 0
kernel: ivtv: opened card # 1, stream 0
kernel: ivtv: v4l2 ioctl 0x803c4030
kernel: ivtv: v4l2 ioctl 0xc0cc5604
kernel: ivtv: v4l2 ioctl: get format
kernel: ivtv: v4l2 ioctl 0x80685600
kernel: ivtv: v4l2 ioctl: querycap
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0xc04c561a
kernel: ivtv: v4l2 ioctl: enuminput
kernel: ivtv: v4l2 ioctl 0x80045626
kernel: ivtv: v4l2 ioctl: get input
kernel: ivtv: v4l2 ioctl 0xc0485630
kernel: ivtv: v4l2 ioctl: enumoutput
kernel: ivtv: v4l2 ioctl 0x8004562e
kernel: ivtv: v4l2 ioctl: get output
kernel: ivtv: v4l2 ioctl 0xc0345641
kernel: ivtv: v4l2 ioctl: enumaudio
kernel: ivtv: v4l2 ioctl 0xc0345641
kernel: ivtv: v4l2 ioctl: enumaudio
kernel: ivtv: v4l2 ioctl 0xc0345641
kernel: ivtv: v4l2 ioctl: enumaudio
kernel: ivtv: v4l2 ioctl 0x80345621
kernel: ivtv: v4l2 ioctl: get audio input
kernel: ivtv: v4l2 ioctl 0xc02c5638
kernel: ivtv: v4l2 ioctl: get frequency
kernel: ivtv: v4l2 ioctl 0xc0405619
kernel: ivtv: v4l2 ioctl: enum standard
kernel: ivtv: v4l2 ioctl 0xc0405619
kernel: ivtv: v4l2 ioctl: enum standard
kernel: ivtv: v4l2 ioctl 0xc0405619
kernel: ivtv: v4l2 ioctl: enum standard
kernel: ivtv: v4l2 ioctl 0xc0405619
kernel: ivtv: v4l2 ioctl: enum standard
kernel: ivtv: v4l2 ioctl 0x80085617
kernel: ivtv: v4l2 ioctl: get standard
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl 0xc008561b
kernel: ivtv: v4l2 ioctl: get control
kernel: ivtv: call_i2c_client
kernel: ivtv: using client 0, addr 0x21
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl 0xc008561b
kernel: ivtv: v4l2 ioctl: get control
kernel: ivtv: call_i2c_client
kernel: ivtv: using client 0, addr 0x21
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl 0xc008561b
kernel: ivtv: v4l2 ioctl: get control
kernel: ivtv: call_i2c_client
kernel: ivtv: using client 0, addr 0x21
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl 0xc008561b
kernel: ivtv: v4l2 ioctl: get control
kernel: ivtv: call_i2c_client
kernel: ivtv: using client 0, addr 0x21
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl 0xc008561b
kernel: ivtv: v4l2 ioctl: get control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl 0xc008561b
kernel: ivtv: v4l2 ioctl: get control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 ioctl 0xc0445624
kernel: ivtv: v4l2 ioctl: invalid control
kernel: ivtv: v4l2 close
???
># utils/ptune.pl --freqtable secam-russia --channel 22 --input /dev/video0
>--tuner-num 0 --debug
Debug = '1'
FrequencyTable = 'secam-russia'
VideoDevice = '/dev/video0'
TunerNum = '0'
Ch.22: 479250 7668
> in /var/log/messages
May 19 16:11:48 media kernel: ivtv: v4l2 open on minor 0
May 19 16:11:48 media kernel: ivtv: current minor 0
May 19 16:11:48 media kernel: ivtv: opened card # 1, stream 0
May 19 16:11:48 media kernel: ivtv: v4l2 ioctl 0x00005401
May 19 16:11:48 media kernel: ivtv: v4l2 ioctl 0x80685600
May 19 16:11:48 media kernel: ivtv: v4l2 ioctl: querycap
May 19 16:11:48 media kernel: ivtv: v4l2 ioctl 0x402c5639
May 19 16:11:48 media kernel: ivtv: v4l2 ioctl: set frequency
May 19 16:11:48 media kernel: ivtv: API Call: 0x000000d2
May 19 16:11:48 media kernel: ivtv: got new mailbox: 0 after 0 tries
May 19 16:11:48 media kernel: ivtv: [0]result not ready, waiting 10 ms
May 19 16:11:48 media kernel: ivtv: Releasing mailbox (before 0x00000007, ivtv:
after 0x00000000)
May 19 16:11:48 media kernel: ivtv: Disabling digitizer
May 19 16:11:48 media kernel: ivtv: call_i2c_client
May 19 16:11:48 media kernel: ivtv: using client 0, addr 0x21
May 19 16:11:48 media kernel: saa7115: decoder disable output
May 19 16:11:48 media kernel: ivtv: v4l2 ioctl: set frequency 7668
May 19 16:11:48 media kernel: ivtv: call_i2c_client
May 19 16:11:48 media kernel: ivtv: skipping client 0, addr 0x21, id 0xf1
May 19 16:11:48 media kernel: ivtv: no client 1 found
May 19 16:11:48 media kernel: ivtv: no client 2 found
May 19 16:11:48 media kernel: ivtv: no client 3 found
May 19 16:11:48 media kernel: ivtv: no client 4 found
May 19 16:11:48 media kernel: ivtv: no client 5 found
May 19 16:11:48 media kernel: ivtv: no client 6 found
May 19 16:11:48 media kernel: ivtv: no client 7 found
May 19 16:11:48 media kernel: ivtv: no client 8 found
May 19 16:11:48 media kernel: ivtv: no client 9 found
May 19 16:11:48 media kernel: ivtv: no client 10 found
May 19 16:11:48 media kernel: ivtv: no client 11 found
May 19 16:11:48 media kernel: ivtv: no client 12 found
May 19 16:11:48 media kernel: ivtv: no client 13 found
May 19 16:11:48 media kernel: ivtv: no client 14 found
May 19 16:11:48 media kernel: ivtv: no client 15 found
May 19 16:11:48 media kernel: ivtv: i2c client id: 0x02 not found!
May 19 16:11:48 media kernel: ivtv: API Call: 0x000000d3
May 19 16:11:48 media kernel: ivtv: got new mailbox: 0 after 0 tries
May 19 16:11:48 media kernel: ivtv: Enabling digitizer
May 19 16:11:48 media kernel: ivtv: call_i2c_client
May 19 16:11:48 media kernel: ivtv: using client 0, addr 0x21
May 19 16:11:48 media kernel: saa7115: decoder enable output
May 19 16:11:48 media kernel: ivtv: API Call: 0x000000d2
May 19 16:11:48 media kernel: ivtv: got free mailbox: 0 after 0 tries
May 19 16:11:48 media kernel: ivtv: [0]result not ready, waiting 10 ms
May 19 16:11:48 media kernel: ivtv: Releasing mailbox (before 0x00000007, ivtv:
after 0x00000000)
May 19 16:11:48 media kernel: ivtv: Finished with reset in 100 ms
May 19 16:11:48 media kernel: ivtv: Finished with Mute
May 19 16:11:48 media kernel: ivtv: v4l2 close
>#mplayer /dev/video0
I see I see video-noise (+ sound-noise). I.e. the tuner works also the
coder works. But change of channels does not influence in any way a tuner :-(
What can you advise?
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel