public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane Railhet" <stephane.railhet@streamvision.fr>
To: linux-media@vger.kernel.org
Subject: Re: Satelco DVBS CAM initialisation failing
Date: Fri, 26 Aug 2011 15:52:14 +0200	[thread overview]
Message-ID: <4E57A50E.2040908@streamvision.fr> (raw)
In-Reply-To: <4E53E3FF.5090109@streamvision.fr>

I think I have located the problem and I would like to get your opinion 
about it.
I have patch my budget-av driver to increase a sleep during cam reset 
and it seems to solve a problem of initialisation with two different CAM 
model (one NEOTION and one SmartDTV) on all my machine.

Because I'm not really aware about how this driver works I would like to 
get your opinion about this change and know if it is as harmless as it 
looks like. I've done several test over several machine with my Satelco 
EasyWatch DVBS + 4 different CAM model and everything seems to be OK 
(Aston Viacess Pro, Neotion Viacess Pro, SmarDTV irDeto, PowerCam, Aston 
Conax Pro)

-----------------------------------------------------------------------------------------------------------------

Here is my modification :

static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot)
{
     struct budget_av *budget_av = (struct budget_av *) ca->data;
     struct saa7146_dev *saa = budget_av->budget.dev;

     if (slot != 0)
         return -EINVAL;

     dprintk(1, "ciintf_slot_reset\n");
     budget_av->slot_status = SLOTSTATUS_RESET;

     saa7146_setgpio(saa, 2, SAA7146_GPIO_OUTHI); /* disable card */

     saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTHI); /* Vcc off */
     msleep(2);
     saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTLO); /* Vcc on */

+    msleep(750);
-    msleep(20); /* 20 ms Vcc settling time */

     saa7146_setgpio(saa, 2, SAA7146_GPIO_OUTLO); /* enable card */
     ttpci_budget_set_video_port(saa, BUDGET_VIDEO_PORTB);
     msleep(20);

     /* reinitialise the frontend if necessary */
     if (budget_av->reinitialise_demod)
         dvb_frontend_reinitialise(budget_av->budget.dvb_frontend);

     return 0;
}

-----------------------------------------------------------------------------------------------------------------

Thanks for your help and yours comments,

Stéphane Railhet


  reply	other threads:[~2011-08-26 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 17:31 Satelco DVBS CAM initialisation failing Stéphane Railhet
2011-08-26 13:52 ` Stéphane Railhet [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-23 17:18 Stéphane Railhet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E57A50E.2040908@streamvision.fr \
    --to=stephane.railhet@streamvision.fr \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox