linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Olli Salonen <olli.salonen@iki.fi>, linux-media@vger.kernel.org
Subject: Re: cxusb: How to add CI support?
Date: Thu, 24 Jul 2014 10:04:27 +0300	[thread overview]
Message-ID: <53D0AFFB.1000809@iki.fi> (raw)
In-Reply-To: <CAAZRmGw8W2sLTqQ7cgpB-1Y+DrkHy9d83VrJ_ciQEY5K3H-EFw@mail.gmail.com>

Moikka!

On 07/23/2014 10:24 PM, Olli Salonen wrote:
> Hi everyone,
>
> I'm in need of advice when it comes to the implementation of the
> drivers. I recently added support for TechnoTrend CT2-4400 DVB-T2
> tuner into the dvb-usb-cxusb module. Now I have gotten another
> TechnoTrend device CT2-4650 and it seems this is more or less the same
> device as CT2-4400 but with an added CI slot. The CI is realized using
> a CIMaX SP2HF chip.

Here is some brief cip info from manufacturer
http://www.smardtv.com/component/zoo/item/cimax.html

> There seems to be support already for the said CIMaX chip, but only in
> combination with cx23885 (drivers/media/pci/cx23885/
> cimax2.c). This cannot be reused directly in my case. When I look at
> the other dvb-usb devices that have CI slot the support for CI has
> been implemented directly in the code of the USB device (for example,
> pctv452e or az6027).

That is because CI driver usually by USB interface firmware. You could 
see also anysee as one of such example more.


> Of course, an easy way to do it is to reuse a lot of code from the
> existing cimax2 and add it in the cxusb. However, I'm not sure if
> that's an ok approach. As I'm relatively new to linux kernel coding,
> I'd like to ask your recommendation for implementing the CI support
> here before the endeavour. Thanks!

Implement CIMaX driver as a standalone SPI (I am not sure if it is SPI 
or I2C) driver, which implements CI (struct dvb_ca_en50221 callbacks). 
Then load it properly, like si2168/si2157 drivers. It could be hard to 
convert cx23885 without a hardware, but don't worry it - you could left 
it as it is.

regards
Antti

-- 
http://palosaari.fi/

      reply	other threads:[~2014-07-24  7:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-23 19:24 cxusb: How to add CI support? Olli Salonen
2014-07-24  7:04 ` Antti Palosaari [this message]

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=53D0AFFB.1000809@iki.fi \
    --to=crope@iki.fi \
    --cc=linux-media@vger.kernel.org \
    --cc=olli.salonen@iki.fi \
    /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;
as well as URLs for NNTP newsgroup(s).