Pin 0 seems to do the trick:
[ 6439.341705] Linux video capture interface: v2.00
[ 6439.350594] cx18:  Start initialization, version 1.0.0
[ 6439.350646] cx18-0: Initializing card #0
[ 6439.350649] cx18-0: Autodetected Yuan MPC718 card
[ 6439.350652] cx18-0 info: base addr: 0xd4000000
[ 6439.350654] cx18-0 info: Enabling pci device
[ 6439.350777] ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level,
low) -> IRQ 21
[ 6439.350859] cx18-0 info: cx23418 (rev 0) at 03:00.0, irq: 21,
latency: 64, memory: 0xd4000000
[ 6439.350862] cx18-0 info: attempting ioremap at 0xd4000000 len
0x04000000
[ 6439.350993] cx18-0: cx23418 revision 01010000 (B)
[ 6439.479050] cx18-0 info: GPIO initial dir: 000010ff/0000fff7 out:
0000ef00/0000000f
[ 6439.479092] cx18-0 info: activating i2c...
[ 6439.479094] cx18-0 i2c: i2c init
[ 6439.504554] cx18-0 info: Active card count: 1.
[ 6439.504560] cx18-0: Some Composite and S-Video inputs are currently
working.
[ 6439.588327] cx18-0 info: Loaded module tuner
[ 6439.588332] cx18-0 i2c: i2c client register
[ 6439.591323] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
[ 6439.658291] xc2028 1-0061: creating new instance
[ 6439.658296] xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
[ 6439.658303] cx18-0 info: cmd 4008645c triggered fw load
[ 6440.069775] cx18-0: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
[ 6440.069815] cx18-0 info: Allocate encoder MPEG stream: 63 x 32768
buffers (2016kB total)
[ 6440.069861] cx18-0 info: Allocate TS stream: 32 x 32768 buffers
(1024kB total)
[ 6440.069884] cx18-0 info: Allocate encoder YUV stream: 16 x 131072
buffers (2048kB total)
[ 6440.069915] cx18-0 info: Allocate encoder PCM audio stream: 63 x
16384 buffers (1008kB total)
[ 6440.069952] cx18-0: Disabled encoder IDX device
[ 6440.069998] cx18-0: Registered device video0 for encoder MPEG (2 MB)
[ 6440.070020] cx18-0: Registered device video32 for encoder YUV (2 MB)
[ 6440.070041] cx18-0: Registered device video24 for encoder PCM audio
(1 MB)
[ 6440.070061] cx18-0: Registered device radio0 for encoder radio
[ 6440.070063] cx18-0: Initialized card #0: Yuan MPC718
[ 6440.070084] cx18-1: Initializing card #1
[ 6440.070088] cx18-1: Autodetected Yuan MPC718 card
[ 6440.070091] cx18-1 info: base addr: 0xd8000000
[ 6440.070094] cx18-1 info: Enabling pci device
[ 6440.070115] ACPI: PCI Interrupt 0000:03:01.0[A] -> GSI 21 (level,
low) -> IRQ 22
[ 6440.070129] cx18-1 info: cx23418 (rev 0) at 03:01.0, irq: 22,
latency: 64, memory: 0xd8000000
[ 6440.070132] cx18-1 info: attempting ioremap at 0xd8000000 len
0x04000000
[ 6440.070264] cx18-1: cx23418 revision 01010000 (B)
[ 6440.078539] cx18-0 info: load segment a00000-a07fff
[ 6440.093351] cx18-0 info: load segment ae0000-ae00ff
[ 6440.093469] cx18-0 info: load segment b00000-b1a65f
[ 6440.140477] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000
(141200 bytes)
[ 6440.145665] cx18-1 info: GPIO initial dir: 000010ff/0000fff7 out:
0000ef00/0000000f
[ 6440.145676] cx18-1 info: activating i2c...
[ 6440.145680] cx18-1 i2c: i2c init
[ 6440.165630] cx18-1 info: Active card count: 2.
[ 6440.165637] cx18-1: Some Composite and S-Video inputs are currently
working.
[ 6440.251894] cx18-1 info: Loaded module tuner
[ 6440.251902] cx18-1 i2c: i2c client register
[ 6440.253509] tuner 3-0061: chip found @ 0xc2 (cx18 i2c driver #1-1)
[ 6440.253580] xc2028 3-0061: creating new instance
[ 6440.253585] xc2028 3-0061: type set to XCeive xc2028/xc3028 tuner
[ 6440.253590] cx18-1 info: cmd 4008645c triggered fw load
[ 6440.463214] cx18-1: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
[ 6440.463577] cx18-1 info: Allocate encoder MPEG stream: 63 x 32768
buffers (2016kB total)
[ 6440.463669] cx18-1 info: Allocate TS stream: 32 x 32768 buffers
(1024kB total)
[ 6440.463748] cx18-1 info: Allocate encoder YUV stream: 16 x 131072
buffers (2048kB total)
[ 6440.463782] cx18-1 info: Allocate encoder PCM audio stream: 63 x
16384 buffers (1008kB total)
[ 6440.463811] cx18-1: Disabled encoder IDX device
[ 6440.712996] cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
[ 6440.718690] cx18-0 info: 1 MiniMe Encoder Firmware 0.0.74.0 (Release
2007/03/12)
[ 6440.718695] cx18-0: FW version: 0.0.74.0 (Release 2007/03/12)
[ 6440.917679] cx18-0 info: load segment a00000-a07fff
[ 6440.932278] cx18-0 info: load segment ae0000-ae00ff
[ 6440.932399] cx18-0 info: load segment b00000-b1a65f
[ 6441.557182] cx18-0 info: 1 MiniMe Encoder Firmware 0.0.74.0 (Release
2007/03/12)
[ 6441.747947] cx18-0 info: Changing input from 1 to 0
[ 6441.747956] cx18-0 info: Mute
[ 6441.747960] cx18-0 info: decoder set video input 2, audio input 8
[ 6441.748012] cx18-0 info: decoder set video input 2, audio input 5
[ 6441.748105] cx18-0 info: Unmute
[ 6441.748108] cx18-0 info: Switching standard to 1000.
[ 6441.748112] cx18-0 info: changing video std to fmt 1
[ 6441.748128] cx18-0 info: PLL regs = int: 15, frac: 2876158, post: 4
[ 6441.748132] cx18-0 info: PLL = 0.000011 MHz
[ 6441.748135] cx18-0 info: PLL/8 = 0.000001 MHz
[ 6441.748138] cx18-0 info: ADC Sampling freq = 0.000001 MHz
[ 6441.748141] cx18-0 info: Chroma sub-carrier freq = 0.000000 MHz
[ 6441.748147] 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
[ 6441.751294] xc2028 1-0061: Loading 48 firmware images from
xc3028-v27.fw, type: xc2028 firmware, ver 2.7
[ 6441.751406] cx18-0 info: Resetting tuner
[ 6441.755935] xc2028 1-0061: Loading firmware for type=BASE (1), id
0000000000000000.
[ 6441.755947] cx18-0 info: Resetting tuner
[ 6443.415638] xc2028 1-0061: Loading firmware for type=(0), id
000000000000b700.
[ 6443.597174] cx18-0 info: Mute
[ 6443.597181] cx18-0 info: v4l2 ioctl: set frequency 1076
[ 6443.752939] cx18-0 info: Unmute
[ 6443.753134] cx18-1: Registered device video1 for encoder MPEG (2 MB)
[ 6443.753175] cx18-1: Registered device video33 for encoder YUV (2 MB)
[ 6443.753208] cx18-1: Registered device video25 for encoder PCM audio
(1 MB)
[ 6443.753240] cx18-1: Registered device radio1 for encoder radio
[ 6443.753244] cx18-1: Initialized card #1: Yuan MPC718
[ 6443.753273] cx18:  End initialization
[ 6443.831611] cx18-0 info: Mute
[ 6443.831624] cx18-0 info: Resetting tuner
[ 6443.836816] xc2028 1-0061: Loading firmware for type=BASE FM (401),
id 0000000000000000.
[ 6443.836825] cx18-0 info: Resetting tuner
[ 6446.606830] xc2028 1-0061: Loading firmware for type=FM (400), id
0000000000000000.
[ 6446.784395] cx18-0 info: decoder set video input 2, audio input 0
[ 6446.784484] cx18-0 info: Unmute
[ 6446.787051] cx18-0 info: Mute
[ 6446.787059] cx18-0 info: changing video std to fmt 1
[ 6446.787076] cx18-0 info: PLL regs = int: 15, frac: 2876158, post: 4
[ 6446.787080] cx18-0 info: PLL = 0.000011 MHz
[ 6446.787083] cx18-0 info: PLL/8 = 0.000001 MHz
[ 6446.787086] cx18-0 info: ADC Sampling freq = 0.000001 MHz
[ 6446.787089] cx18-0 info: Chroma sub-carrier freq = 0.000000 MHz
[ 6446.787095] 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
[ 6446.787147] cx18-0 info: Resetting tuner
[ 6446.792445] xc2028 1-0061: Loading firmware for type=BASE (1), id
0000000000000000.
[ 6446.792456] cx18-0 info: Resetting tuner
[ 6448.443012] xc2028 1-0061: Loading firmware for type=(0), id
000000000000b700.
[ 6448.624646] cx18-0 info: decoder set video input 2, audio input 5
[ 6448.624743] cx18-0 info: Unmute
[ 6448.659505] cx18-1 info: load segment a00000-a07fff
[ 6448.674318] cx18-1 info: load segment ae0000-ae00ff
[ 6448.674438] cx18-1 info: load segment b00000-b1a65f
[ 6448.723930] cx18-1: loaded v4l-cx23418-apu.fw firmware V00120000
(141200 bytes)
[ 6449.294782] cx18-1: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
[ 6449.300477] cx18-1 info: 1 MiniMe Encoder Firmware 0.0.74.0 (Release
2007/03/12)
[ 6449.300486] cx18-1: FW version: 0.0.74.0 (Release 2007/03/12)
[ 6449.500624] cx18-1 info: load segment a00000-a07fff
[ 6449.515519] cx18-1 info: load segment ae0000-ae00ff
[ 6449.515641] cx18-1 info: load segment b00000-b1a65f
[ 6450.143456] cx18-1 info: 1 MiniMe Encoder Firmware 0.0.74.0 (Release
2007/03/12)
[ 6450.334840] cx18-1 info: Changing input from 1 to 0
[ 6450.334850] cx18-1 info: Mute
[ 6450.334854] cx18-1 info: decoder set video input 2, audio input 8
[ 6450.334906] cx18-1 info: decoder set video input 2, audio input 5
[ 6450.334999] cx18-1 info: Unmute
[ 6450.335002] cx18-1 info: Switching standard to 1000.
[ 6450.335006] cx18-1 info: changing video std to fmt 1
[ 6450.335022] cx18-1 info: PLL regs = int: 15, frac: 2876158, post: 4
[ 6450.335026] cx18-1 info: PLL = 0.000011 MHz
[ 6450.335029] cx18-1 info: PLL/8 = 0.000001 MHz
[ 6450.335032] cx18-1 info: ADC Sampling freq = 0.000001 MHz
[ 6450.335036] cx18-1 info: Chroma sub-carrier freq = 0.000000 MHz
[ 6450.335042] 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
[ 6450.340461] xc2028 3-0061: Loading 48 firmware images from
xc3028-v27.fw, type: xc2028 firmware, ver 2.7
[ 6450.340568] cx18-1 info: Resetting tuner
[ 6450.347045] xc2028 3-0061: Loading firmware for type=BASE (1), id
0000000000000000.
[ 6450.347057] cx18-1 info: Resetting tuner
[ 6452.006696] xc2028 3-0061: Loading firmware for type=(0), id
000000000000b700.
[ 6452.187291] cx18-1 info: Mute
[ 6452.187297] cx18-1 info: v4l2 ioctl: set frequency 1076
[ 6452.339057] cx18-1 info: Unmute
[ 6452.426539] cx18-1 info: Mute
[ 6452.426554] cx18-1 info: Resetting tuner
[ 6452.434922] xc2028 3-0061: Loading firmware for type=BASE FM (401),
id 0000000000000000.
[ 6452.434934] cx18-1 info: Resetting tuner
[ 6454.038356] xc2028 3-0061: Loading firmware for type=FM (400), id
0000000000000000.
[ 6454.212306] cx18-1 info: decoder set video input 2, audio input 0
[ 6454.212392] cx18-1 info: Unmute
[ 6454.214632] cx18-1 info: Mute
[ 6454.214640] cx18-1 info: changing video std to fmt 1
[ 6454.214657] cx18-1 info: PLL regs = int: 15, frac: 2876158, post: 4
[ 6454.214661] cx18-1 info: PLL = 0.000011 MHz
[ 6454.214665] cx18-1 info: PLL/8 = 0.000001 MHz
[ 6454.214670] cx18-1 info: ADC Sampling freq = 0.000001 MHz
[ 6454.214674] cx18-1 info: Chroma sub-carrier freq = 0.000000 MHz
[ 6454.214680] 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
[ 6454.214731] cx18-1 info: Resetting tuner
[ 6454.221230] xc2028 3-0061: Loading firmware for type=BASE (1), id
0000000000000000.
[ 6454.221240] cx18-1 info: Resetting tuner
[ 6455.875941] xc2028 3-0061: Loading firmware for type=(0), id
000000000000b700.
[ 6456.058252] cx18-1 info: decoder set video input 2, audio input 5
[ 6456.058350] cx18-1 info: Unmute


On Sun, 2008-07-06 at 12:41 -0400, Andy Walls wrote:

> On Sun, 2008-07-06 at 09:00 +0100, Brian Hope wrote:
> > Using the latest firmware and drivers the cards load but I get i2c
> > errors. Any suggestions?
> 
> Since all the I2C errors are related to loading the XC3028 tuner
> firmware, we need to find the correct GPIO pin of the CX23418 to reset
> the XC3028 tuner.
> 
> Quoting Hans' May 30th post to the list:
> 
> > You need to find the correct .xceive_pin setting in the card definition. 
> > Try values 10 and 12 first, then the remaining values in the range 
> > 8-15, then the whole range from 1-31. [ed. 0-31] [...] 
> > 
> > It's tedious, but one of the 32 pins is used to reset the xceive tuner 
> > so that it can load the firmware.
> 
> We never received feedback, so I'm pretty sure the ".xceive_pin = 15"
> setting in cx18-cards.c for the Yuan MPC-718 is wrong.  Please go
> through the tedium of iteratively changing the xceive_pin value and
> recompiling and retesting the driver to find the right number.
> 
> 
> Regards,
> Andy
> 
> > Brian
> > 
> > Please reply to [EMAIL PROTECTED]
> > 
> > Dmesg output:
> [snip]
> > [ 9325.864814] xc2028 1-0061: Loading 48 firmware images from
> > xc3028-v27.fw, type: xc2028 firmware, ver 2.7
> > [ 9325.870827] xc2028 1-0061: Loading firmware for type=BASE (1), id
> > 0000000000000000.
> > [ 9325.879976] i2c-adapter i2c-1: sendbytes: error - bailout.
> > [ 9325.880010] xc2028 1-0061: i2c output error: rc = -14 (should be
> > 64)
> > [ 9325.880014] xc2028 1-0061: -14 returned from send
> > [ 9325.880019] xc2028 1-0061: Error -22 while loading base firmware
> > [ 9325.942720] xc2028 1-0061: Loading firmware for type=BASE (1), id
> > 0000000000000000.
> > [ 9325.951865] i2c-adapter i2c-1: sendbytes: error - bailout.
> > [ 9325.951900] xc2028 1-0061: i2c output error: rc = -14 (should be
> > 64)
> > [ 9325.951905] xc2028 1-0061: -14 returned from send
> > [ 9325.951909] xc2028 1-0061: Error -22 while loading base firmware
> > [ 9325.958692] xc2028 1-0061: Loading firmware for type=BASE (1), id
> > 0000000000000000.
> > [ 9325.967833] i2c-adapter i2c-1: sendbytes: error - bailout.
> > [ 9325.967864] xc2028 1-0061: i2c output error: rc = -14 (should be
> > 64)
> > [ 9325.967868] xc2028 1-0061: -14 returned from send
> > [ 9325.967872] xc2028 1-0061: Error -22 while loading base firmware
> > [ 9326.030589] xc2028 1-0061: Loading firmware for type=BASE (1), id
> > 0000000000000000.
> > [ 9326.039730] i2c-adapter i2c-1: sendbytes: error - bailout.
> > [ 9326.039763] xc2028 1-0061: i2c output error: rc = -14 (should be
> > 64)
> > [ 9326.039767] xc2028 1-0061: -14 returned from send
> > [ 9326.039771] xc2028 1-0061: Error -22 while loading base firmware
> > [ 9326.039779] cx18-0 file: open encoder MPEG
> > [ 9326.039805] cx18-0: VIDIOC_QUERYCAP driver=cx18, card=Yuan MPC718,
> > bus=0000:03:00.0, version=0x00010000, capabilities=0x01070001
> [snip]
> 
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to