On Wed, 2009-04-15 at 22:48 -0400, faginbagin wrote:
> Hi Andy,
> 
> > Go to the directory where you ran the make for v4l-dvb and do this:
> > 
> > 0. Configure MythTV to use 48 kbps audio for the analog tuner channels
> > 1. kill the mythbackend
> > 2. make unload
> > 3. make unload
> > 4. modprobe cx18 debug=15
> > 5. restart the mythbackend
> > 
> > See if that helps the audio.
> 
> No joy :(
> 
> However, make unload did eliminate the cx88 modules and they didn't return.
> 
> > First though, I'd like you to try and use the Audio Line-In (from a DVD
> > player or something) or FM radio (if your board has FM radio).  The
> > latest v4l-dvb repo (from about yesterday) has a patch to make sure
> > Audio Line-In gets switched to properly in the cx18 driver.
> 
> I'll do this next, and use mplayer, etc. as you suggest.
> 
> Does it matter whether I use the utils from the source I downloaded 
> today, or the ivtv-utils binary package provided by ubuntu? The reason I 
> ask is because v4l2-sysfs-path.c wouldn't compile and other stuff didn't 
> build because I didn't have qmake installed. I do have v4l2-ctl and am 
> still trying to figure out how/where to make ivtv-tune.

You can certainly use the v4l2-ctl that came with your distro.

You don't need ivtv-tune, but I like it because you can use channel
numbers instead of frequencies to change channels (while mplayer is
running!).  v4l2-ctl makes you use a frequency IIRC.

ivtv-tune should be in the ivtv-utils-1.0.3 tarball from the
ivtvdriver.org website.  There's a chicken-and-egg problem building it
though.  It won't build until you install the ivtv headers.  It won't
install the ivtv headers until you 'make install', but that requires
everything to build first... *sigh*.  The work around is to just move
the header in place by hand to wherever make install would have put them
and then build.


> 
> >>  Or could this indicate a 
> >> problem with the board?
> > 
> > I doubt it.
> 
> I hope not, although I can still return/exchange it without a penalty if 
> that is the case.

I don't think it's a board problem.  I think it's an incoming signal
problem.  If your cable signals on some channels are so strong that they
start overdriving the analog receiver front end (bumping into non-linear
regions of the amplifiers), then you can get intermodulation products
which will show up as noise on other channels.  The 3rd order
intermodulation products can be particularly strong at frequencies
*higher* than the two or more strong channels that caused them.


I think I have detected the symptoms you describe on broadcast channel
32 (579.25 MHz) on my setup with my HVR-1600.  The static is slight, but
it is noticable and consistent.

There are relatively few strong over the air station where I am at.  It
shouldn't take me too long to build up a spreadsheet of all the possible
intermodulation products that pairs of strong stations below channel 32
could create on channel 32's frequency band.

If I'm right, then attenuationing the strong stations with an external
attenuatior or filter should make the static go away.

Since I can reproduce this, I'll try and debug this without you going
through too many hoops.  Hopefully the symptoms won't go away.  Over the
air propagation can be weather and time of day dependent...


