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-users mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
