Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ivtv: devel

[ivtv-users] CX18 - Yuan card

 

 

ivtv devel RSS feed   Index | Next | Previous | View Threaded


awalls at radix

May 3, 2008, 2:15 PM

Post #1 of 4 (2531 views)
Permalink
[ivtv-users] CX18 - Yuan card

On Fri, 2008-05-02 at 16:51 +0100, Brian Hope wrote:
> I have upgraded to Ubuntu Hardy Heron and downloaded the latest drive
> (thanks for giving me the new location Sander). If I follow the steps
> on the wiki I get errors at the make menuconfig stage, but if I just
> make/make install/make unload/modprobe cx18 then all appears to go Ok
> but I just get the following in dmesg:
>
> [ 5654.047113] Linux video capture interface: v2.00
> [ 5654.064193] cx18: Start initialization, version 1.0.0
> [ 5654.064264] cx18-0: Initializing card #0
> [ 5654.064269] cx18-0: Autodetected Yuan MPC718 card
> [ 5654.064505] cx18-0: cx23418 revision 01010000 (B)
> [ 5654.213446] cx18-0: Not yet supported!
> [ 5654.214014] cx18-0: Error -19 on initialization
> [ 5654.214043] cx18-1: Initializing card #1
> [ 5654.214047] cx18-1: Autodetected Yuan MPC718 card
> [ 5654.214183] cx18-1: cx23418 revision 01010000 (B)
> [ 5654.375028] cx18-1: Not yet supported!
> [ 5654.375584] cx18-1: Error -19 on initialization
> [ 5654.375611] cx18: End initialization
>
>
> How do I force the module to initialise so that I can continue
> testing? Previously Hans added the autodetection and suggested I tried
> various video inputs, but I have been unable to start testing as I
> have been away on holiday.

I'm looking at this based on Hans initial work and what the *.inf file
for Vista has in it.

Right now, until the cards entry for the MPC718 in cx18-cards.c has a
capability other than "0", the driver will not be usable.

I've started fixing up the cards entry. Here's what I've got so far:

-------------
static const struct cx18_card cx18_card_mpc718 = {
.type = CX18_CARD_YUAN_MPC718,
.name = "Yuan MPC718",
.comment = "Experimental support!\n",
.v4l2_capabilities = CX18_CAP_ENCODER,
.hw_audio_ctrl = CX18_HW_CX23418,
.hw_all = CX18_HW_TUNER,
.video_inputs = {
{ CX18_CARD_INPUT_VID_TUNER, 0, CX23418_COMPOSITE2 },
{ CX18_CARD_INPUT_SVIDEO1, 1,
CX23418_SVIDEO_LUMA3 | CX23418_SVIDEO_CHROMA4},
{ CX18_CARD_INPUT_COMPOSITE1, 1, CX23418_COMPOSITE1 },
#if 0
/* The Windows *.inf file says S-Video 2 uses 7 & 8 */
/* This combination should be illegal, I think */
{ CX18_CARD_INPUT_SVIDEO2, 2,
CX23418_SVIDEO_LUMA7 | CX23418_SVIDEO_CHROMA8},
#endif
{ CX18_CARD_INPUT_COMPOSITE2, 2, CX23418_COMPOSITE6 },
},
.audio_inputs = {
{ CX18_CARD_INPUT_AUD_TUNER, CX23418_AUDIO5, 0 },
{ CX18_CARD_INPUT_LINE_IN1, CX23418_AUDIO_SERIAL, 0 },
/* Guess */
{ CX18_CARD_INPUT_LINE_IN2, CX23418_AUDIO_SERIAL, 0 },
},
.radio_input = { CX18_CARD_INPUT_AUD_TUNER, CX23418_AUDIO_SERIAL, 0 },
.tuners = {
/* XC3028 tuner */
{ .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 },
},
/* tuner reset */
.gpio_init = { .direction = 0x1000, .initial_value = 0x1000 },
/*
* TODO: From the Windows *.inf file it looks like gpio is also used
* for audio routing/control. Need to port GPIO audio from ivtv
*/
.ddr = {
/* Probably Samsung K4D263238G-VC33 memory */
.chip_config = 0x003,
.refresh = 0x30c,
.timing1 = 0x23230b73,
.timing2 = 0x08,
.tune_lane = 0,
.initial_emrs = 2,
},
.pci_list = cx18_pci_mpc718,
.i2c = &cx18_i2c_std,
};

---------

The MPC718's video and audio input look like they're routed to the
cx23418's internal cx25843 core, the same way the MPC622's video and
audio inputs are routed to the external cx25843 by the ivtv driver.

Major tasks to do before the cx18 driver will be useful for the Yuan
MPC718 for analog video::

1. Get the cx18 driver to load xc3028 tuner firmware and setup a xc3028
tuner. (Maybe I can learn from what the cx88 driver does, especially
since the MPC788 may have some things in common with the MPC718.)

2. Figure out/guess/verify the proper GPIO settings for
reseting/controlling the tuner.

3. Figure out/guess the GPIO settings for routing/enabling audio and
port the gpio audio stuff over from ivtv.

4. Other stuff that's bound to pop up.

What you have the best shot of working right now is analog encoding of
Composite 1, Composite 2, or S-Video 1 without sound.

If you feel compelled to test something that you know is not going to be
fully operational, the modified cards entry I gave above, may let you
test Composite 1 or 2 or S-Video 1 without sound.


> Please reply to brian [at] hopefamily

Regards,
Andy


_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


awalls at radix

May 16, 2008, 12:34 PM

Post #2 of 4 (2289 views)
Permalink
Re: [ivtv-users] CX18 - Yuan card [In reply to]

On Mon, 2008-05-05 at 08:51 +0100, Brian Hope wrote:
> Andy,
> I got as far as compliing etc before I need to go out today. This is the output from dmesg after modprobe cx18 debug=511
> Brian
>
> [ 2694.002950] cx18: Start initialization, version 1.0.0
> [ 2694.002999] cx18-0: Initializing card #0
> [ 2694.003002] cx18-0: Autodetected Yuan MPC718 card
> [ 2694.003004] cx18-0 info: base addr: 0xd4000000
> [ 2694.003006] cx18-0 info: Enabling pci device
> [ 2694.003087] cx18-0 info: cx23418 (rev 0) at 03:00.0, irq: 21, latency: 64, memory: 0xd4000000
> [ 2694.003090] cx18-0 info: attempting ioremap at 0xd4000000 len 0x04000000
> [ 2694.003225] cx18-0: cx23418 revision 01010000 (B)
> [ 2694.139893] cx18-0 info: GPIO initial dir: 0000efff out: 00001000
> [ 2694.139902] cx18-0 info: activating i2c...
> [ 2694.139904] cx18-0 i2c: i2c init
> [ 2694.162276] cx18-0 info: Active card count: 1.
> [ 2694.162281] cx18-0: Experimental support!
> [ 2694.243752] cx18-0 info: Loaded module tuner
> [ 2694.243757] cx18-0 i2c: i2c client register
> [ 2694.245764] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
> [ 2694.245774] cx18-0 info: Allocate encoder MPEG stream: 63 x 32768 buffers (2016kB total)
> [ 2694.245814] cx18-0 info: Allocate TS stream: 32 x 32768 buffers (1024kB total)
> [ 2694.245838] cx18-0 info: Allocate encoder YUV stream: 16 x 131072 buffers (2048kB total)
> [ 2694.245856] cx18-0 info: Allocate encoder PCM audio stream: 63 x 16384 buffers (1008kB total)
> [ 2694.245888] cx18-0: Disabled encoder IDX device
> [ 2694.245918] cx18-0: Registered device video0 for encoder MPEG (2 MB)
> [ 2694.245958] cx18-0: Registered device video32 for encoder YUV (2 MB)
> [ 2694.245977] cx18-0: Registered device video24 for encoder PCM audio (1 MB)
> [ 2694.245995] cx18-0: Registered device radio0 for encoder radio
> [ 2694.272361] xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
> [ 2694.272371] cx18-0 info: cmd 4008645c triggered fw load

All of the above looks OK.


