Message ID | 4B69DD3F.2000103@arcor.de (mailing list archive) |
---|---|
State | Rejected, archived |
Headers |
Return-path: <linux-media-owner@vger.kernel.org> Envelope-to: mchehab@infradead.org Delivery-date: Wed, 03 Feb 2010 20:32:33 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for <mchehab@localhost> (single-drop); Wed, 03 Feb 2010 18:36:20 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Ncltp-0006vi-2i; Wed, 03 Feb 2010 20:32:33 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932670Ab0BCUcb (ORCPT <rfc822;kmpark@infradead.org> + 1 other); Wed, 3 Feb 2010 15:32:31 -0500 Received: from mail-in-13.arcor-online.net ([151.189.21.53]:38151 "EHLO mail-in-13.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932439Ab0BCUcb (ORCPT <rfc822;linux-media@vger.kernel.org>); Wed, 3 Feb 2010 15:32:31 -0500 Received: from mail-in-20-z2.arcor-online.net (mail-in-20-z2.arcor-online.net [151.189.8.85]) by mx.arcor.de (Postfix) with ESMTP id 6B73E2BAB20; Wed, 3 Feb 2010 21:32:29 +0100 (CET) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-20-z2.arcor-online.net (Postfix) with ESMTP id 5380010824B; Wed, 3 Feb 2010 21:32:29 +0100 (CET) Received: from [192.168.2.102] (dslb-188-103-200-201.pools.arcor-ip.net [188.103.200.201]) (Authenticated sender: stefan.ringel@arcor.de) by mail-in-06.arcor-online.net (Postfix) with ESMTPA id F3E6B39A38E; Wed, 3 Feb 2010 21:32:28 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net F3E6B39A38E DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1265229149; bh=DSelk5xMvdI3+JEPlmCehW+fULnTryc+ktSRle4dEQw=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=pLsFF9uZqmRH1UwVMGq7eqNtARH/zn48Pj+bNlEfKqQZHmepljKP99Hbs2FDCTnoB yfN85vl5FwLyqRM7elK4LJoEpD41hVOG8WArl37vunT4tlGlk+dasvUK5MWtxBH0LQ 2uWH7imsUI/FbZrIX79xzwpXYIEhP1ZI9HhKZ+5c= Message-ID: <4B69DD3F.2000103@arcor.de> Date: Wed, 03 Feb 2010 21:31:59 +0100 From: Stefan Ringel <stefan.ringel@arcor.de> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.5) Gecko/20091130 SUSE/3.0.0-1.1.1 Thunderbird/3.0 MIME-Version: 1.0 To: Mauro Carvalho Chehab <mchehab@redhat.com> CC: linux-media@vger.kernel.org, Devin Heitmueller <dheitmueller@kernellabs.com> Subject: [PATCH 12/15] - tm6000 bugfix tuner reset time and tuner param References: <4B673790.3030706@arcor.de> <4B673B2D.6040507@arcor.de> <4B675B19.3080705@redhat.com> <4B685FB9.1010805@arcor.de> <4B688507.606@redhat.com> <4B688E41.2050806@arcor.de> <4B689094.2070204@redhat.com> <4B6894FE.6010202@arcor.de> <4B69D83D.5050809@arcor.de> <4B69D8CC.2030008@arcor.de> In-Reply-To: <4B69D8CC.2030008@arcor.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Commit Message
Stefan Ringel
Feb. 3, 2010, 8:31 p.m. UTC
signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
-static int tm6000_tuner_callback(void *ptr, int component, int command,
int arg)
+int tm6000_tuner_callback(void *ptr, int component, int command, int arg)
{
int rc=0;
struct tm6000_core *dev = ptr;
@@ -252,11 +271,14 @@ static int tm6000_tuner_callback(void *ptr, int
component, int command, int arg)
switch (arg) {
case 0:
tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN,
+ dev->tuner_reset_gpio, 0x01);
+ msleep(60);
+ tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN,
dev->tuner_reset_gpio, 0x00);
- msleep(130);
+ msleep(75);
tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN,
dev->tuner_reset_gpio, 0x01);
- msleep(130);
+ msleep(60);
break;
case 1:
tm6000_set_reg (dev, REQ_04_EN_DISABLE_MCU_INT,
@@ -290,7 +332,7 @@ static void tm6000_config_tuner (struct tm6000_core
*dev)
memset(&tun_setup, 0, sizeof(tun_setup));
tun_setup.type = dev->tuner_type;
tun_setup.addr = dev->tuner_addr;
- tun_setup.mode_mask = T_ANALOG_TV | T_RADIO;
+ tun_setup.mode_mask = T_ANALOG_TV | T_RADIO | T_DIGITAL_TV;
tun_setup.tuner_callback = tm6000_tuner_callback;
v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_type_addr,
&tun_setup);
@@ -302,15 +344,19 @@ static void tm6000_config_tuner (struct
tm6000_core *dev)
memset(&xc2028_cfg, 0, sizeof(xc2028_cfg));
memset (&ctl,0,sizeof(ctl));
- ctl.mts = 1;
- ctl.read_not_reliable = 1;
+ ctl.input1 = 1;
+ ctl.read_not_reliable = 0;
ctl.msleep = 10;
-
+ ctl.demod = XC3028_FE_ZARLINK456;
+ ctl.vhfbw7 = 1;
+ ctl.uhfbw8 = 1;
+ ctl.switch_mode = 1;
xc2028_cfg.tuner = TUNER_XC2028;
xc2028_cfg.priv = &ctl;
switch(dev->model) {
case TM6010_BOARD_HAUPPAUGE_900H:
+ case TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE:
ctl.fname = "xc3028L-v36.fw";
break;
default:
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Comments
On Wed, Feb 3, 2010 at 3:31 PM, Stefan Ringel <stefan.ringel@arcor.de> wrote: > signed-off-by: Stefan Ringel <stefan.ringel@arcor.de> > > --- a/drivers/staging/tm6000/tm6000-cards.c > +++ b/drivers/staging/tm6000/tm6000-cards.c > @@ -221,12 +239,13 @@ struct usb_device_id tm6000_id_table [] = { > { USB_DEVICE(0x2040, 0x6600), .driver_info = > TM6010_BOARD_HAUPPAUGE_900H }, > { USB_DEVICE(0x6000, 0xdec0), .driver_info = > TM6010_BOARD_BEHOLD_WANDER }, > { USB_DEVICE(0x6000, 0xdec1), .driver_info = > TM6010_BOARD_BEHOLD_VOYAGER }, > { USB_DEVICE(0x0ccd, 0x0086), .driver_info = > TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE }, > { }, > }; > > /* Tuner callback to provide the proper gpio changes needed for xc2028 */ > > -static int tm6000_tuner_callback(void *ptr, int component, int command, > int arg) > +int tm6000_tuner_callback(void *ptr, int component, int command, int arg) > { Why was the static removed from this declaration? What could possibly be calling this from outside the module? And if there were something that needed it, the declaration would have to be moved to a header file so it could be included elsewhere (which should be in this same patch). Just to be clear, the fact that I am going through these patches should not be taken personally - I'm just trying to give you some advice on what you need to do to ensure the patches can be accepted upstream and be reviewed with minimal cost to the other developers. Devin
Am 03.02.2010 21:52, schrieb Devin Heitmueller: > On Wed, Feb 3, 2010 at 3:31 PM, Stefan Ringel <stefan.ringel@arcor.de> wrote: > >> signed-off-by: Stefan Ringel <stefan.ringel@arcor.de> >> >> --- a/drivers/staging/tm6000/tm6000-cards.c >> +++ b/drivers/staging/tm6000/tm6000-cards.c >> @@ -221,12 +239,13 @@ struct usb_device_id tm6000_id_table [] = { >> { USB_DEVICE(0x2040, 0x6600), .driver_info = >> TM6010_BOARD_HAUPPAUGE_900H }, >> { USB_DEVICE(0x6000, 0xdec0), .driver_info = >> TM6010_BOARD_BEHOLD_WANDER }, >> { USB_DEVICE(0x6000, 0xdec1), .driver_info = >> TM6010_BOARD_BEHOLD_VOYAGER }, >> { USB_DEVICE(0x0ccd, 0x0086), .driver_info = >> TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE }, >> { }, >> }; >> >> /* Tuner callback to provide the proper gpio changes needed for xc2028 */ >> >> -static int tm6000_tuner_callback(void *ptr, int component, int command, >> int arg) >> +int tm6000_tuner_callback(void *ptr, int component, int command, int arg) >> { >> > Why was the static removed from this declaration? What could possibly > be calling this from outside the module? And if there were something > that needed it, the declaration would have to be moved to a header > file so it could be included elsewhere (which should be in this same > patch). > > Just to be clear, the fact that I am going through these patches > should not be taken personally - I'm just trying to give you some > advice on what you need to do to ensure the patches can be accepted > upstream and be reviewed with minimal cost to the other developers. > > Devin > > 1. It broke by building. 2. callback for dvb frontend (tm6000-dvb.c) so can the tuner a reset send if it goes in DVB mode (it must reload the firmware)
--- a/drivers/staging/tm6000/tm6000-cards.c +++ b/drivers/staging/tm6000/tm6000-cards.c @@ -221,12 +239,13 @@ struct usb_device_id tm6000_id_table [] = { { USB_DEVICE(0x2040, 0x6600), .driver_info = TM6010_BOARD_HAUPPAUGE_900H }, { USB_DEVICE(0x6000, 0xdec0), .driver_info = TM6010_BOARD_BEHOLD_WANDER }, { USB_DEVICE(0x6000, 0xdec1), .driver_info = TM6010_BOARD_BEHOLD_VOYAGER }, { USB_DEVICE(0x0ccd, 0x0086), .driver_info = TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE }, { }, }; /* Tuner callback to provide the proper gpio changes needed for xc2028 */