From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [RFC] file tree rearrangement - was: Re: [RFC PATCH 0/3] Improve Kconfig selection for media devices
Date: Sun, 27 May 2012 16:54:58 -0300 [thread overview]
Message-ID: <4FC28692.9030803@redhat.com> (raw)
In-Reply-To: <201205271925.51967.hverkuil@xs4all.nl>
Em 27-05-2012 14:25, Hans Verkuil escreveu:
> On Sun May 27 2012 19:13:38 Mauro Carvalho Chehab wrote:
>> Em 27-05-2012 13:56, Mauro Carvalho Chehab escreveu:
>>> The Kconfig building system is improperly selecting some drivers,
>>> like analog TV tuners even when this is not required.
>>>
>>> Rearrange the Kconfig in a way to prevent that.
>>>
>>> Mauro Carvalho Chehab (3):
>>> media: reorganize the main Kconfig items
>>> media: Remove VIDEO_MEDIA Kconfig option
>>> media: only show V4L devices based on device type selection
>>>
>>> drivers/media/Kconfig | 114 +++++++++++++++++++++++------------
>>> drivers/media/common/tuners/Kconfig | 64 ++++++++++----------
>>> drivers/media/dvb/frontends/Kconfig | 1 +
>>> drivers/media/radio/Kconfig | 1 +
>>> drivers/media/rc/Kconfig | 29 ++++-----
>>> drivers/media/video/Kconfig | 76 +++++++++++++++++------
>>> drivers/media/video/m5mols/Kconfig | 1 +
>>> drivers/media/video/pvrusb2/Kconfig | 1 -
>>> drivers/media/video/smiapp/Kconfig | 1 +
>>> 9 files changed, 181 insertions(+), 107 deletions(-)
>>>
>>
>> The organization between DVB only, V4L only and hybrid devices are somewhat
>> confusing on our tree. From time to time, someone proposes changing one driver
>> from one place to another or complains that "his device is DVB only but it is
>> inside the V4L tree" (and other similar requests). This sometimes happen because
>> the same driver can support analog only, digital only or hybrid devices.
>>
>> Also, one driver may start as a DVB only or as a V4L only and then
>> it can be latter be converted into an hybrid driver.
>>
>> So, the better is to rearrange the drivers tree, in order to fix this issue,
>> removing them from /video and /dvb, and storing them on a better place.
>>
>> So, my proposal is to move all radio, analog TV, digital TV, webcams and grabber
>> bridge drivers to this arrangement:
>>
>> drivers/media/isa - ISA drivers
>> drivers/media/usb - USB drivers
>> drivers/media/pci - PCI/PCIe drivers
>> drivers/media/platform - platform drivers
>
> drivers/media/parport
Ok.
> drivers/media/i2c
See below.
> Also, if we do this then I would really like to separate the sub-device drivers
> from the main drivers. I find it very messy that those are mixed.
>
> So: drivers/media/subdevs
>
> We might subdivide /subdevs even further (sensors, encoders, decoders, etc.) but
> I am not sure if that is worthwhile.
I think all subdevs (being i2c or not) should be under the same directory.
drivers/media/subdevs seems reasonable.
Sub-dividing them doesn't seem a good idea, as some subdevs may have more than
one function.
> Frankly, the current directory structure (other than the lack of a subdevs
> directory) doesn't bother me. But your proposal is a bit cleaner.
It doesn't bother me either[1], with regards to the existing drivers, but it
is confusing for someone that wants to write a new driver.
[1] with exception to the saa7146 driver under media/common - that looks really
weird.
Also, for example, Antti proposed to add V4L2 support for dvb-usb. I think he
ended by discarding it for his GoC scope of work, but, anyway, with the current
arrangement, that would mean that dvb-usb won't fit well at media/dvb (as all
other hybrid cards aren't there).
So, as we're removing the explicit Kconfig logic for compiling V4L2 core/DVB
core, it makes sense to rearrange the rest of the structure and improve the
building system to better handle the media cards, removing the artificial
and imperfect divisions that it is used there.
Regards,
Mauro
next prev parent reply other threads:[~2012-05-27 19:55 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-24 15:34 [GIT PULL for v3.5-rc1] media updates for v3.5 Mauro Carvalho Chehab
2012-05-24 15:52 ` Antti Palosaari
2012-05-24 16:33 ` Ezequiel Garcia
2012-05-24 16:44 ` Mauro Carvalho Chehab
2012-05-24 20:42 ` Linus Torvalds
2012-05-24 22:33 ` Mauro Carvalho Chehab
2012-05-24 22:40 ` Linus Torvalds
2012-05-25 12:12 ` Mauro Carvalho Chehab
2012-05-25 14:49 ` Anssi Hannula
2012-05-25 15:21 ` Mauro Carvalho Chehab
2012-05-25 16:01 ` Anssi Hannula
2012-05-25 21:20 ` Guennadi Liakhovetski
2012-05-25 22:38 ` Stefan Richter
2012-05-27 14:47 ` Mauro Carvalho Chehab
2012-05-27 15:54 ` Mauro Carvalho Chehab
2012-05-27 16:56 ` [RFC PATCH 0/3] Improve Kconfig selection for media devices Mauro Carvalho Chehab
2012-05-27 16:56 ` [RFC PATCH 1/3] media: reorganize the main Kconfig items Mauro Carvalho Chehab
2012-05-27 17:15 ` Hans Verkuil
2012-05-27 17:20 ` Mauro Carvalho Chehab
2012-05-27 17:27 ` Sylwester Nawrocki
2012-05-27 16:56 ` [RFC PATCH 2/3] media: Remove VIDEO_MEDIA Kconfig option Mauro Carvalho Chehab
2012-05-27 16:56 ` [RFC PATCH 3/3] media: only show V4L devices based on device type selection Mauro Carvalho Chehab
2012-05-27 17:13 ` [RFC] file tree rearrangement - was: Re: [RFC PATCH 0/3] Improve Kconfig selection for media devices Mauro Carvalho Chehab
2012-05-27 17:25 ` Hans Verkuil
2012-05-27 18:47 ` Andy Walls
2012-05-27 20:15 ` Mauro Carvalho Chehab
2012-05-28 9:42 ` Hans Verkuil
2012-05-28 11:03 ` Mauro Carvalho Chehab
2012-05-28 11:45 ` Hans Verkuil
2012-05-28 12:10 ` Mauro Carvalho Chehab
2012-05-27 19:54 ` Mauro Carvalho Chehab [this message]
2012-05-28 9:12 ` Hans Verkuil
2012-05-28 9:48 ` Stefan Richter
2012-05-28 11:38 ` Mauro Carvalho Chehab
2012-05-28 12:17 ` Stefan Richter
2012-05-28 12:32 ` 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=4FC28692.9030803@redhat.com \
--to=mchehab@redhat.com \
--cc=hverkuil@xs4all.nl \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.