public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-01 12:18 Sébastien RAILLARD (COEXSI)
  0 siblings, 0 replies; 8+ messages in thread
From: Sébastien RAILLARD (COEXSI) @ 2011-10-01 12:18 UTC (permalink / raw)
  To: o.endriss; +Cc: Linux Media Mailing List

Dear Oliver,

I’ve done some tests with the CAM reader from Digital Devices based on Sony
CXD2099 chip and I noticed some issues with some CAM:
* SMIT CAM    : working fine
* ASTON CAM   : working fine, except that it's crashing quite regularly
* NEOTION CAM : no stream going out but access to the CAM menu is ok

When looking at the CXD2099 driver code, I noticed the CAM clock (fMCLKI) is
fixed at 9MHz using the 27MHz onboard oscillator and using the integer
divider set to 3 (as MCLKI_FREQ=2).

I was wondering if some CAM were not able to work correctly at such high
clock frequency.

So, I've tried to enable the NCO (numeric controlled oscillator) in order to
setup a lower frequency for the CAM clock, but I wasn't successful, it's
looking like the frequency must be around the 9MHz or I can't get any
stream.

Do you know a way to decrease this CAM clock frequency to do some testing?

Best regards,
Sebastien.




^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-03 13:18 Issa Gorissen
  2011-10-03 13:31 ` Sébastien RAILLARD (COEXSI)
  0 siblings, 1 reply; 8+ messages in thread
From: Issa Gorissen @ 2011-10-03 13:18 UTC (permalink / raw)
  To: o.endriss, Sébastien RAILLARD ; +Cc: Linux Media Mailing List

> Dear Oliver,
> 
> I’ve done some tests with the CAM reader from Digital Devices based on
Sony
> CXD2099 chip and I noticed some issues with some CAM:
> * SMIT CAM    : working fine
> * ASTON CAM   : working fine, except that it's crashing quite regularly
> * NEOTION CAM : no stream going out but access to the CAM menu is ok
> 
> When looking at the CXD2099 driver code, I noticed the CAM clock (fMCLKI)
is
> fixed at 9MHz using the 27MHz onboard oscillator and using the integer
> divider set to 3 (as MCLKI_FREQ=2).
> 
> I was wondering if some CAM were not able to work correctly at such high
> clock frequency.
> 
> So, I've tried to enable the NCO (numeric controlled oscillator) in order
to
> setup a lower frequency for the CAM clock, but I wasn't successful, it's
> looking like the frequency must be around the 9MHz or I can't get any
> stream.
> 
> Do you know a way to decrease this CAM clock frequency to do some testing?
> 
> Best regards,
> Sebastien.

Weird that the frequency would pose a problem for those CAMs. The CI spec [1]
explains that the minimum byte transfer clock period must be 111ns. This gives
us a frequency of ~9MHz.

Anyway, wouldn't it be wiser to base MCLKI on TICLK ?

--
Issa

[1] http://www.dvb.org/technology/standards/En50221.V1.pdf


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-03 13:59 Issa Gorissen
  2011-10-03 14:46 ` Sébastien RAILLARD (COEXSI)
  0 siblings, 1 reply; 8+ messages in thread
From: Issa Gorissen @ 2011-10-03 13:59 UTC (permalink / raw)
  To: o.endriss, Sébastien RAILLARD ; +Cc: 'Linux Media Mailing List'

> > 
> > > Dear Oliver,
> > >
> > > I’ve done some tests with the CAM reader from Digital Devices based on
> > Sony
> > > CXD2099 chip and I noticed some issues with some CAM:
> > > * SMIT CAM    : working fine
> > > * ASTON CAM   : working fine, except that it's crashing quite
> > regularly
> > > * NEOTION CAM : no stream going out but access to the CAM menu is ok
> > >
> > > When looking at the CXD2099 driver code, I noticed the CAM clock
> > > (fMCLKI)
> > is
> > > fixed at 9MHz using the 27MHz onboard oscillator and using the integer
> > > divider set to 3 (as MCLKI_FREQ=2).
> > >
> > > I was wondering if some CAM were not able to work correctly at such
> > > high clock frequency.
> > >
> > > So, I've tried to enable the NCO (numeric controlled oscillator) in
> > > order
> > to
> > > setup a lower frequency for the CAM clock, but I wasn't successful,
> > > it's looking like the frequency must be around the 9MHz or I can't get
> > > any stream.
> > >
> > > Do you know a way to decrease this CAM clock frequency to do some
> > testing?
> > >
> > > Best regards,
> > > Sebastien.
> > 
> > Weird that the frequency would pose a problem for those CAMs. The CI
> > spec [1] explains that the minimum byte transfer clock period must be
> > 111ns. This gives us a frequency of ~9MHz.
> > 
> 
> You're totally right about the maximum clock frequency specified in the
> norm, but I had confirmation from CAM manufacturers that their CAM may not
> work correctly up to this maximum frequency.
> 
> Usually, the CAM clock is coming from the input TS stream and I don't think
> there is for now a DVB-S2 transponder having a 72mbps bitrate (so a 9MHz
for
> parallel CAM clocking).
> 
> > Anyway, wouldn't it be wiser to base MCLKI on TICLK ?
> > 
> 
> I've tried to use mode C instead of mode D, and I have the same problem, so
> I guess TICLK is around 72MHz.
> 
> It could be a good idea to use TICLK, but I don't know the value and if the
> clock is constant or only active during data transmission.
> 
> 
> Did you manage to enable and use the NCO of the CXD2099 (instead of the
> integer divider) ?

No, but if your output to the CAM is slower than what comes from the ngene
chip, you will lose bytes, no ?


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-04 11:56 Issa Gorissen
  2011-10-06 20:29 ` Sébastien RAILLARD (COEXSI)
  0 siblings, 1 reply; 8+ messages in thread
From: Issa Gorissen @ 2011-10-04 11:56 UTC (permalink / raw)
  To: o.endriss, sr; +Cc: 'Linux Media Mailing List'

> 
> I managed to find a series of values that are working correctly for MCLKI:
> 
> MCLKI = 0x5554 - i * 0x0c
> 
> In my case I can go down to 0x5338 before having TS errors.
> 

>From CXD2099 specs
--
It is a requirement for the frequency of MCLKI to be set higher than the input
data rate. ie 8
times TICLK. If this condition is not met then the internal buffer will
overflow and the register
TSIN_FIFO_OVFL is set to 1. This register should be read at regular intervals
to ensure reliable
operation.
--

Watch out that you're not slowly overflowing the internal buffer if MCLKI is
not fast enough...

Are you working with the ddbridge ?

--
Issa


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-06 20:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-01 12:18 [DVB] CXD2099 - Question about the CAM clock Sébastien RAILLARD (COEXSI)
  -- strict thread matches above, loose matches on Subject: below --
2011-10-03 13:18 Issa Gorissen
2011-10-03 13:31 ` Sébastien RAILLARD (COEXSI)
2011-10-03 13:59 Issa Gorissen
2011-10-03 14:46 ` Sébastien RAILLARD (COEXSI)
2011-10-03 22:00   ` Sébastien RAILLARD (COEXSI)
2011-10-04 11:56 Issa Gorissen
2011-10-06 20:29 ` Sébastien RAILLARD (COEXSI)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox