From: Antti Palosaari <crope@iki.fi>
To: Philip Downer <pdowner@prospero-tech.com>,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [RFC PATCH 0/1] [media] pci: Add support for DVB PCIe cards from Prospero Technologies Ltd.
Date: Tue, 17 Feb 2015 21:14:36 +0200 [thread overview]
Message-ID: <54E3931C.9060508@iki.fi> (raw)
In-Reply-To: <CAE6wzS+i1uaNr23ViFdW0U0Pf3j7--vV16dwRggTVV7X0AiCKg@mail.gmail.com>
On 02/17/2015 08:22 PM, Philip Downer wrote:
> Hi Mauro,
>
> On Mon, Feb 16, 2015 at 11:47 PM, Mauro Carvalho Chehab
> <mchehab@osg.samsung.com> wrote:
>> Em Mon, 16 Feb 2015 22:01:07 +0200
>> Antti Palosaari <crope@iki.fi> escreveu:
>>
>>> Moikka!
>>>
>>> On 02/16/2015 09:48 PM, Philip Downer wrote:
>>>> The Vortex PCIe card by Prospero Technologies Ltd is a modular DVB card
>>>> with a hardware demux, the card can support up to 8 modules which are
>>>> fixed to the board at assembly time. Currently we only offer one
>>>> configuration, 8 x Dibcom 7090p DVB-t tuners, but we will soon be releasing
>>>> other configurations. There is also a connector for an infra-red receiver
>>>> dongle on the board which supports RAW IR.
>>>>
>>>> The driver has been in testing on our systems (ARM Cortex-A9, Marvell Sheva,
>>>> x86, x86-64) for longer than 6 months, so I'm confident that it works.
>>>> However as this is the first Linux driver I've written, I'm sure there are
>>>> some things that I've got wrong. One thing in particular which has been
>>>> raised by one of our early testers is that we currently register all of
>>>> our frontends as being attached to one adapter. This means the device is
>>>> enumerated in /dev like this:
>>>>
>>>> /dev/dvb/adapter0/frontend0
>>>> /dev/dvb/adapter0/dvr0
>>>> /dev/dvb/adapter0/demux0
>>>>
>>>> /dev/dvb/adapter0/frontend1
>>>> /dev/dvb/adapter0/dvr1
>>>> /dev/dvb/adapter0/demux1
>>>>
>>>> /dev/dvb/adapter0/frontend2
>>>> /dev/dvb/adapter0/dvr2
>>>> /dev/dvb/adapter0/demux2
>>>>
>>>> etc.
>>>>
>>>> Whilst I think this is ok according to the spec, our tester has complained
>>>> that it's incompatible with their software which expects to find just one
>>>> frontend per adapter. So I'm wondering if someone could confirm if what
>>>> I've done with regards to this is correct.
>>>
>>> As I understand all those tuners are independent (could be used same
>>> time) you should register those as a 8 adapters, each having single
>>> frontend, dvr and demux.
>>
>> Yeah, creating one adapter per device is the best solution, if you
>> can't do things like:
>>
>> frontend0 -> demux2 -> dvr5
>
> Thanks for confirming what Antti said, I'll change the driver and resubmit it.
Also, take care to fix issues to meet Kernel coding style and
checkpatch.pl requirements where possible.
Read file Documentation/CodingStyle from kernel tree.
There is script to check some common style issues and more, also in
kernel tree
./scripts/checkpatch.pl --file drivers/media/pci/your_driver_file.c
regards
Antti
--
http://palosaari.fi/
next prev parent reply other threads:[~2015-02-17 19:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 19:48 [RFC PATCH 0/1] [media] pci: Add support for DVB PCIe cards from Prospero Technologies Ltd Philip Downer
2015-02-16 19:48 ` [RFC PATCH 1/1] " Philip Downer
2015-02-19 11:06 ` Sean Young
2015-02-19 12:22 ` Philip Downer
2015-02-19 12:40 ` Sean Young
2015-02-19 16:05 ` Philip Downer
2015-02-16 20:01 ` [RFC PATCH 0/1] " Antti Palosaari
2015-02-16 20:46 ` Philip Downer
2015-02-16 23:47 ` Mauro Carvalho Chehab
2015-02-17 18:22 ` Philip Downer
2015-02-17 19:14 ` Antti Palosaari [this message]
2015-02-18 11:07 ` Philip Downer
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=54E3931C.9060508@iki.fi \
--to=crope@iki.fi \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=pdowner@prospero-tech.com \
/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).