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 PATCH 1/3] media: reorganize the main Kconfig items
Date: Sun, 27 May 2012 14:20:18 -0300 [thread overview]
Message-ID: <4FC26252.6050509@redhat.com> (raw)
In-Reply-To: <201205271915.44288.hverkuil@xs4all.nl>
Em 27-05-2012 14:15, Hans Verkuil escreveu:
> Just a few typos...
>
> On Sun May 27 2012 18:56:41 Mauro Carvalho Chehab wrote:
>> Change the main items to:
>>
>> <m> Multimedia support --->
>> [ ] Webcams and video grabbers support
>> [ ] Analog TV API and drivers support
>> [ ] Digital TV support
>> [ ] AM/FM radio receivers/transmitters support
>> [ ] Remote Controller support
>>
>> This provides an interface that is clearer to end users that
>> are compiling the Kernel, and will allow the building system
>> to automatically unselect drivers for unused functions.
>>
>> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
>> ---
>> drivers/media/Kconfig | 110 ++++++++++++++++++++++++-----------
>> drivers/media/common/tuners/Kconfig | 1 +
>> drivers/media/dvb/frontends/Kconfig | 1 +
>> drivers/media/rc/Kconfig | 29 ++++-----
>> 4 files changed, 90 insertions(+), 51 deletions(-)
>>
>> diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
>> index 9575db4..8deddcd 100644
>> --- a/drivers/media/Kconfig
>> +++ b/drivers/media/Kconfig
>> @@ -6,20 +6,83 @@ menuconfig MEDIA_SUPPORT
>> tristate "Multimedia support"
>> depends on HAS_IOMEM
>> help
>> - If you want to use Video for Linux, DVB for Linux, or DAB adapters,
>> + If you want to use Webcams, Video grabber devices and/or TV devices
>> enable this option and other options below.
>>
>> + Additional info and docs are available on the web at
>> + <http://linuxtv.org>
>> +
>> if MEDIA_SUPPORT
>>
>> comment "Multimedia core support"
>>
>> #
>> +# Multimedia support - automatically enable V4L2 and DVB core
>> +#
>> +config MEDIA_WEBCAM_SUPP
>> + bool "Webcams and video grabbers support"
>> + ---help---
>> + Enable support for webcams and video grabbers.
>> +
>> + Say Y when you have a webcam or a video capture grabber board.
>> +
>> +config MEDIA_ANALOG_TV_SUPP
>> + bool "Analog TV API and drivers support"
>
> I would rename this to "Analog TV support" to be consistent with the digital
> option.
>
>> + ---help---
>> + Enable analog TV support.
>> +
>> + Say Y when you have a TV board with analog support of with an
>
> Typo: of with an -> or with a
>
>> + hybrid analog/digital TV chipset.
>> +
>> + Note: There are several DVB cards that are based on chips that
>> + supports both analog and digital TV. Disabling this option
>
> supports -> support
>
>> + will disable support for them.
>> +
>> +config MEDIA_DIGITAL_TV_SUPP
>> + bool "Digital TV support"
>> + ---help---
>> + Enable digital TV support.
>> +
>> + Say Y when you have a board with digital support or a board with
>> + hybrid digital TV and analog TV.
>> +
>> +config MEDIA_RADIO_SUPP
>> + bool "AM/FM radio receivers/transmitters support"
>> + ---help---
>> + Enable AM/FM radio support.
>> +
>> + Additional info and docs are available on the web at
>> + <http://linuxtv.org>
>> +
>> + Say Y when you have a board with radio support.
>> +
>> + Note: There are several TV cards that are based on chips that
>> + supports radio reception Disabling this option will
>
> supports -> support
>
> Also add a period after reception.
>
> Regards,
>
> Hans
Thanks!
It follows v2 with the suggested fixes.
-
media: reorganize the main Kconfig items
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Change the main items to:
<m> Multimedia support --->
[ ] Webcams and video grabbers support
[ ] Analog TV API and drivers support
[ ] Digital TV support
[ ] AM/FM radio receivers/transmitters support
[ ] Remote Controller support
This provides an interface that is clearer to end users that
are compiling the Kernel, and will allow the building system
to automatically unselect drivers for unused functions.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index 9575db4..2ac4c9a 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -6,20 +6,83 @@ menuconfig MEDIA_SUPPORT
tristate "Multimedia support"
depends on HAS_IOMEM
help
- If you want to use Video for Linux, DVB for Linux, or DAB adapters,
+ If you want to use Webcams, Video grabber devices and/or TV devices
enable this option and other options below.
+ Additional info and docs are available on the web at
+ <http://linuxtv.org>
+
if MEDIA_SUPPORT
comment "Multimedia core support"
#
+# Multimedia support - automatically enable V4L2 and DVB core
+#
+config MEDIA_WEBCAM_SUPP
+ bool "Webcams and video grabbers support"
+ ---help---
+ Enable support for webcams and video grabbers.
+
+ Say Y when you have a webcam or a video capture grabber board.
+
+config MEDIA_ANALOG_TV_SUPP
+ bool "Analog TV support"
+ ---help---
+ Enable analog TV support.
+
+ Say Y when you have a TV board with analog support of with a
+ hybrid analog/digital TV chipset.
+
+ Note: There are several DVB cards that are based on chips that
+ support both analog and digital TV. Disabling this option
+ will disable support for them.
+
+config MEDIA_DIGITAL_TV_SUPP
+ bool "Digital TV support"
+ ---help---
+ Enable digital TV support.
+
+ Say Y when you have a board with digital support or a board with
+ hybrid digital TV and analog TV.
+
+config MEDIA_RADIO_SUPP
+ bool "AM/FM radio receivers/transmitters support"
+ ---help---
+ Enable AM/FM radio support.
+
+ Additional info and docs are available on the web at
+ <http://linuxtv.org>
+
+ Say Y when you have a board with radio support.
+
+ Note: There are several TV cards that are based on chips that
+ support radio reception. Disabling this option will
+ disable support for them.
+
+menuconfig RC_CORE_SUPP
+ bool "Remote Controller support"
+ depends on INPUT
+ ---help---
+ Enable support for Remote Controllers on Linux. This is
+ needed in order to support several video capture adapters,
+ standalone IR receivers/transmitters, and RF receivers.
+
+ Enable this option if you have a video capture board even
+ if you don't need IR, as otherwise, you may not be able to
+ compile the driver for your adapter.
+
+ Say Y when you have a TV or an IR device.
+
+#
# Media controller
+# Selectable only for webcam/grabbers, as other drivers don't use it
#
config MEDIA_CONTROLLER
bool "Media Controller API (EXPERIMENTAL)"
depends on EXPERIMENTAL
+ depends on MEDIA_WEBCAM_SUPP
---help---
Enable the media controller API used to query media devices internal
topology and configure it dynamically.
@@ -27,26 +90,15 @@ config MEDIA_CONTROLLER
This API is mostly used by camera interfaces in embedded platforms.
#
-# V4L core and enabled API's
+# Video4Linux support
+# Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
#
config VIDEO_DEV
- tristate "Video For Linux"
- ---help---
- V4L core support for video capture and overlay devices, webcams and
- AM/FM radio cards.
-
- This kernel includes support for the new Video for Linux Two API,
- (V4L2).
-
- Additional info and docs are available on the web at
- <http://linuxtv.org>
-
- Documentation for V4L2 is also available on the web at
- <http://bytesex.org/v4l/>.
-
- To compile this driver as a module, choose M here: the
- module will be called videodev.
+ tristate
+ depends on MEDIA_SUPPORT
+ depends on MEDIA_WEBCAM_SUPP || MEDIA_ANALOG_TV_SUPP || MEDIA_RADIO_SUPP
+ default y
config VIDEO_V4L2_COMMON
tristate
@@ -64,25 +116,15 @@ config VIDEO_V4L2_SUBDEV_API
#
# DVB Core
+# Only enables if one of DTV is selected
#
config DVB_CORE
- tristate "DVB for Linux"
+ tristate
+ depends on MEDIA_SUPPORT
+ depends on MEDIA_DIGITAL_TV_SUPP
+ default y
select CRC32
- help
- DVB core utility functions for device handling, software fallbacks etc.
-
- Enable this if you own a DVB/ATSC adapter and want to use it or if
- you compile Linux for a digital SetTopBox.
-
- Say Y when you have a DVB or an ATSC card and want to use it.
-
- API specs and user tools are available from <http://www.linuxtv.org/>.
-
- Please report problems regarding this support to the LinuxDVB
- mailing list.
-
- If unsure say N.
config DVB_NET
bool "DVB Network Support"
@@ -101,8 +143,6 @@ config VIDEO_MEDIA
tristate
default (DVB_CORE && (VIDEO_DEV = n)) || (VIDEO_DEV && (DVB_CORE = n)) || (DVB_CORE && VIDEO_DEV)
-comment "Multimedia drivers"
-
source "drivers/media/common/Kconfig"
source "drivers/media/rc/Kconfig"
diff --git a/drivers/media/common/tuners/Kconfig b/drivers/media/common/tuners/Kconfig
index bbf4945..16ee1a4 100644
--- a/drivers/media/common/tuners/Kconfig
+++ b/drivers/media/common/tuners/Kconfig
@@ -2,6 +2,7 @@ config MEDIA_ATTACH
bool "Load and attach frontend and tuner driver modules as needed"
depends on VIDEO_MEDIA
depends on MODULES
+ default y if !EXPERT
help
Remove the static dependency of DVB card drivers on all
frontend modules for all possible card variants. Instead,
diff --git a/drivers/media/dvb/frontends/Kconfig b/drivers/media/dvb/frontends/Kconfig
index b98ebb2..6d3c2f7 100644
--- a/drivers/media/dvb/frontends/Kconfig
+++ b/drivers/media/dvb/frontends/Kconfig
@@ -1,6 +1,7 @@
config DVB_FE_CUSTOMISE
bool "Customise the frontend modules to build"
depends on DVB_CORE
+ depends on EXPERT
default y if EXPERT
help
This allows the user to select/deselect frontend drivers for their
diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig
index f97eeb8..d6a0290 100644
--- a/drivers/media/rc/Kconfig
+++ b/drivers/media/rc/Kconfig
@@ -1,21 +1,12 @@
-menuconfig RC_CORE
- tristate "Remote Controller adapters"
+config RC_CORE
+ tristate
+ depends on RC_CORE_SUPP
depends on INPUT
- default INPUT
- ---help---
- Enable support for Remote Controllers on Linux. This is
- needed in order to support several video capture adapters,
- standalone IR receivers/transmitters, and RF receivers.
-
- Enable this option if you have a video capture board even
- if you don't need IR, as otherwise, you may not be able to
- compile the driver for your adapter.
-
-if RC_CORE
+ default y
config LIRC
- tristate
- default y
+ tristate "LIRC interface driver"
+ depends on RC_CORE
---help---
Enable this option to build the Linux Infrared Remote
@@ -109,6 +100,12 @@ config IR_MCE_KBD_DECODER
Windows Media Center Edition, which you would like to use with
a raw IR receiver in your system.
+menuconfig RC_DEVICES
+ bool "Remote Controller devices"
+ depends on RC_CORE
+
+if RC_DEVICES
+
config IR_LIRC_CODEC
tristate "Enable IR to LIRC bridge"
depends on RC_CORE
@@ -276,4 +273,4 @@ config IR_GPIO_CIR
To compile this driver as a module, choose M here: the module will
be called gpio-ir-recv.
-endif #RC_CORE
+endif #RC_DEVICES
next prev parent reply other threads:[~2012-05-27 17:20 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 [this message]
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
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=4FC26252.6050509@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.