> > For reference, here are the driver initialization messages for my
> > HVR-1600MCE (FM radio and no IR), the list of relevant modules, and what
> > a 'v4l2-ctl --log-status' looks like for a tuned in NTSC UHF station
> > during a capture:
> 
> Here's the equivalent stuff from my system:
> 
> dmesg output:
> [26052.434536] cx18:  Start initialization, version 1.1.0
> [26052.434594] cx18-0: Initializing card 0
> [26052.434598] cx18-0: Autodetected Hauppauge card
> [26052.434647] cx18-0:  info: base addr: 0xf4000000
> [26052.434648] cx18-0:  info: Enabling pci device
> [26052.434662] cx18 0000:01:09.0: PCI INT A -> Link[APC2] -> GSI 17 
> (level, low) -> IRQ 17
> [26052.434671] cx18-0:  info: cx23418 (rev 0) at 01:09.0, irq: 17, 
> latency: 64, memory: 0xf4000000
> [26052.434673] cx18-0:  info: attempting ioremap at 0xf4000000 len 
> 0x04000000
> [26052.437535] cx18-0: cx23418 revision 01010000 (B)
> [26052.533078] cx18-0:  info: GPIO initial dir: 0000cffe/0000ffff out: 
> 00003001/00000000
> [26052.533095] cx18-0:  info: activating i2c...
> [26052.613686] lirc_i2c: chip 0x10020 found @ 0x71 (Hauppauge PVR150)
> [26052.613700] lirc_dev: lirc_register_plugin: sample_rate: 10
> [26052.656944] tveeprom 0-0050: Hauppauge model 74041, rev C6B2, serial# 
> 5405623
> [26052.656948] tveeprom 0-0050: MAC address is 00-0D-FE-52-7B-B7
> [26052.656950] tveeprom 0-0050: tuner model is TCL M2523_5N_E (idx 112, 
> type 50)
> [26052.656952] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
> [26052.656954] tveeprom 0-0050: audio processor is CX23418 (idx 38)
> [26052.656955] tveeprom 0-0050: decoder processor is CX23418 (idx 31)
> [26052.656957] tveeprom 0-0050: has no radio, has IR receiver, has IR 
> transmitter
> [26052.656959] cx18-0: Autodetected Hauppauge HVR-1600
> [26052.656960] cx18-0:  info: NTSC tuner detected
> [26052.656961] cx18-0: Simultaneous Digital and Analog TV capture supported
> [26052.766049] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
> [26052.770031] cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
> [26052.790071] tuner-simple 1-0061: creating new instance
> [26052.790074] tuner-simple 1-0061: type set to 50 (TCL 2002N)
> [26052.790774] cx18-0:  info: Allocate encoder MPEG stream: 64 x 32768 
> buffers (2048kB total)
> [26052.790859] cx18-0:  info: Allocate TS stream: 32 x 32768 buffers 
> (1024kB total)
> [26052.790900] cx18-0:  info: Allocate encoder YUV stream: 16 x 131072 
> buffers (2048kB total)
> [26052.790950] cx18-0:  info: Allocate encoder VBI stream: 20 x 51984 
> buffers (1015kB total)
> [26052.791004] cx18-0:  info: Allocate encoder PCM audio stream: 256 x 
> 4096 buffers (1024kB total)
> [26052.791181] cx18-0:  info: Allocate encoder IDX stream: 32 x 32768 
> buffers (1024kB total)
> [26052.791258] cx18-0: Registered device video0 for encoder MPEG (64 x 
> 32 kB)
> [26052.791261] DVB: registering new adapter (cx18)
> [26052.808645] cx18 0000:01:09.0: firmware: requesting v4l-cx23418-cpu.fw
> [26052.923835] MXL5005S: Attached at address 0x63
> [26052.923841] DVB: registering adapter 0 frontend 0 (Samsung S5H1409 
> QAM/8VSB Frontend)...
> [26052.923912] cx18-0: DVB Frontend registered
> [26052.923914] cx18-0: Registered DVB adapter0 for TS (32 x 32 kB)
> [26052.923938] cx18-0: Registered device video32 for encoder YUV (16 x 
> 128 kB)
> [26052.923957] cx18-0: Registered device vbi0 for encoder VBI (20 x 
> 51984 bytes)
> [26052.923978] cx18-0: Registered device video24 for encoder PCM audio 
> (256 x 4 kB)
> [26052.923981] cx18-0: Initialized card: Hauppauge HVR-1600
> [26052.924028] cx18:  End initialization
> 
> lsmod output:
> Module                  Size  Used by
> mxl5005s               45316  1
> s5h1409                18308  1
> tuner_simple           23956  1
> tuner_types            26240  1 tuner_simple
> cs5345                 12636  1
> tuner                  33776  1
> cx18                  124708  0
> dvb_core              111404  1 cx18
> cx2341x                23300  1 cx18
> v4l2_common            26880  4 cs5345,tuner,cx18,cx2341x
> videodev               49184  4 cs5345,tuner,cx18,v4l2_common
> v4l1_compat            24068  1 videodev
> v4l2_compat_ioctl32    19712  1 videodev
> tveeprom               23556  1 cx18
> binfmt_misc            18572  1
> ppdev                  16904  0
> bridge                 63904  0
> stp                    11140  1 bridge
> bnep                   22912  2
> lirc_i2c               18948  0
> lirc_dev               22088  1 lirc_i2c
> video                  29204  0
> output                 11648  1 video
> input_polldev          12688  0
> jfs                   197200  1
> it87                   35352  0
> hwmon_vid              12160  1 it87
> adm1021                22064  0
> lp                     19588  0
> parport                49584  2 ppdev,lp
> snd_hda_intel         557364  0
> snd_pcm_oss            52352  0
> snd_mixer_oss          24960  1 snd_pcm_oss
> snd_pcm                99336  2 snd_hda_intel,snd_pcm_oss
> snd_seq_dummy          11524  0
> snd_seq_oss            41984  0
> snd_seq_midi           15744  0
> snd_rawmidi            33920  1 snd_seq_midi
> snd_seq_midi_event     16512  2 snd_seq_oss,snd_seq_midi
> snd_seq                66272  6 
> snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
> snd_timer              34064  2 snd_pcm,snd_seq
> snd_seq_device         16276  5 
> snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
> i2c_algo_bit           15364  1 cx18
> snd                    78792  9 
> snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
> soundcore              16800  1 snd
> snd_page_alloc         18704  2 snd_hda_intel,snd_pcm
> psmouse                64028  0
> serio_raw              14468  0
> pcspkr                 11136  0
> k8temp                 13440  0
> nvidia               8123768  26
> hid_bright             10624  0
> usbhid                 47040  1 hid_bright
> forcedeth              68368  0
> floppy                 75816  0
> fbcon                  49792  0
> tileblit               11264  1 fbcon
> font                   17024  1 fbcon
> bitblit                14464  1 fbcon
> softcursor             10368  1 bitblit

