From: Mauro Carvalho Chehab <mchehab@kernel.org>
To: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Cc: "Daniel W. S. Almeida" <dwlsalmeida@gmail.com>,
sean@mess.org, kstewart@linuxfoundation.org, allison@lohutok.net,
tglx@linutronix.de, linux-media@vger.kernel.org,
skhan@linuxfoundation.org,
linux-kernel-mentees@lists.linuxfoundation.org
Subject: Re: [RFC 1/3] media: dvb_dummy_tuner: implement driver skeleton
Date: Wed, 18 Mar 2020 10:13:43 +0100 [thread overview]
Message-ID: <20200318101343.7d68ae15@coco.lan> (raw)
In-Reply-To: <9a7bdcf5-502e-45c2-ddcd-e04c5c939a09@ideasonboard.com>
Em Wed, 18 Mar 2020 08:54:18 +0000
Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> escreveu:
> Hi Daniel,
>
> On 18/03/2020 06:00, Daniel W. S. Almeida wrote:
> > From: "Daniel W. S. Almeida" <dwlsalmeida@gmail.com>
> >
> > The virtual DVB test driver serves as a reference DVB driver and helps
> > validate the existing APIs in the media subsystem. It can also aid developers
> > working on userspace applications.
> >
> > This dummy tuner should support common TV standards such as DVB-T/T2/S/S2,
> > ISDB-T and ATSC when completed.
...
> > +static struct i2c_driver dvb_dummy_tuner_i2c_driver = {
> > + .driver = {
> > + .name = "dvb_dummy_tuner",
> > + .suppress_bind_attrs = true,
> > + },
> > + .probe = dvb_dummy_tuner_i2c_probe,
> > + .remove = dvb_dummy_tuner_i2c_remove,
> > + .id_table = dvb_dummy_tuner_i2c_id_table,
> > +};
> > +module_i2c_driver(dvb_dummy_tuner_i2c_driver);
>
> I suspect as a dummy tuner, this should be a platform driver or such
> rather than an I2C driver, as I assume there is not actual bus or device
> to bind to, and it would then require 'hogging' an available I2C address.
Interesting point. Yet, I guess that the best it to keep it as i2c.
The DVB framework splits the driver on 3 parts:
- a frontend driver;
- a tuner driver;
- a bridge driver.
on all real hardware, the frontend and bridge drivers are i2c (with
very few exceptions, where it is integrated on the same chipset and
don't use an i2c-like bus internally).
Keeping it as an I2C driver helps to keep it closer to a real hardware,
with would help driver developers to use it as a reference for their
projects.
Thanks,
Mauro
next prev parent reply other threads:[~2020-03-18 9:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-18 6:00 [RFC 0/3] Implement a virtual DVB driver Daniel W. S. Almeida
2020-03-18 6:00 ` [RFC 1/3] media: dvb_dummy_tuner: implement driver skeleton Daniel W. S. Almeida
2020-03-18 8:17 ` Mauro Carvalho Chehab
2020-03-18 8:54 ` Kieran Bingham
2020-03-18 9:13 ` Mauro Carvalho Chehab [this message]
2020-03-18 6:00 ` [RFC 2/3] media: dvb_dummy_fe.c: lose TS lock on bad snr Daniel W. S. Almeida
2020-03-18 8:43 ` Mauro Carvalho Chehab
2020-03-18 6:00 ` [RFC 3/3] media: dvb_dummy_fe.c: write PSI information into DMX buffer Daniel W. S. Almeida
2020-03-18 10:56 ` Mauro Carvalho Chehab
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=20200318101343.7d68ae15@coco.lan \
--to=mchehab@kernel.org \
--cc=allison@lohutok.net \
--cc=dwlsalmeida@gmail.com \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=kstewart@linuxfoundation.org \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-media@vger.kernel.org \
--cc=sean@mess.org \
--cc=skhan@linuxfoundation.org \
--cc=tglx@linutronix.de \
/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).