> [ 2694.272388] sysfs: duplicate filename '0000:03:00.0' can not be created
> [ 2694.272391] WARNING: at /build/buildd/linux-2.6.24/fs/sysfs/dir.c:424 sysfs_add_one()
> [ 2694.272396] Pid: 30735, comm: modprobe Not tainted 2.6.24-16-generic #1
> [ 2694.272461] [<c01d29af>] sysfs_add_one+0x9f/0xe0
> [ 2694.272499] [<c01d2ee8>] create_dir+0x48/0x90
> [ 2694.272527] [<c01d2f59>] sysfs_create_dir+0x29/0x50
> [ 2694.272534] [<c021098f>] kobject_get+0xf/0x20
> [ 2694.272542] [<c0210e53>] kobject_add+0x93/0x1b0
> [ 2694.272557] [<c0210d91>] kobject_set_name+0x81/0xb0
> [ 2694.272577] [<c027b917>] device_add+0xa7/0x510
> [ 2694.272597] [<c0210b29>] kobject_init+0x29/0x40
> [ 2694.272609] [<c0282a14>] _request_firmware+0x164/0x310
> [ 2694.272637] [<c0282c5f>] request_firmware+0xf/0x20
> [ 2694.272643] [<f0f27f75>] cx18_av_loadfw+0x25/0x240 [cx18]
> [ 2694.272669] [<f0eb9c1f>] xc2028_attach+0x17f/0x220 [tuner_xc2028]
> [ 2694.272690] [<f0f264ac>] cx18_av_initialize+0xc/0x1e0 [cx18]
> [ 2694.272712] [<f0f26762>] cx18_av_cmd+0xe2/0x1150 [cx18]
> [ 2694.272749] [<f0f1fd00>] cx18_reset_tuner_gpio+0x0/0x30 [cx18]
> [ 2694.272771] [<f0eb2a97>] tuner_command+0x7d7/0x13a0 [tuner]
> [ 2694.272780] [<c01d2c6b>] sysfs_addrm_finish+0x4b/0x1c0
> [ 2694.272789] [<f0f1fd00>] cx18_reset_tuner_gpio+0x0/0x30 [cx18]
> [ 2694.272818] [<c012ce7b>] printk+0x1b/0x20
> [ 2694.272824] [<c0316518>] mutex_lock+0x8/0x20
> [ 2694.272840] [<f0a91dfa>] i2c_clients_command+0x1a/0xb0 [i2c_core]
> [ 2694.272858] [<f0f1ed72>] cx18_call_i2c_clients+0x32/0x90 [cx18]
> [ 2694.272952] [<f0f1e594>] cx18_probe+0x1154/0x11d0 [cx18]
> [ 2694.273004] [<c01d2c6b>] sysfs_addrm_finish+0x4b/0x1c0
> [ 2694.273008] [<f0f1fd00>] cx18_reset_tuner_gpio+0x0/0x30 [cx18]
> [ 2694.273017] [<c01d2954>] sysfs_add_one+0x44/0xe0
> [ 2694.273031] [<c01d2a5d>] sysfs_addrm_start+0x6d/0xb0
> [ 2694.273041] [<c01d37a3>] sysfs_create_link+0x93/0x110
> [ 2694.273060] [<c0222696>] pci_device_probe+0x56/0x80
> [ 2694.273075] [<c027d988>] driver_probe_device+0x88/0x190
> [ 2694.273079] [<c02113f0>] kobject_uevent_env+0xf0/0x3d0
> [ 2694.273100] [<c027dbfe>] __driver_attach+0x9e/0xa0
> [ 2694.273112] [<c027cdbb>] bus_for_each_dev+0x3b/0x60
> [ 2694.273128] [<c027d806>] driver_attach+0x16/0x20
> [ 2694.273133] [<c027db60>] __driver_attach+0x0/0xa0
> [ 2694.273136] [<c027d13a>] bus_add_driver+0x8a/0x1e0
> [ 2694.273152] [<c0222846>] __pci_register_driver+0x56/0x90
> [ 2694.273160] [<f0f1d16f>] module_start+0x4f/0xb0 [cx18]
> [ 2694.273179] [<c01506b6>] sys_init_module+0x126/0x19c0
> [ 2694.273243] [<c0132710>] __request_region+0x0/0x80
> [ 2694.273262] [<c01043c2>] sysenter_past_esp+0x6b/0xa9
> [ 2694.273289] =======================
> [ 2694.273296] kobject_add failed for 0000:03:00.0 with -EEXIST, don't try to register things with the same name in the same directory.
> [ 2694.273303] Pid: 30735, comm: modprobe Not tainted 2.6.24-16-generic #1
> [ 2694.273309] [<c0210ed3>] kobject_add+0x113/0x1b0
> [ 2694.273319] [<c0210d91>] kobject_set_name+0x81/0xb0
> [ 2694.273332] [<c027b917>] device_add+0xa7/0x510
> [ 2694.273343] [<c0210b29>] kobject_init+0x29/0x40
> [ 2694.273352] [<c0282a14>] _request_firmware+0x164/0x310
> [ 2694.273366] [<c0282c5f>] request_firmware+0xf/0x20
> [ 2694.273371] [<f0f27f75>] cx18_av_loadfw+0x25/0x240 [cx18]
> [ 2694.273387] [<f0eb9c1f>] xc2028_attach+0x17f/0x220 [tuner_xc2028]
> [ 2694.273404] [<f0f264ac>] cx18_av_initialize+0xc/0x1e0 [cx18]
> [ 2694.273418] [<f0f26762>] cx18_av_cmd+0xe2/0x1150 [cx18]
> [ 2694.273442] [<f0f1fd00>] cx18_reset_tuner_gpio+0x0/0x30 [cx18]
> [ 2694.273458] [<f0eb2a97>] tuner_command+0x7d7/0x13a0 [tuner]
> [ 2694.273463] [<c01d2c6b>] sysfs_addrm_finish+0x4b/0x1c0
> [ 2694.273467] [<f0f1fd00>] cx18_reset_tuner_gpio+0x0/0x30 [cx18]
> [ 2694.273482] [<c012ce7b>] <6>cx18-0 info: load segment a00000-a07fff
> [ 2694.273486] printk+0x1b/0x20
> [ 2694.273488] [<c0316518>] mutex_lock+0x8/0x20
> [ 2694.273496] [<f0a91dfa>] i2c_clients_command+0x1a/0xb0 [i2c_core]
> [ 2694.273510] [<f0f1ed72>] cx18_call_i2c_clients+0x32/0x90 [cx18]
> [ 2694.273524] [<f0f1e594>] cx18_probe+0x1154/0x11d0 [cx18]
> [ 2694.273551] [<c01d2c6b>] sysfs_addrm_finish+0x4b/0x1c0
> [ 2694.273555] [<f0f1fd00>] cx18_reset_tuner_gpio+0x0/0x30 [cx18]
> [ 2694.273563] [<c01d2954>] sysfs_add_one+0x44/0xe0
> [ 2694.273572] [<c01d2a5d>] sysfs_addrm_start+0x6d/0xb0
> [ 2694.273580] [<c01d37a3>] sysfs_create_link+0x93/0x110
> [ 2694.273595] [<c0222696>] pci_device_probe+0x56/0x80
> [ 2694.273603] [<c027d988>] driver_probe_device+0x88/0x190
> [ 2694.273606] [<c02113f0>] kobject_uevent_env+0xf0/0x3d0
> [ 2694.273618] [<c027dbfe>] __driver_attach+0x9e/0xa0
> [ 2694.273625] [<c027cdbb>] bus_for_each_dev+0x3b/0x60
> [ 2694.273636] [<c027d806>] driver_attach+0x16/0x20
> [ 2694.273639] [<c027db60>] __driver_attach+0x0/0xa0
> [ 2694.273642] [<c027d13a>] bus_add_driver+0x8a/0x1e0
> [ 2694.273653] [<c0222846>] __pci_register_driver+0x56/0x90
> [ 2694.273662] [<f0f1d16f>] module_start+0x4f/0xb0 [cx18]
> [ 2694.273674] [<c01506b6>] sys_init_module+0x126/0x19c0
> [ 2694.273721] [<c0132710>] __request_region+0x0/0x80
> [ 2694.273738] [<c01043c2>] sysenter_past_esp+0x6b/0xa9
> [ 2694.273758] =======================
> [ 2694.273760] fw_register_device: device_register failed
> [ 2694.273764] cx18-0: unable to open firmware v4l-cx23418-dig.fw

The automatic audio standard detection firmware for the cx25843 digitzer
core inside the cx23418 couldn't be loaded. This shouldn't matter for
now to test Composite video and baseband audio.

I not sure why a /sysfs/devices/pci0000:00/0000:03:00.0 dirent existed
already at this point nor why firmware load would try to create one, if
it needed one and one already existed. Possible race condition to hunt
down....


> [ 2694.274566] cx18-0: Initialized card #0: Yuan MPC718

> [ 2694.274593] cx18-1: Initializing card #1
> [ 2694.274597] cx18-1: Autodetected Yuan MPC718 card
> [ 2694.274599] cx18-1 info: base addr: 0xd8000000
> [ 2694.274601] cx18-1 info: Enabling pci device
> [ 2694.274628] cx18-1 info: cx23418 (rev 0) at 03:01.0, irq: 22, latency: 64, memory: 0xd8000000
> [ 2694.274630] cx18-1 info: attempting ioremap at 0xd8000000 len 0x04000000
> [ 2694.274761] cx18-1: cx23418 revision 01010000 (B)

> [ 2694.287928] cx18-0 info: load segment ae0000-ae00ff
> [ 2694.288042] cx18-0 info: load segment b00000-b1a65f
> [ 2694.335051] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)

> [ 2694.376342] cx18-1 info: GPIO initial dir: 0000efff out: 00001000
> [ 2694.376353] cx18-1 info: activating i2c...
> [ 2694.376355] cx18-1 i2c: i2c init
> [ 2694.397476] cx18-1 info: Active card count: 2.
> [ 2694.397480] cx18-1: Experimental support!

> [ 2694.418074] cx18-0: loaded v4l-cx23418-cpu.fw firmware (174716 bytes)
> [ 2694.423573] cx180 irq: SW1: 10000 SW2: 0 HW2: 0
> [ 2694.423703] cx18-0 info: 1 MiniMe Encoder Firmware 0.0.71.0 (Release 2006/12/29)
> [ 2694.423707] cx18-0: FW version: 0.0.71.0 (Release 2006/12/29)

> [ 2694.479826] cx18-1 info: Loaded module tuner
> [ 2694.479834] cx18-1 i2c: i2c client register
> [ 2694.481374] tuner 3-0061: chip found @ 0xc2 (cx18 i2c driver #1-1)
> [ 2694.481387] cx18-1 info: Allocate encoder MPEG stream: 63 x 32768 buffers (2016kB total)
> [ 2694.481450] cx18-1 info: Allocate TS stream: 32 x 32768 buffers (1024kB total)
> [ 2694.481493] cx18-1 info: Allocate encoder YUV stream: 16 x 131072 buffers (2048kB total)
> [ 2694.481536] cx18-1 info: Allocate encoder PCM audio stream: 63 x 16384 buffers (1008kB total)
> [ 2694.481586] cx18-1: Disabled encoder IDX device

> [ 2694.636847] cx18-0 info: load segment a00000-a07fff
> [ 2694.651533] cx18-0 info: load segment ae0000-ae00ff
> [ 2694.651654] cx18-0 info: load segment b00000-b1a65f
> [ 2694.786233] cx180 irq: SW1: 10000 SW2: 0 HW2: 0
> [ 2694.786366] cx18-0 info: 1 MiniMe Encoder Firmware 0.0.71.0 (Release 2006/12/29)
> [ 2694.987833] cx18-0 info: Changing input from 1 to 0
> [ 2694.987841] cx18-0 info: Mute
> [ 2694.987845] cx18-0 info: decoder set video input 2, audio input 8
> [ 2694.987900] cx18-0 info: decoder set video input 2, audio input 5
> [ 2694.987953] cx18-0 info: Unmute
> [ 2694.987956] cx18-0 info: Switching standard to 1000.
> [ 2694.987960] cx18-0 info: changing video std to fmt 1
> [ 2694.987976] cx18-0 info: PLL regs = int: 15, frac: 2876158, post: 4
> [ 2694.987980] cx18-0 info: PLL = 0.000011 MHz
> [ 2694.987983] cx18-0 info: PLL/8 = 0.000001 MHz
> [ 2694.987986] cx18-0 info: ADC Sampling freq = 0.000001 MHz
> [ 2694.987990] cx18-0 info: Chroma sub-carrier freq = 0.000000 MHz
> [ 2694.987996] cx18-0 info: hblank 122, hactive 720, vblank 26 , vactive 487, vblank656 26, src_dec 543,burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f

That section of card 0 and card 1 initialization looked OK.


> [ 2694.991153] xc2028 1-0061: Loading 48 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
> [ 2694.991261] cx18--279773184 info: Resetting tuner
> [ 2694.991266] xc2028 1-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2694.991273] cx18--279773184 info: Resetting tuner
> [ 2694.992435] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2694.992466] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2694.992470] xc2028 1-0061: -14 returned from send
> [ 2694.992473] xc2028 1-0061: Error -22 while loading base firmware
> [ 2695.043740] cx18--279773184 info: Resetting tuner
> [ 2695.043748] xc2028 1-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.043757] cx18--279773184 info: Resetting tuner
> [ 2695.044921] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2695.044950] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.044954] xc2028 1-0061: -14 returned from send
> [ 2695.044958] xc2028 1-0061: Error -22 while loading base firmware
> [ 2695.044965] cx18-0 info: Mute
> [ 2695.044968] cx18-0 info: v4l2 ioctl: set frequency 1076
> [ 2695.044997] cx18--279773184 info: Resetting tuner
> [ 2695.045001] xc2028 1-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.045006] cx18--279773184 info: Resetting tuner
> [ 2695.046163] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2695.046192] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.046196] xc2028 1-0061: -14 returned from send
> [ 2695.046199] xc2028 1-0061: Error -22 while loading base firmware
> [ 2695.100667] cx18--279773184 info: Resetting tuner
> [ 2695.100673] xc2028 1-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.100680] cx18--279773184 info: Resetting tuner
> [ 2695.101838] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2695.101868] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.101872] xc2028 1-0061: -14 returned from send
> [ 2695.101875] xc2028 1-0061: Error -22 while loading base firmware