This all looks OK, after a cursory glance.  You may want to unload
lirc_i2c while testing, just to eliminate any possible unknown due to
lirc..  lirc_i2c is going to use the first I2C master of the CX23418 to
talk to the Z8 IR microcontroller chip.  The analog tuner commands are
sent on the second I2C master of the CX23418 chip.



> v4l2-ctl output (Note, this was after mythbackend stopped recording, not 
> during, I was compiling as the recording was in progress):
> 
> Status Log:
> 
>     [29384.798135] cx18-0: =================  START STATUS CARD #0 
> =================
>     [29384.798139] cx18-0: Version: 1.1.0  Card: Hauppauge HVR-1600
>     [29384.831826] tveeprom 0-0050: Hauppauge model 74041, rev C6B2, 
> serial# 5405623
>     [29384.831829] tveeprom 0-0050: MAC address is 00-0D-FE-52-7B-B7
>     [29384.831831] tveeprom 0-0050: tuner model is TCL M2523_5N_E (idx 
> 112, type 50)
>     [29384.831833] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
>     [29384.831835] tveeprom 0-0050: audio processor is CX23418 (idx 38)
>     [29384.831837] tveeprom 0-0050: decoder processor is CX23418 (idx 31)
>     [29384.831838] tveeprom 0-0050: has no radio, has IR receiver, has 
> IR transmitter
>     [29384.831844] cx18-0 843: Video signal:              present
>     [29384.831845] cx18-0 843: Detected format:           NTSC-M
>     [29384.831847] cx18-0 843: Specified standard:        NTSC-M
>     [29384.831848] cx18-0 843: Specified video input:     Composite 7
>     [29384.831849] cx18-0 843: Specified audioclock freq: 48000 Hz
>     [29384.831859] cx18-0 843: Detected audio mode:       stereo
>     [29384.831860] cx18-0 843: Detected audio standard:   BTSC
>     [29384.831862] cx18-0 843: Audio muted:               no
>     [29384.831863] cx18-0 843: Audio microcontroller:     running
>     [29384.831864] cx18-0 843: Configured audio standard: automatic 
> detection
>     [29384.831866] cx18-0 843: Configured audio system:   BTSC
>     [29384.831867] cx18-0 843: Specified audio input:     Tuner (In8)
>     [29384.831869] cx18-0 843: Preferred audio mode:      stereo

The analog SIF digitizer and broadcast decoder looks happy with the
sound IF.


>     [29384.831871] cx18-0 gpio-reset-ctrl: GPIO:  direction 0x00003001, 
> value 0x00003001
>     [29384.831873] tuner 1-0061: Tuner mode:      analog TV
>     [29384.831875] tuner 1-0061: Frequency:       253.25 MHz

253.25 MHz is cable channel 29.  It's frequency is between US broadcast
channel 13 (211.25 MHz) and 14 (471.25 MHz).

>     [29384.831876] tuner 1-0061: Standard:        0x0000b000
>     [29384.833601] cs5345 0-004c: Input:  1
>     [29384.833603] cs5345 0-004c: Volume: 0 dB
>     [29384.833604] cx18-0: Video Input: Tuner 1
>     [29384.833606] cx18-0: Audio Input: Tuner 1
>     [29384.833608] cx18-0: GPIO:  direction 0x00003001, value 0x00003001
>     [29384.833609] cx18-0: Tuner: TV
>     [29384.833611] cx18-0: Stream: MPEG-2 DVD-compatible Stream
>     [29384.833614] cx18-0: VBI Format: Private packet, IVTV format
>     [29384.833617] cx18-0: Video:  720x480, 30 fps
>     [29384.833620] cx18-0: Video:  MPEG-2, 4x3, Variable Bitrate, 
> 2000000, Peak 3500000
>     [29384.833623] cx18-0: Video:  GOP Size 15, 2 B-Frames, GOP Closure
>     [29384.833626] cx18-0: Audio:  48 kHz, MPEG-1/2 Layer II, 256 kbps, 
> Stereo, No Emphasis, No CRC
>     [29384.833629] cx18-0: Spatial Filter:  Manual, Luma 1D Horizontal, 
> Chroma 1D Horizontal, 0
>     [29384.833631] cx18-0: Temporal Filter: Manual, 8
>     [29384.833634] cx18-0: Median Filter:   Off, Luma [0, 255], Chroma 
> [0, 255]
>     [29384.833636] cx18-0: Status flags: 0x00200001
>     [29384.833638] cx18-0: Stream encoder MPEG: status 0x0000, 0% of 
> 2048 KiB (64 buffers) in use
>     [29384.833641] cx18-0: Stream encoder YUV: status 0x0000, 0% of 2048 
> KiB (16 buffers) in use
>     [29384.833644] cx18-0: Stream encoder VBI: status 0x0000, 0% of 1015 
> KiB (20 buffers) in use
>     [29384.833647] cx18-0: Stream encoder PCM audio: status 0x0000, 0% 
> of 1024 KiB (256 buffers) in use
>     [29384.833649] cx18-0: Read MPEG/VBI: 66054144/0 bytes
>     [29384.833651] cx18-0: ==================  END STATUS CARD #0 
> ==================
> 
> The differences I see are:
> - I've got VBI enabled, even though I don't expect CCs at this time.

