Return-path: Received: from fg-out-1718.google.com ([72.14.220.159]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1JQnFi-0007ha-OA for linux-dvb@linuxtv.org; Sun, 17 Feb 2008 18:24:34 +0100 Received: by fg-out-1718.google.com with SMTP id 22so1070779fge.25 for ; Sun, 17 Feb 2008 09:24:34 -0800 (PST) Message-ID: Date: Sun, 17 Feb 2008 18:24:34 +0100 From: "Albert Comerma" To: hfvogt@gmx.net In-Reply-To: <200802171732.36144.hfvogt@gmx.net> MIME-Version: 1.0 References: <200802112223.11129.hfvogt@gmx.net> <200802171732.36144.hfvogt@gmx.net> Cc: linux-dvb@linuxtv.org Subject: Re: [linux-dvb] [PATCH] support Cinergy HT USB XE (0ccd:0058) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0741585001==" Mime-version: 1.0 Sender: linux-dvb-bounces@linuxtv.org Errors-To: linux-dvb-bounces@linuxtv.org List-ID: --===============0741585001== Content-Type: multipart/alternative; boundary="----=_Part_19690_32414409.1203269074450" ------=_Part_19690_32414409.1203269074450 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Hans, with this configuration it does not work. As I commented it seems that it does not work if GPIO6 is set to 1. If I change to 0 it works fine. Just one comment, GPIO0 for sure is the LED output of my card. :P Albert 2008/2/17, Hans-Frieder Vogt : > > Albert, > > I am happy to hear that your TV-card finally works. > However, I am still a bit unsure about these GPIO settings. Initially, I > just copied the GPIO-settings from another entry and > then left it because it seemed to work. Now, I have digged a little bit > into this issue and found, that under Windows my > STK7700PH-based stick gets the GPIO set in a different way. > Could you please try the following modified stk7700ph_frontend_attach > routine (in dib0700_devices.c) and tell me > whether this works for your card as well? > > > static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) > > { > > dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 1); > > msleep(20); > > dib0700_set_gpio(adap->dev, GPIO9, GPIO_OUT, 1); > > dib0700_set_gpio(adap->dev, GPIO4, GPIO_OUT, 1); > dib0700_set_gpio(adap->dev, GPIO7, GPIO_OUT, 1); > > dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0); > msleep(10); > > dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 1); > > msleep(20); > > dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1); > > msleep(10); > > > dib7000p_i2c_enumeration(&adap->dev->i2c_adap, 1, 18, > &stk7700ph_dib7700_xc3028_config); > > adap->fe = dvb_attach(dib7000p_attach, &adap->dev->i2c_adap, 0x80, > &stk7700ph_dib7700_xc3028_config); > > return adap->fe == NULL ? -ENODEV : 0; > } > > > By the way, I also experience the same problem with the missing SNR info, > on two different dib0700-based USB cards. > > Regards, > Hans-Frieder > > Am Sonntag, 17. Februar 2008 schrieb Albert Comerma: > > > I got it!!!! I remembered that on PCTV DVB-T 72e they had a similar > problem, > > which was solved leaving GPIO6 to 0. Doing this the tuning seems to work > > fine. SNR is always reported as 0% but I think this is not a problem, > now I > > can scan and tune dvb-t channels. Firmware is 1.10 and xc3028-v27 with > that > > modification. Thanks a lot for your help. Next step would be analog. > > > > Albert > > > > > > > -- > > -- > Hans-Frieder Vogt e-mail: hfvogt gmx .dot. net > ------=_Part_19690_32414409.1203269074450 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Hans, with this configuration it does not work. As I commented it seems that it does not work if GPIO6 is set to 1. If I change to 0 it works fine. Just one comment, GPIO0 for sure is the LED output of my card. :P

Albert

2008/2/17, Hans-Frieder Vogt <hfvogt@gmx.net>:
Albert,

I am happy to hear that your TV-card finally works.
However, I am still a bit unsure about these GPIO settings. Initially, I just copied the GPIO-settings from another entry and
then left it because it seemed to work. Now, I have digged a little bit into this issue and found, that under Windows my
STK7700PH-based stick gets the GPIO set in a different way.
Could you please try the following modified stk7700ph_frontend_attach routine (in dib0700_devices.c) and tell me
whether this works for your card as well?


static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap)

{

        dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 1);

        msleep(20);

        dib0700_set_gpio(adap->dev, GPIO9, GPIO_OUT, 1);

        dib0700_set_gpio(adap->dev, GPIO4, GPIO_OUT, 1);
        dib0700_set_gpio(adap->dev, GPIO7, GPIO_OUT, 1);

        dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0);
        msleep(10);

        dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 1);

        msleep(20);

        dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1);

        msleep(10);


        dib7000p_i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &stk7700ph_dib7700_xc3028_config);

        adap->fe = dvb_attach(dib7000p_attach, &adap->dev->i2c_adap, 0x80,
                                &stk7700ph_dib7700_xc3028_config);

        return adap->fe == NULL ? -ENODEV : 0;
}


By the way, I also experience the same problem with the missing SNR info, on two different dib0700-based USB cards.

Regards,
Hans-Frieder

Am Sonntag, 17. Februar 2008 schrieb Albert Comerma:

> I got it!!!! I remembered that on PCTV DVB-T 72e they had a similar problem,
> which was solved leaving GPIO6 to 0. Doing this the tuning seems to work
> fine. SNR is always reported as 0% but I think this is not a problem, now I
> can scan and tune dvb-t channels. Firmware is 1.10 and xc3028-v27 with that
> modification. Thanks a lot for your help. Next step would be analog.
>
> Albert
>




--

--
Hans-Frieder Vogt                 e-mail:  hfvogt <at> gmx .dot. net

------=_Part_19690_32414409.1203269074450-- --===============0741585001== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb --===============0741585001==--