Ack! card 0 tuner firmware load didn't happen, but you wouldn't think it
was card cx18-0 given the "cx18--279773184"!

It looks like cx18_reset_tuner_gpio() is being passed a bad callback
pointer as the code to fetch cx->num from the callback pointer is
correct. In this function, we don't actually have the real data we need
to work with. We won't be able to reset the xc3028 tuner chip until
this is resolved.

That would also imply that the tuner-xc2028 driver has stored away the
wrong data or corrupted the callback data we gave it to store.


We'll probably need to set options for the tuner.ko and tuner-xc2028.ko
modules in /etc/modules.conf for some more verbose debugging. Something
like:

options tuner debug=1
options tuner-xc2028 debug=1

It could be that cx18 is making initialization calls for the tuner
improperly, but from an hour or so look at it, it looks like cx18 is
doing that right as well.

Also, the bad callback data being passed to cx18 may be simply due to
using older (wrong) tuner*.ko modules. Can you do a

$ find /lib/modules -name "tuner*" -print

and see if you have two versions of tuner.ko or tuner-xc2028.ko under
the kernel version you are using? The modules under "common" are the
more recent due to recent changes in the latest v4l-dvb. Any duplicate
modules under "video" are older and can be deleted (or backed-up out of
the way) if there is a corresponding one under "common".



> [ 2695.101879] cx18-0 info: Unmute
> [ 2695.101883] cx18-0 file: open encoder MPEG
> [ 2695.101906] cx180 ioctl: VIDIOC_QUERYCAP

> <6>cx18-1: Registered device video1 for encoder MPEG (2 MB)
> [ 2695.101985] cx18-1: Registered device video33 for encoder YUV (2 MB)
> [ 2695.102018] cx18-1: Registered device video25 for encoder PCM audio (1 MB)
> [ 2695.102050] cx18-1: Registered device radio1 for encoder radio
> [ 2695.102420] xc2028 3-0061: type set to XCeive xc2028/xc3028 tuner
> [ 2695.102426] cx18-1 info: cmd 4008645c triggered fw load

> [ 2695.103486] cx180 ioctl: VIDIOC_QUERYCAP<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUM_FMT<6>cx180 ioctl: VIDIOC_TRY_FMT<6>cx18-0 ioctl: close() of encoder MPEG
> [ 2695.148660] cx18-0 file: open encoder YUV
> [ 2695.148672] cx180 ioctl: VIDIOC_QUERYCAP<6>cx180 ioctl: VIDIOC_QUERYCAP<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUM_FMT<6>cx180 ioctl: VIDIOC_TRY_FMT<6>cx18-0 ioctl: close() of encoder YUV

> [ 2695.156176] cx18-1: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
> [ 2695.167897] cx18-1 info: load segment a00000-a07fff
> [ 2695.182790] cx18-1 info: load segment ae0000-ae00ff
> [ 2695.182912] cx18-1 info: load segment b00000-b1a65f

> [ 2695.203513] cx18-0 file: open encoder PCM audio
> [ 2695.204102] cx180 ioctl: VIDIOC_QUERYCAP<6>cx180 ioctl: VIDIOC_QUERYCAP<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUM_FMT<6>cx180 ioctl: VIDIOC_TRY_FMT<6>cx18-0 ioctl: close() of encoder PCM audio

> [ 2695.232202] cx18-1: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)

> [ 2695.245790] cx18-0 file: open encoder radio
> [ 2695.245797] cx18-0 info: Mute
> [ 2695.245804] cx18--279773184 info: Resetting tuner
> [ 2695.245808] xc2028 1-0061: Loading firmware for type=BASE FM (401), id 0000000000000000.
> [ 2695.245813] cx18--279773184 info: Resetting tuner
> [ 2695.247365] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2695.247400] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.247402] xc2028 1-0061: -14 returned from send
> [ 2695.247404] xc2028 1-0061: Error -22 while loading base firmware
> [ 2695.300351] cx18--279773184 info: Resetting tuner
> [ 2695.300358] xc2028 1-0061: Loading firmware for type=BASE FM (401), id 0000000000000000.
> [ 2695.300363] cx18--279773184 info: Resetting tuner
> [ 2695.301914] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2695.301948] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.301951] xc2028 1-0061: -14 returned from send
> [ 2695.301953] xc2028 1-0061: Error -22 while loading base firmware
> [ 2695.301959] cx18-0 info: decoder set video input 2, audio input 0
> [ 2695.302043] cx18-0 info: Unmute
> [ 2695.302059] cx180 ioctl: VIDIOC_QUERYCAP<6>cx180 ioctl: VIDIOC_QUERYCAP<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUMINPUT<6>cx180 ioctl: VIDIOC_ENUM_FMT<6>cx180 ioctl: VIDIOC_TRY_FMT<6>cx18-0 ioctl: close() of encoder radio
> [ 2695.308427] cx18-0 info: Mute
> [ 2695.308430] cx18-0 info: changing video std to fmt 1
> [ 2695.308452] cx18-0 info: PLL regs = int: 15, frac: 2876158, post: 4
> [ 2695.308454] cx18-0 info: PLL = 0.000011 MHz
> [ 2695.308456] cx18-0 info: PLL/8 = 0.000001 MHz
> [ 2695.308458] cx18-0 info: ADC Sampling freq = 0.000001 MHz
> [ 2695.308460] cx18-0 info: Chroma sub-carrier freq = 0.000000 MHz
> [ 2695.308463] cx18-0 info: hblank 122, hactive 720, vblank 26 , vactive 487, vblank656 26, src_dec 543,burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
> [ 2695.308546] cx18--279773184 info: Resetting tuner
> [ 2695.308549] xc2028 1-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.308553] cx18--279773184 info: Resetting tuner
> [ 2695.310097] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2695.310131] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.310133] xc2028 1-0061: -14 returned from send
> [ 2695.310135] xc2028 1-0061: Error -22 while loading base firmware

Same problem about bad callback data being passed back to the cx18
driver on a call back from the tuner drivers.


> [ 2695.317000] cx18-1: loaded v4l-cx23418-cpu.fw firmware (174716 bytes)
> [ 2695.322518] cx181 irq: SW1: 10000 SW2: 0 HW2: 0
> [ 2695.322649] cx18-1 info: 1 MiniMe Encoder Firmware 0.0.71.0 (Release 2006/12/29)
> [ 2695.322653] cx18-1: FW version: 0.0.71.0 (Release 2006/12/29)

> [ 2695.363260] cx18--279773184 info: Resetting tuner
> [ 2695.363267] xc2028 1-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.363275] cx18--279773184 info: Resetting tuner
> [ 2695.364436] i2c-adapter i2c-1: sendbytes: error - bailout.
> [ 2695.364465] xc2028 1-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.364470] xc2028 1-0061: -14 returned from send
> [ 2695.364473] xc2028 1-0061: Error -22 while loading base firmware

Same problem about bad callback data being passed back to the cx18
driver on a call back from the tuner drivers.



> [ 2695.364479] cx18-0 info: decoder set video input 2, audio input 5
> [ 2695.364535] cx18-0 info: Unmute

> [ 2695.395079] cx18-1 file: open encoder MPEG
> [ 2695.395756] cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUM_FMT<6>cx181 ioctl: VIDIOC_TRY_FMT<6>cx18-1 ioctl: close() of encoder MPEG
> [ 2695.425686] cx18-1 file: open encoder YUV
> [ 2695.426057] cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUM_FMT<6>cx181 ioctl: VIDIOC_TRY_FMT<6>cx18-1 ioctl: close() of encoder YUV
> [ 2695.448168] cx18-1 file: open encoder PCM audio
> [ 2695.448177] cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUM_FMT<6>cx181 ioctl: VIDIOC_TRY_FMT<6>cx18-1 ioctl: close() of encoder PCM audio
> [ 2695.466828] cx18-1 file: open encoder radio
> [ 2695.466834] cx18-1 info: Mute
> [ 2695.469722] xc2028 3-0061: Loading 48 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
> [ 2695.469815] cx18--1002536960 info: Resetting tuner
> [ 2695.469819] xc2028 3-0061: Loading firmware for type=BASE FM (401), id 0000000000000000.
> [ 2695.469824] cx18--1002536960 info: Resetting tuner
> [ 2695.470974] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2695.471002] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.471004] xc2028 3-0061: -14 returned from send
> [ 2695.471007] xc2028 3-0061: Error -22 while loading base firmware
> [ 2695.523104] cx18--1002536960 info: Resetting tuner
> [ 2695.523114] xc2028 3-0061: Loading firmware for type=BASE FM (401), id 0000000000000000.
> [ 2695.523123] cx18--1002536960 info: Resetting tuner
> [ 2695.524275] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2695.524302] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.524305] xc2028 3-0061: -14 returned from send
> [ 2695.524307] xc2028 3-0061: Error -22 while loading base firmware
> [ 2695.524461] cx18-1 info: decoder set video input 7, audio input 0
> [ 2695.524503] cx18-1 info: Unmute
> [ 2695.524517] cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_QUERYCAP<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUMINPUT<6>cx181 ioctl: VIDIOC_ENUM_FMT<6>cx181 ioctl: VIDIOC_TRY_FMT<6>cx18-1 ioctl: close() of encoder radio
> [ 2695.525912] cx18-1 info: Mute
> [ 2695.525915] cx18-1 info: changing video std to fmt 1
> [ 2695.525930] cx18-1 info: PLL regs = int: 15, frac: 2876158, post: 4
> [ 2695.525933] cx18-1 info: PLL = 0.000011 MHz
> [ 2695.525934] cx18-1 info: PLL/8 = 0.000001 MHz
> [ 2695.525936] cx18-1 info: ADC Sampling freq = 0.000001 MHz
> [ 2695.525939] cx18-1 info: Chroma sub-carrier freq = 0.000000 MHz
> [ 2695.525942] cx18-1 info: hblank 122, hactive 720, vblank 26 , vactive 487, vblank656 26, src_dec 543,burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
> [ 2695.525991] cx18--1002536960 info: Resetting tuner
> [ 2695.525994] xc2028 3-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.525998] cx18--1002536960 info: Resetting tuner
> [ 2695.527130] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2695.527157] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.527159] xc2028 3-0061: -14 returned from send
> [ 2695.527161] xc2028 3-0061: Error -22 while loading base firmware
> [ 2695.538019] cx18-1 info: load segment a00000-a07fff
> [ 2695.552340] cx18-1 info: load segment ae0000-ae00ff
> [ 2695.552458] cx18-1 info: load segment b00000-b1a65f
> [ 2695.582966] cx18--1002536960 info: Resetting tuner
> [ 2695.582974] xc2028 3-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.582981] cx18--1002536960 info: Resetting tuner
> [ 2695.584573] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2695.584611] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.584615] xc2028 3-0061: -14 returned from send
> [ 2695.584619] xc2028 3-0061: Error -22 while loading base firmware
> [ 2695.584627] cx18-1 info: decoder set video input 7, audio input 5
> [ 2695.584729] cx18-1 info: Unmute
> [ 2695.691399] cx181 irq: SW1: 10000 SW2: 0 HW2: 0
> [ 2695.691540] cx18-1 info: 1 MiniMe Encoder Firmware 0.0.71.0 (Release 2006/12/29)
> [ 2695.894466] cx18-1 info: Changing input from 1 to 0
> [ 2695.894474] cx18-1 info: Mute
> [ 2695.894478] cx18-1 info: decoder set video input 2, audio input 5
> [ 2695.894536] cx18-1 info: decoder set video input 2, audio input 5
> [ 2695.894592] cx18-1 info: Unmute
> [ 2695.894595] cx18-1 info: Switching standard to 1000.
> [ 2695.894605] cx18--1002536960 info: Resetting tuner
> [ 2695.894610] xc2028 3-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.894618] cx18--1002536960 info: Resetting tuner
> [ 2695.895789] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2695.895822] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.895826] xc2028 3-0061: -14 returned from send
> [ 2695.895830] xc2028 3-0061: Error -22 while loading base firmware
> [ 2695.950380] cx18--1002536960 info: Resetting tuner
> [ 2695.950386] xc2028 3-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.950392] cx18--1002536960 info: Resetting tuner
> [ 2695.951555] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2695.951584] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.951587] xc2028 3-0061: -14 returned from send
> [ 2695.951591] xc2028 3-0061: Error -22 while loading base firmware
> [ 2695.951596] cx18-1 info: Mute
> [ 2695.951600] cx18-1 info: v4l2 ioctl: set frequency 1076
> [ 2695.951627] cx18--1002536960 info: Resetting tuner
> [ 2695.951630] xc2028 3-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2695.951637] cx18--1002536960 info: Resetting tuner
> [ 2695.952794] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2695.952823] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2695.952827] xc2028 3-0061: -14 returned from send
> [ 2695.952830] xc2028 3-0061: Error -22 while loading base firmware
> [ 2696.006300] cx18--1002536960 info: Resetting tuner
> [ 2696.006305] xc2028 3-0061: Loading firmware for type=BASE (1), id 0000000000000000.
> [ 2696.006313] cx18--1002536960 info: Resetting tuner
> [ 2696.007471] i2c-adapter i2c-3: sendbytes: error - bailout.
> [ 2696.007499] xc2028 3-0061: i2c output error: rc = -14 (should be 64)
> [ 2696.007504] xc2028 3-0061: -14 returned from send
> [ 2696.007507] xc2028 3-0061: Error -22 while loading base firmware

Same problem about bad callback data being passed back to the cx18
driver on a call back from the tuner drivers.

But this time for card "cx18-1" or alternatively card
"cx18--1002536960", however you prefer to refer to the second card in
your machine. ;)


> [ 2696.007511] cx18-1 info: Unmute
> [ 2696.007515] cx18-1: Initialized card #1: Yuan MPC718

> [ 2696.007551] cx18: End initialization



OK. You should be able to test analog Composite video/basedband audio
and Svideo/baseband audio. Especially on card 1 (e.g. /dev/video1) and
probably on card 0 (e.g. /dev/video0), although since the cx25843 audio
firmware messed up on card 0 it may not work so well. Analog RF
reception isn't going to happen until the bad callback data being passed
from the tuner-xc2028.ko module is resolved.

Please see Hans instructive post on getting a new card up and working:

http://ivtvdriver.org/pipermail/ivtv-devel/2008-May/005543.html

and let us know how things go.


-Andy



_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


hverkuil at xs4all

May 16, 2008, 12:58 PM

Post #3 of 4 (2289 views)
Permalink
Re: [ivtv-users] CX18 - Yuan card [In reply to]

On Friday 16 May 2008 21:34, Andy Walls wrote:
...
> It looks like cx18_reset_tuner_gpio() is being passed a bad callback
> pointer as the code to fetch cx->num from the callback pointer is
> correct. In this function, we don't actually have the real data we
> need to work with. We won't be able to reset the xc3028 tuner chip
> until this is resolved.
>
> That would also imply that the tuner-xc2028 driver has stored away
> the wrong data or corrupted the callback data we gave it to store.

Just to pitch in: last Tuesday my cx18 xceive tuner code was merged in
the v4l-dvb tree, so I know that in that tree this tuner works well
(analog only). The xceive_pin field in the card definition of
cx18-cards.c probably needs adjusting for the xceive firmware load to
work, though. The full range is 0-31, but I would test the range 8-15
first. Basically a matter of 'rmmod cx18', edit/make/install
cx18, 'modprobe cx18' and check if the fw is now loaded correctly.

Regards,

Hans

_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


awalls at radix

May 18, 2008, 1:19 PM

Post #4 of 4 (2267 views)
Permalink
Re: [ivtv-users] CX18 - Yuan card [In reply to]

On Sun, 2008-05-18 at 17:41 +0100, Brian Hope wrote:
> Andy,
> Is there a guide to testing somewhere? I will continue googling
> but thought you might know.

I've copied the devel list, so that google can help those that follow
you. Maybe there's one one the wiki at ivtvdriver.org, I don't know.


> I have tried setting using v42l-ctl -i1 as per Hans note.

v4l2-ctl defaults to /dev/video0 if a device is not specified. See