MythTV always sets it up.  I'm not sure if it always turns it on though.
You would have seen another capture stream start (CX18_CAPTURE_START) in
your debug logs, if the VBI stream actually started.  We have to set the
VBI parameters when the first stream starts.  We can't change VBI
parameters until all analog streams are stopped due to firmware imposed
rules.


> - I'm using DVD compatible and you're using MPEG-PS.
> - I'm using much lower bitrates for video vbr=2 mbps and peak=3.5 mbps, 
> these work well with my PVR-150 and keep recordings down to around 1GB/hour.
> - I'm using a higher bitrate for audio 256 kbps vs 224.

These didn't seem to matter in affecting the static I have on channel
32.


> - tuner frequency and standard are different. I'm tuning to channel 29 
> on cable. I'm guessing you're tuning to a broadcast channel?

I was tuned to broadcast channel 20 (507.25 MHz) at the time, with which
I have no audio problem.  It's close to cable channel 71 (505.25 MHz).

I was set to look for just NTSC-M.  You were set to autodetect NTSC-M
NTSC-M as implemented in Japan, or NTSC-M as implemented in Korea.  That
shouldn't have affected things, but you can try and set it back to just
looking for NTSC-M with v4l2-ctl, to see if it make a difference.


> Perhaps I should try using your parameters, including disabling VBI, 
> still using cable? Broadcast is out of the question for me.

They likely won't matter given my tests with channel 32.  You should
confirm though.



> Anyway, I'm now going to hook up the DVD player and see what happens.

For inputs other than the analog RF tuner, I suspect you won't get the
static.

Also for an RF source with only one (e.g a VCR) or only a few weak (e.g.
rabbit ears and a UHF loop or bow) RF channels, I suspect your
HVR-1600's analog tuner won't produce the static.


> One last thing. I had trimmed the dmesg output after "End 
> initialization", but I thought you might want to see the debug output 
> during the recording, including the firmware loading.

Yes, thank you.


>  Actually, there 
> were two recordings during this time, a few minutes of a recording on 
> channel 7 I interrupted when I stopped and restarted mythbackend, and 
> the recording on the problem channel 29. It follows my signature. Hope 
> you don't mind another 167 lines!

Meh, no big deal.  Although if you can prevent the line wrap next
time....

