From patchwork Wed May 4 16:08:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alfredo_Jes=C3=BAs_Delaiti?= X-Patchwork-Id: 754262 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p44GD9De004020 for ; Wed, 4 May 2011 16:13:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753905Ab1EDQMu (ORCPT ); Wed, 4 May 2011 12:12:50 -0400 Received: from imr-da03.mx.aol.com ([205.188.105.145]:33573 "EHLO imr-da03.mx.aol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751760Ab1EDQMs (ORCPT ); Wed, 4 May 2011 12:12:48 -0400 Received: from mtaout-db03.r1000.mx.aol.com (mtaout-db03.r1000.mx.aol.com [172.29.51.195]) by imr-da03.mx.aol.com (8.14.1/8.14.1) with ESMTP id p44GCQKc024575; Wed, 4 May 2011 12:12:26 -0400 Received: from [192.168.1.34] (unknown [201.255.103.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mtaout-db03.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 1B91AE0001AA; Wed, 4 May 2011 12:12:24 -0400 (EDT) Message-ID: <4DC179F6.1020905@netscape.net> Date: Wed, 04 May 2011 13:08:22 -0300 From: =?windows-1252?Q?Alfredo_Jes=FAs_Delaiti?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 MIME-Version: 1.0 To: Mauro Carvalho Chehab CC: linux-media@vger.kernel.org Subject: Re: Help to make a driver. ISDB-Tb References: <4DBC422F.10102@netscape.net> <4DBCB4EF.5070104@redhat.com> <4DBE0F74.80602@netscape.net> <4DBEAC3D.7040608@redhat.com> In-Reply-To: <4DBEAC3D.7040608@redhat.com> x-aol-global-disposition: G X-AOL-VSS-INFO: 5400.1158/70048 X-AOL-VSS-CODE: clean X-AOL-SCOLL-SCORE: 0:2:498622656:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d33c34dc17ae85129 X-AOL-IP: 201.255.103.180 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 04 May 2011 16:13:10 +0000 (UTC) Hi El 02/05/11 10:06, Mauro Carvalho Chehab escribió: > From this message: > [ 14.288626] Frontend revision 255 is unknown - aborting. > > I suspect that the I2C gate needed to access the frontend is at the wrong state. That's why you're > getting 0xff (255) value there. I changed the value ".demod_address = 0x19" by ".demod_address = 0x10" and resolved dmesg: <6>[ 10.639380] cx23885 driver version 0.0.2 loaded <6>[ 10.640125] cx23885 0000:02:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 <6>[ 10.640310] CORE cx23885[0]: subsystem: 14f1:8502, board: Mygica X8507 [card=30,autodetected] <6>[ 12.533349] cx25840 5-0044: loaded v4l-cx23885-avcore-01.fw firmware (16382 bytes) <6>[ 12.542333] tuner 4-0061: chip found @ 0xc2 (cx23885[0]) <6>[ 12.582949] xc5000 4-0061: creating new instance <6>[ 12.583643] xc5000: Successfully identified at address 0x61 <6>[ 12.583645] xc5000: Firmware has not been loaded previously <6>[ 12.583727] cx23885[0]/0: registered device video1 [v4l2] <6>[ 12.589183] xc5000: waiting for firmware upload (dvb-fe-xc5000-1.6.114.fw)... <7>[ 12.610081] xc5000: firmware read 12401 bytes. <6>[ 12.610083] xc5000: firmware uploading... <6>[ 13.982005] xc5000: firmware upload complete... <6>[ 14.604101] cx23885_dvb_register() allocating 1 frontend(s) <6>[ 14.604106] cx23885[0]: cx23885 based dvb card <7>[ 14.631169] mb86a20s: mb86a20s_attach: <6>[ 14.631656] Detected a Fujitsu mb86a20s frontend <6>[ 14.631726] xc5000 4-0061: attaching existing instance <6>[ 14.632425] xc5000: Successfully identified at address 0x61 <6>[ 14.632427] xc5000: Firmware has been loaded previously <6>[ 14.632431] DVB: registering new adapter (cx23885[0]) <4>[ 14.632434] DVB: registering adapter 1 frontend 0 (Fujitsu mb86A20s)... <6>[ 14.632811] cx23885_dev_checkrevision() Hardware revision = 0xb0 <6>[ 14.632819] cx23885[0]/0: found at 0000:02:00.0, rev: 2, irq: 19, latency: 0, mmio: 0xfd600000 <7>[ 14.632827] cx23885 0000:02:00.0: setting latency timer to 64 <7>[ 14.632918] cx23885 0000:02:00.0: irq 44 for MSI/MSI-X Attached list of changes I made. Results: Analog TV can be seen, but no sound. If I use xawtv or VLC the image is in the middle of the screen and there are stripes, as if interference. If I use tvtime will look good. Digital television: not tune any channels with w-scan or gnome-dvb-setup. But with the latter, it captures 2 weak signals, but I can not know which is. Under windows also capture 2 channel and I'm in a place where the signal is low. I'll try to have more signal strength. If I run dmesg after scan channels I get the following: [ 3474.858537] mb86a20s: mb86a20s_set_frontend: [ 3474.858541] mb86a20s: mb86a20s_set_frontend: Calling tuner set parameters [ 3474.981157] mb86a20s: mb86a20s_read_status: [ 3474.981649] mb86a20s: mb86a20s_read_status: val = 2, status = 0x01 [ 3475.081746] mb86a20s: mb86a20s_read_status: [ 3475.082241] mb86a20s: mb86a20s_read_status: val = 2, status = 0x01 [ 3475.182336] mb86a20s: mb86a20s_read_status: [ 3475.182829] mb86a20s: mb86a20s_read_status: val = 2, status = 0x01 When detected signal with gnome-dvb-setup, sometimes gives this warning: Message from syslogd@linux at May 4 01:48:38 ... kernel:[ 3359.202289] do_IRQ: 2.145 No irq handler for vector (irq -1) Thank you very much, Alfredo --- ../../../../../../usr/src/linux/drivers/media/video/cx23885/cx23885-video.c 2011-05-02 17:22:28.000000000 -0300 +++ ../cx23885-video.c 2011-04-29 14:07:33.000000000 -0300 @@ -409,6 +409,13 @@ cx23885_gpio_clear(dev, GPIO_0); } + if (dev->board == CX23885_BOARD_MYGICA_X8507 || + dev->board == CX23885_BOARD_MAGICPRO_PROHDTVE2) { + /* Select Analog TV */ + if (INPUT(input)->type == CX23885_VMUX_TELEVISION) + cx23885_gpio_clear(dev, GPIO_0); + } + /* Tell the internal A/V decoder */ v4l2_subdev_call(dev->sd_cx25840, video, s_routing, INPUT(input)->vmux, 0, 0);