$ v4l2-ctl --help

Sp you'll want to try:

$ v4l2-ctl -d /dev/video1 -i1 <--- Sets input #1
$ v4l2-ctl -d /dev/video1 -I <--- Reads back current input setting
$ cat /dev/video1 > test.mpg <--- Does a capture
$ file test.mpg <--- Tells you if you got an mpeg file
$ mplayer test.mpg <--- Plays it back



> (I did try setting up mythtv but its not always talking cleaning to
> mysqsl - another problem for me to fix[I can do that myself])

Keep MythTV out of the loop. For testing we generally want to eliminate
variables and unknowns, and only change one parameter at a time. MythTV
often makes that impossible. ;)


> When I tried cat /dev/video1 >test.mpg and then played back the file I
> see a recording from the TV tuner and not what I was pushing in to the
> S-Video input from a camera.

Well, then the tuner works? :)


> If I try cat /dev/video1 | mplayer - then I seem to get mplayer errors
> (see below if you can help - ignore and leave to me if this is not
> your area of expertise).

See my comments below.


> I am aware I haven't set up my lirc yet - one thing at a time!

I haven't set up lirc yet for my card, either. No immediate need.


> Many thanks
>
> Brian
>
>
> brian [at] ace:/home/brian# v4l2-ctl -i1
> Video input set to 1 (S-Video 1)

For /dev/video0 by default! :)

> brian [at] ace:/home/brian# cat /dev/video1 | mplayer -
> MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
> CPU: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (Family: 6,
> Model: 15, Stepping: 6)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
> mplayer: could not open config files /root/.lircrc
> and /etc/lirc//lircrc
> mplayer: No such file or directory
> Failed to read LIRC config file ~/.lircrc.

no big deal.


> Playing -.
> Reading from stdin...
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed

No big deal. One can't seek backwards in the input pipe, as the OS
discards the data once mplayer reads from the input pipe. This is
expected behaviour.

> Win32 LoadLibrary failed to load:
> avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll

I don't use/have Win32 codec's in my installation, but AVI format
doesn't matter as the CX23418 isn't capable of generating that file
format. So no big deal.

> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed
> Cannot seek backward in linear streams!
> Seek failed

> MPEG-PS file format detected.

Good!

> VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 8000.0 kbps (1000.0
> kbyte/s)

With 25.0000 fps, it looks like you have a PAL source of some sort.
Since it's exactly 25.000 fps, is it a Black and White source?

> xscreensaver_disable: Could not find XScreenSaver window.

No big deal.


> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> The selected video_out device is incompatible with this codec.
> Try appending the scale filter to your filter list,
> e.g. -vf spp,scale instead of -vf spp.
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
> libmpeg2-v0.4.0b
> Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
> ==========================================================================
A usable video decoder was found.

> ==========================================================================
> Forced audio codec: mad
> Opening audio decoder: [libmad] libmad mpeg audio decoder
> AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
> Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
> ==========================================================================
A usable audio decoder was found/forced.

> AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
> Starting playback...
> VDec: vo config request - 720 x 576 (preferred colorspace: Planar
> YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO: [xv] 720x576 => 768x576 Planar YV12
> A:95352.0 V: 3.2 A-V:95348.766 ct: 0.236 60/ 60 6% 1% 360.4% 50
> 0
>
> ************************************************
> **** Your system is too SLOW to play this! ****
> ************************************************
>
> Possible reasons, problems, workarounds:
> - Most common: broken/buggy _audio_ driver
> - Try -ao sdl or use the OSS emulation of ALSA.
> - Experiment with different values for -autosync, 30 is a good
> start.
> - Slow video output
> - Try a different -vo driver (-vo help for a list) or try
> -framedrop!
> - Slow CPU
> - Don't try to play a big DVD/DivX on a slow CPU! Try some of the
> lavdopts,
> e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
> - Broken file
> - Try various combinations of -nobps -ni -forceidx -mc 0.
> - Slow media (NFS/SMB mounts, DVD, VCD etc)
> - Try -cache 8192.
> - Are you using -cache to play a non-interleaved AVI file?
> - Try -nocache.
> Read DOCS/HTML/en/video.html for tuning/speedup tips.
> If none of this helps you, read DOCS/HTML/en/bugreports.html.
>
> No bind found for key
> 'MOUSE_BTN0'.-MOUSE_BTN0_DBL
> No bind found for key 'MOUSE_BTN0_DBL'. 7% 136
> 0
> No bind found for key 'MOUSE_BTN2'. 249.7% 581
> 0
> No bind found for key 'MOUSE_BTN2'. 250.3% 594
> 0
> No bind found for key
> 'MOUSE_BTN0'.-MOUSE_BTN0_DBL
> No bind found for key 'MOUSE_BTN0_DBL'. 9% 607
> 0
> A: 42.8 V: 92.8 A-V:-49.998 ct: 3.340 2300/2300 3% 0% 227.3% 2286
> 0
> Exiting... (Quit)

Your system is probably to slow to not use caching.

Also recall that the current cx18 driver doesn't do the first analog
capture after modprobe properly. So if you have no audio or lots of
missing frames on the first capture don't worry.

So after a modprobe, start mplayer on a cx18 device, stop mplayer, and
start it again.


Here's how I typically invoke mplayer for my HVR-1600:

$ mplayer -cache 8192 /dev/video1

You can use 16384 or some higher number, if your system appears to need
it. The cache parameter appears to be smoothing out the frame delivery
to the software decoder, as, I think, the cx23418 may be sending encoded
frames at not such a steady rate.


Regards,
Andy


_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

ivtv devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.