> Helen
> 
> [26052.964096] cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
> [26052.989319] cx18 0000:01:09.0: firmware: requesting v4l-cx23418-apu.fw
> [26053.009007] cx18-0:  info: load segment a00000-a07fff
> [26053.031785] cx18-0:  info: load segment ae0000-ae00ff
> [26053.031964] cx18-0:  info: load segment b00000-b1a65f
> [26053.107122] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 
> (141200 bytes)
> [26053.111865] cx18-0:  info: 1 MiniMe Encoder Firmware 0.0.74.0 
> (Release 2007/03/12)
> [26053.111867] cx18-0: FW version: 0.0.74.0 (Release 2007/03/12)
> [26053.316027] cx18-0:  api: CX18_CPU_DEBUG_PEEK32      cmd 0x20000003 
> args 0x00000000
> [26053.316086] cx18-0:  api: CX18_APU_START     cmd 0x10000001 args 
> 0x000000b9 0x00000000
> [26053.317251] cx18-0:  api: CX18_APU_RESETAI   cmd 0x10000005 args
> [26053.317681] cx18-0:  api: CX18_APU_STOP      cmd 0x10000002 args 
> 0x00000000
> [26053.320796] cx18 0000:01:09.0: firmware: requesting v4l-cx23418-cpu.fw
> [26053.461133] cx18 0000:01:09.0: firmware: requesting v4l-cx23418-apu.fw
> [26053.465489] cx18-0:  info: load segment a00000-a07fff
> [26053.488190] cx18-0:  info: load segment ae0000-ae00ff
> [26053.488370] cx18-0:  info: load segment b00000-b1a65f
> [26053.569182] cx18-0:  info: 1 MiniMe Encoder Firmware 0.0.74.0 
> (Release 2007/03/12)
> [26053.772019] cx18-0:  api: CX18_CPU_DEBUG_PEEK32      cmd 0x20000003 
> args 0x00000000
> [26053.772075] cx18-0:  api: CX18_APU_START     cmd 0x10000001 args 
> 0x000000b9 0x00000000
> [26053.773248] cx18-0:  api: CX18_APU_RESETAI   cmd 0x10000005 args
> [26053.773678] cx18-0:  api: CX18_APU_STOP      cmd 0x10000002 args 
> 0x00000000
> [26053.773744] cx18 0000:01:09.0: firmware: requesting v4l-cx23418-dig.fw
> [26053.966498] cx18-0 843: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
> [26053.966541] cx18-0:  info: Changing input from 1 to 0
> [26053.966543] cx18-0:  info: Mute
> [26053.966545] cx18-0 843:  info: decoder set video input 7, audio input 8
> [26053.967472] cx18-0 843:  info: decoder set video input 7, audio input 8
> [26053.967538] cx18-0:  info: Unmute
> [26053.967539] cx18-0:  info: Switching standard to 1000.
> [26053.967541] cx18-0 843:  info: changing video std to fmt 1
> [26053.967556] cx18-0 843:  info: PLL regs = int: 15, frac: 2876158, post: 4
> [26053.967557] cx18-0 843:  info: PLL = 107.999999 MHz
> [26053.967559] cx18-0 843:  info: PLL/8 = 13.499999 MHz
> [26053.967560] cx18-0 843:  info: ADC Sampling freq = 14.317382 MHz
> [26053.967562] cx18-0 843:  info: Chroma sub-carrier freq = 3.579545 MHz
> [26053.967564] cx18-0 843:  info: hblank 122, hactive 720, vblank 26, 
> vactive 481, vblank656 38, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 
> 1, comb 0x66, sc 0x087c1f
> [26053.968319] cx18-0:  info: Mute
> [26053.968320] cx18-0:  info: v4l2 ioctl: set frequency 1076
> [26053.969046] cx18-0:  info: Unmute

All normal.


> [26102.188063] cx18-0:  info: Input unchanged
> [26102.188068] cx18-0:  info: Switching standard to b000.

0x1000 = V4L2_STD_NTSC_M
0xb000 = V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_JP | V4L2_STD_NTSC_M_KR

0xb000 is a wildcard match for any type of NTSC-M system.  No big deal.


> [26102.188070] cx18-0 843:  info: changing video std to fmt 1
> [26102.188086] cx18-0 843:  info: PLL regs = int: 15, frac: 2876158, post: 4
> [26102.188088] cx18-0 843:  info: PLL = 107.999999 MHz
> [26102.188089] cx18-0 843:  info: PLL/8 = 13.499999 MHz
> [26102.188090] cx18-0 843:  info: ADC Sampling freq = 14.317382 MHz
> [26102.188092] cx18-0 843:  info: Chroma sub-carrier freq = 3.579545 MHz
> [26102.188094] cx18-0 843:  info: hblank 122, hactive 720, vblank 26, 
> vactive 481, vblank656 38, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 
> 1, comb 0x66, sc 0x087c1f
> [26102.190696] cx18-0:  info: Input unchanged
> [26102.191473] cx18-0:  info: Mute
> [26102.191476] cx18-0:  info: v4l2 ioctl: set frequency 2804
> [26102.192208] cx18-0:  info: Unmute
> [26106.048921] cx18-0:  info: Input unchanged
> [26106.050874] cx18-0:  info: Mute
> [26106.050877] cx18-0:  info: v4l2 ioctl: set frequency 2804
> [26106.051608] cx18-0:  info: Unmute
> [26106.069672] cx18-0:  api: CX18_CPU_SET_AUDIO_PARAMETERS      cmd 
> 0x20020011 args 0xffffffff 0x000000c9

Setting 256 kbps audio layer II rate.

No stream is open yet, so the task handle is 0xffffffff.

> [26106.070328] cx18-0:  api: CX18_CPU_SET_VIDEO_RATE    cmd 0x20020005 
> args 0xffffffff 0x00000000 0x001e8480 0x00004e20 0x00000000

nominal bit rate = 2000000 bps
peak bit rate =    8000000 bps

No stream is open yet, so the task handle is 0xffffffff

> [26106.070426] cx18-0:  api: CX18_CPU_SET_STREAM_OUTPUT_TYPE    cmd 
> 0x20020012 args 0xffffffff 0x0000000e

DVD compatible stream

No stream is open yet, so the task handle is 0xffffffff


> [26106.070477] cx18-0:  info: disabled insertion of sliced VBI data into 
> the MPEG stream

The driver will refuse to stuff custom VBI packets in a DVD stream,
since the driver doesn't know how to do this in software.  That prevents
your stream from getting corrupted.

> [26106.070529] cx18-0 843:  info: PLL regs = int: 15, frac: 2876158, post: 4
> [26106.070531] cx18-0 843:  info: PLL = 107.999999 MHz
> [26106.070533] cx18-0 843:  info: PLL/8 = 13.499999 MHz
> [26106.070534] cx18-0 843:  info: ADC Sampling freq = 14.317382 MHz
> [26106.070536] cx18-0 843:  info: Chroma sub-carrier freq = 3.579545 MHz
> [26106.070538] cx18-0 843:  info: hblank 122, hactive 720, vblank 26, 
> vactive 481, vblank656 38, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 
> 1, comb 0x66, sc 0x087c1f
> [26106.070651] cx18-0:  info: disabled insertion of sliced VBI data into 
> the MPEG stream
> [26106.070711] cx18-0:  info: Start encoder stream encoder MPEG
> [26106.070714] cx18-0:  api: CX18_CREATE_TASK   cmd 0x40000001 args 
> 0x20020000
> [26106.070768] cx18-0:  api: CX18_CPU_SET_CHANNEL_TYPE  cmd 0x20020001 
> args 0x00000000 0x00000001
> [26106.070819] cx18-0:  api: CX18_CPU_SET_VER_CROP_LINE cmd 0x2002001b 
> args 0x00000000 0x00000000
> [26106.070871] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000003 0x00000001
> [26106.070925] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000008 0x00000000
> [26106.070977] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000004 0x00000001
> [26106.071029] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x0000000c
> [26106.071077] cx18-0:  api: CX18_CPU_SET_CAPTURE_LINE_NO       cmd 
> 0x20020017 args 0x00000000 0x00000138 0x00000139
> [26106.071134] cx18-0 843:  info: PLL regs = int: 15, frac: 2876158, post: 4
> [26106.071135] cx18-0 843:  info: PLL = 107.999999 MHz
> [26106.071137] cx18-0 843:  info: PLL/8 = 13.499999 MHz
> [26106.071138] cx18-0 843:  info: ADC Sampling freq = 14.317382 MHz
> [26106.071140] cx18-0 843:  info: Chroma sub-carrier freq = 3.579545 MHz
> [26106.071142] cx18-0 843:  info: hblank 122, hactive 720, vblank 26, 
> vactive 481, vblank656 38, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 
> 1, comb 0x66, sc 0x087c1f
> [26106.071237] cx18-0:  info: Setup VBI h: 0 lines 120012 bpl 272 fr 1 
> b0f0b0f0 a0e0a0e0
> [26106.071240] cx18-0:  api: CX18_CPU_SET_RAW_VBI_PARAM cmd 0x20020016 
> args 0x00000000 0x00120012 0x00000110 0x00000001 0xb0f0b0f0 0xa0e0a0e0
> [26106.368023] cx18-0:  api: CX18_CPU_SET_INDEXTABLE    cmd 0x20020010 
> args 0x00000000
> [26106.368078] cx18-0:  api: CX18_CPU_SET_VIDEO_IN      cmd 0x20020004 
> args 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
> [26106.368147] cx18-0:  api: CX18_CPU_SET_VIDEO_RESOLUTION      cmd 
> 0x20020006 args 0x00000000 0x000002d0 0x000001e0
> [26106.368210] cx18-0:  api: CX18_CPU_SET_STREAM_OUTPUT_TYPE    cmd 
> 0x20020012 args 0x00000000 0x0000000e
> [26106.368265] cx18-0:  api: CX18_CPU_SET_ASPECT_RATIO  cmd 0x2002001e 
> args 0x00000000 0x00000002
> [26106.368317] cx18-0:  api: CX18_CPU_SET_GOP_STRUCTURE cmd 0x2002001c 
> args 0x00000000 0x0000000f 0x00000003
> [26106.368369] cx18-0:  api: CX18_CPU_SET_AUDIO_PARAMETERS      cmd 
> 0x20020011 args 0x00000000 0x000000c9
> [26106.368428] cx18-0:  api: CX18_CPU_SET_AUDIO_MUTE    cmd 0x20020014 
> args 0x00000000 0x00000000
> [26106.368494] cx18-0:  api: CX18_CPU_SET_VIDEO_RATE    cmd 0x20020005 
> args 0x00000000 0x00000000 0x001e8480 0x00004e20 0x00000000
> [26106.370230] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000001 0x00000000 0x00000000
> [26106.370286] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000000 0x00000001 0x00000008
> [26106.370339] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000002 0x00000000 0x00000000
> [26106.370396] cx18-0:  api: CX18_CPU_SET_MEDIAN_CORING cmd 0x2002000e 
> args 0x00000000 0x00000000 0x000000ff 0x00000000 0x000000ff
> [26106.370457] cx18-0:  api: CX18_CPU_SET_SPATIAL_FILTER_TYPE   cmd 
> 0x2002000c args 0x00000000 0x00000001 0x00000001
> [26106.370513] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000001 0x00000000 0x00000000
> [26106.370566] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000000 0x00000001 0x00000008
> [26106.370620] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000002 0x00000000 0x00000000
> [26106.370674] cx18-0:  api: CX18_CPU_SET_SKIP_INPUT_FRAME      cmd 
> 0x2002001f args 0x00000000 0x00000000
> [26106.370724] cx18-0:  api: CX18_CPU_SET_VIDEO_MUTE    cmd 0x20020013 
> args 0x00000000 0x00808000
> [26106.370774] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000007 0x00000000 0x00000000
> [26106.370832] cx18-0:  api: CX18_CPU_DE_SET_MDL_ACK    cmd 0x20040002 
> args 0x00000000 0x00dc0c40 0x00dc0c48
> [26106.377264] cx18-0:  api: CX18_CPU_CAPTURE_START     cmd 0x20020002 
> args 0x00000000
> [26192.902880] cx18-0:  info: close stopping capture
> [26192.902883] cx18-0:  info: Stop Capture
> [26192.902886] cx18-0:  api: CX18_CPU_CAPTURE_STOP      cmd 0x20020003 
> args 0x00000000 0x00000001
> [26193.200037] cx18-0:  api: CX18_CPU_DE_RELEASE_MDL    cmd 0x20040006 
> args 0x00000000
> [26193.500037] cx18-0:  api: CX18_DESTROY_TASK  cmd 0x40000002 args 
> 0x00000000

End of first capture.

> [26252.392930] cx18-0:  info: Input unchanged
> [26252.394922] cx18-0:  info: Mute
> [26252.394926] cx18-0:  info: v4l2 ioctl: set frequency 4052
> [26252.395656] cx18-0:  info: Unmute
> [26252.413112] cx18-0:  api: CX18_CPU_SET_VIDEO_RATE    cmd 0x20020005 
> args 0xffffffff 0x00000000 0x001e8480 0x0000222e 0x00000000

bit rate      = 2000000 bps
Peak bit rate = 3500000 bps

> [26252.413310] cx18-0 843:  info: PLL regs = int: 15, frac: 2876158, post: 4
> [26252.413314] cx18-0 843:  info: PLL = 107.999999 MHz
> [26252.413315] cx18-0 843:  info: PLL/8 = 13.499999 MHz
> [26252.413317] cx18-0 843:  info: ADC Sampling freq = 14.317382 MHz
> [26252.413318] cx18-0 843:  info: Chroma sub-carrier freq = 3.579545 MHz
> [26252.413321] cx18-0 843:  info: hblank 122, hactive 720, vblank 26, 
> vactive 481, vblank656 38, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 
> 1, comb 0x66, sc 0x087c1f
> [26252.413494] cx18-0:  info: Start encoder stream encoder MPEG
> [26252.413497] cx18-0:  api: CX18_CREATE_TASK   cmd 0x40000001 args 
> 0x20020000
> [26252.413549] cx18-0:  api: CX18_CPU_SET_CHANNEL_TYPE  cmd 0x20020001 
> args 0x00000000 0x00000001
> [26252.413600] cx18-0:  api: CX18_CPU_SET_VER_CROP_LINE cmd 0x2002001b 
> args 0x00000000 0x00000000
> [26252.413652] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000003 0x00000001
> [26252.413709] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000008 0x00000000
> [26252.420032] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000004 0x00000001
> [26252.420094] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x0000000c
> [26252.420147] cx18-0:  api: CX18_CPU_SET_CAPTURE_LINE_NO       cmd 
> 0x20020017 args 0x00000000 0x00000138 0x00000139
> [26252.420209] cx18-0 843:  info: PLL regs = int: 15, frac: 2876158, post: 4
> [26252.420210] cx18-0 843:  info: PLL = 107.999999 MHz
> [26252.420212] cx18-0 843:  info: PLL/8 = 13.499999 MHz
> [26252.420213] cx18-0 843:  info: ADC Sampling freq = 14.317382 MHz
> [26252.420215] cx18-0 843:  info: Chroma sub-carrier freq = 3.579545 MHz
> [26252.420217] cx18-0 843:  info: hblank 122, hactive 720, vblank 26, 
> vactive 481, vblank656 38, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 
> 1, comb 0x66, sc 0x087c1f
> [26252.420315] cx18-0:  info: Setup VBI h: 0 lines 120012 bpl 272 fr 1 
> b0f0b0f0 a0e0a0e0
> [26252.420318] cx18-0:  api: CX18_CPU_SET_RAW_VBI_PARAM cmd 0x20020016 
> args 0x00000000 0x00120012 0x00000110 0x00000001 0xb0f0b0f0 0xa0e0a0e0
> [26252.720014] cx18-0:  api: CX18_CPU_SET_INDEXTABLE    cmd 0x20020010 
> args 0x00000000
> [26252.720077] cx18-0:  api: CX18_CPU_SET_VIDEO_IN      cmd 0x20020004 
> args 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
> [26252.720151] cx18-0:  api: CX18_CPU_SET_VIDEO_RESOLUTION      cmd 
> 0x20020006 args 0x00000000 0x000002d0 0x000001e0
> [26252.720217] cx18-0:  api: CX18_CPU_SET_STREAM_OUTPUT_TYPE    cmd 
> 0x20020012 args 0x00000000 0x0000000e
> [26252.720270] cx18-0:  api: CX18_CPU_SET_ASPECT_RATIO  cmd 0x2002001e 
> args 0x00000000 0x00000002
> [26252.720322] cx18-0:  api: CX18_CPU_SET_GOP_STRUCTURE cmd 0x2002001c 
> args 0x00000000 0x0000000f 0x00000003
> [26252.720374] cx18-0:  api: CX18_CPU_SET_AUDIO_PARAMETERS      cmd 
> 0x20020011 args 0x00000000 0x000000c9
> [26252.720440] cx18-0:  api: CX18_CPU_SET_AUDIO_MUTE    cmd 0x20020014 
> args 0x00000000 0x00000000
> [26252.720516] cx18-0:  api: CX18_CPU_SET_VIDEO_RATE    cmd 0x20020005 
> args 0x00000000 0x00000000 0x001e8480 0x0000222e 0x00000000
> [26252.720578] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000001 0x00000000 0x00000000
> [26252.720796] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000000 0x00000001 0x00000008
> [26252.720851] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000002 0x00000000 0x00000000
> [26252.720907] cx18-0:  api: CX18_CPU_SET_MEDIAN_CORING cmd 0x2002000e 
> args 0x00000000 0x00000000 0x000000ff 0x00000000 0x000000ff
> [26252.720968] cx18-0:  api: CX18_CPU_SET_SPATIAL_FILTER_TYPE   cmd 
> 0x2002000c args 0x00000000 0x00000001 0x00000001
> [26252.721024] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000001 0x00000000 0x00000000
> [26252.721078] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000000 0x00000001 0x00000008
> [26252.721132] cx18-0:  api: CX18_CPU_SET_FILTER_PARAM  cmd 0x20020009 
> args 0x00000000 0x00000002 0x00000000 0x00000000
> [26252.721188] cx18-0:  api: CX18_CPU_SET_SKIP_INPUT_FRAME      cmd 
> 0x2002001f args 0x00000000 0x00000000
> [26252.721237] cx18-0:  api: CX18_CPU_SET_VIDEO_MUTE    cmd 0x20020013 
> args 0x00000000 0x00808000
> [26252.721287] cx18-0:  api: CX18_CPU_SET_MISC_PARAMETERS       cmd 
> 0x20020015 args 0x00000000 0x00000007 0x00000000 0x00000000
> [26252.721345] cx18-0:  api: CX18_CPU_DE_SET_MDL_ACK    cmd 0x20040002 
> args 0x00000000 0x00dc0c40 0x00dc0c48
> [26252.725479] cx18-0:  api: CX18_CPU_CAPTURE_START     cmd 0x20020002 
> args 0x00000000
> [26461.273809] cx18-0:  info: close stopping capture
> [26461.273812] cx18-0:  info: Stop Capture
> [26461.273815] cx18-0:  api: CX18_CPU_CAPTURE_STOP      cmd 0x20020003 
> args 0x00000000 0x00000001
> [26461.572026] cx18-0:  api: CX18_CPU_DE_RELEASE_MDL    cmd 0x20040006 
> args 0x00000000
> [26461.872020] cx18-0:  api: CX18_DESTROY_TASK  cmd 0x40000002 args 
> 0x00000000


End of second capture.

Nothing really exciting or unusual.

Regards,
Andy


_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to