diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2019-05-02 09:42:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-28 12:15:46 -0400 |
commit | c612e54fca55d9380c1378eaa623d74ed89b62db (patch) | |
tree | a4407330bf7e2844619217dc012cc8acc66b7034 | |
parent | 03006bd0880ad23600eff76f7c6b7eb8c87fe3d7 (diff) |
media: move drivers/media/media-* to drivers/media/mc/mc-*
It is really weird that the media controller sources are all top-level
in drivers/media. It is a bit of a left-over from long ago when most
media sources were all at the top-level. At some point we reorganized
the directory structure, but the media-*.c sources where never moved
to their own directory.
So create a new mc directory and move all sources there. Also rename
the prefix from media- to mc-.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/Kconfig | 34 | ||||
-rw-r--r-- | drivers/media/Makefile | 13 | ||||
-rw-r--r-- | drivers/media/mc/Kconfig | 33 | ||||
-rw-r--r-- | drivers/media/mc/Makefile | 10 | ||||
-rw-r--r-- | drivers/media/mc/mc-dev-allocator.c (renamed from drivers/media/media-dev-allocator.c) | 0 | ||||
-rw-r--r-- | drivers/media/mc/mc-device.c (renamed from drivers/media/media-device.c) | 0 | ||||
-rw-r--r-- | drivers/media/mc/mc-devnode.c (renamed from drivers/media/media-devnode.c) | 0 | ||||
-rw-r--r-- | drivers/media/mc/mc-entity.c (renamed from drivers/media/media-entity.c) | 0 | ||||
-rw-r--r-- | drivers/media/mc/mc-request.c (renamed from drivers/media/media-request.c) | 0 |
9 files changed, 46 insertions, 44 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index ce6782bc53ef..21cd9c02960b 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig | |||
@@ -89,39 +89,7 @@ config MEDIA_CEC_SUPPORT | |||
89 | 89 | ||
90 | source "drivers/media/cec/Kconfig" | 90 | source "drivers/media/cec/Kconfig" |
91 | 91 | ||
92 | # | 92 | source "drivers/media/mc/Kconfig" |
93 | # Media controller | ||
94 | # Selectable only for webcam/grabbers, as other drivers don't use it | ||
95 | # | ||
96 | |||
97 | config MEDIA_CONTROLLER | ||
98 | bool "Media Controller API" | ||
99 | depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT | ||
100 | help | ||
101 | Enable the media controller API used to query media devices internal | ||
102 | topology and configure it dynamically. | ||
103 | |||
104 | This API is mostly used by camera interfaces in embedded platforms. | ||
105 | |||
106 | config MEDIA_CONTROLLER_DVB | ||
107 | bool "Enable Media controller for DVB (EXPERIMENTAL)" | ||
108 | depends on MEDIA_CONTROLLER && DVB_CORE | ||
109 | help | ||
110 | Enable the media controller API support for DVB. | ||
111 | |||
112 | This is currently experimental. | ||
113 | |||
114 | config MEDIA_CONTROLLER_REQUEST_API | ||
115 | bool "Enable Media controller Request API (EXPERIMENTAL)" | ||
116 | depends on MEDIA_CONTROLLER && STAGING_MEDIA | ||
117 | help | ||
118 | DO NOT ENABLE THIS OPTION UNLESS YOU KNOW WHAT YOU'RE DOING. | ||
119 | |||
120 | This option enables the Request API for the Media controller and V4L2 | ||
121 | interfaces. It is currently needed by a few stateless codec drivers. | ||
122 | |||
123 | There is currently no intention to provide API or ABI stability for | ||
124 | this new API as of yet. | ||
125 | 93 | ||
126 | # | 94 | # |
127 | # Video4Linux support | 95 | # Video4Linux support |
diff --git a/drivers/media/Makefile b/drivers/media/Makefile index 4a330d0e5e40..f215f0a89f9e 100644 --- a/drivers/media/Makefile +++ b/drivers/media/Makefile | |||
@@ -3,15 +3,6 @@ | |||
3 | # Makefile for the kernel multimedia device drivers. | 3 | # Makefile for the kernel multimedia device drivers. |
4 | # | 4 | # |
5 | 5 | ||
6 | media-objs := media-device.o media-devnode.o media-entity.o \ | ||
7 | media-request.o | ||
8 | |||
9 | ifeq ($(CONFIG_MEDIA_CONTROLLER),y) | ||
10 | ifeq ($(CONFIG_USB),y) | ||
11 | media-objs += media-dev-allocator.o | ||
12 | endif | ||
13 | endif | ||
14 | |||
15 | # | 6 | # |
16 | # I2C drivers should come before other drivers, otherwise they'll fail | 7 | # I2C drivers should come before other drivers, otherwise they'll fail |
17 | # when compiled as builtin drivers | 8 | # when compiled as builtin drivers |
@@ -20,10 +11,10 @@ obj-y += i2c/ tuners/ | |||
20 | obj-$(CONFIG_DVB_CORE) += dvb-frontends/ | 11 | obj-$(CONFIG_DVB_CORE) += dvb-frontends/ |
21 | 12 | ||
22 | # | 13 | # |
23 | # Now, let's link-in the media core | 14 | # Now, let's link-in the media controller core |
24 | # | 15 | # |
25 | ifeq ($(CONFIG_MEDIA_CONTROLLER),y) | 16 | ifeq ($(CONFIG_MEDIA_CONTROLLER),y) |
26 | obj-$(CONFIG_MEDIA_SUPPORT) += media.o | 17 | obj-$(CONFIG_MEDIA_SUPPORT) += mc/ |
27 | endif | 18 | endif |
28 | 19 | ||
29 | obj-$(CONFIG_VIDEO_DEV) += v4l2-core/ | 20 | obj-$(CONFIG_VIDEO_DEV) += v4l2-core/ |
diff --git a/drivers/media/mc/Kconfig b/drivers/media/mc/Kconfig new file mode 100644 index 000000000000..3b9795cfcb36 --- /dev/null +++ b/drivers/media/mc/Kconfig | |||
@@ -0,0 +1,33 @@ | |||
1 | # | ||
2 | # Media controller | ||
3 | # Selectable only for webcam/grabbers, as other drivers don't use it | ||
4 | # | ||
5 | |||
6 | config MEDIA_CONTROLLER | ||
7 | bool "Media Controller API" | ||
8 | depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT | ||
9 | help | ||
10 | Enable the media controller API used to query media devices internal | ||
11 | topology and configure it dynamically. | ||
12 | |||
13 | This API is mostly used by camera interfaces in embedded platforms. | ||
14 | |||
15 | config MEDIA_CONTROLLER_DVB | ||
16 | bool "Enable Media controller for DVB (EXPERIMENTAL)" | ||
17 | depends on MEDIA_CONTROLLER && DVB_CORE | ||
18 | help | ||
19 | Enable the media controller API support for DVB. | ||
20 | |||
21 | This is currently experimental. | ||
22 | |||
23 | config MEDIA_CONTROLLER_REQUEST_API | ||
24 | bool "Enable Media controller Request API (EXPERIMENTAL)" | ||
25 | depends on MEDIA_CONTROLLER && STAGING_MEDIA | ||
26 | help | ||
27 | DO NOT ENABLE THIS OPTION UNLESS YOU KNOW WHAT YOU'RE DOING. | ||
28 | |||
29 | This option enables the Request API for the Media controller and V4L2 | ||
30 | interfaces. It is currently needed by a few stateless codec drivers. | ||
31 | |||
32 | There is currently no intention to provide API or ABI stability for | ||
33 | this new API as of yet. | ||
diff --git a/drivers/media/mc/Makefile b/drivers/media/mc/Makefile new file mode 100644 index 000000000000..119037f0e686 --- /dev/null +++ b/drivers/media/mc/Makefile | |||
@@ -0,0 +1,10 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | ||
2 | |||
3 | mc-objs := mc-device.o mc-devnode.o mc-entity.o \ | ||
4 | mc-request.o | ||
5 | |||
6 | ifeq ($(CONFIG_USB),y) | ||
7 | mc-objs += mc-dev-allocator.o | ||
8 | endif | ||
9 | |||
10 | obj-$(CONFIG_MEDIA_SUPPORT) += mc.o | ||
diff --git a/drivers/media/media-dev-allocator.c b/drivers/media/mc/mc-dev-allocator.c index ae17887dec59..ae17887dec59 100644 --- a/drivers/media/media-dev-allocator.c +++ b/drivers/media/mc/mc-dev-allocator.c | |||
diff --git a/drivers/media/media-device.c b/drivers/media/mc/mc-device.c index 6893843edada..6893843edada 100644 --- a/drivers/media/media-device.c +++ b/drivers/media/mc/mc-device.c | |||
diff --git a/drivers/media/media-devnode.c b/drivers/media/mc/mc-devnode.c index d5aa30eeff4a..d5aa30eeff4a 100644 --- a/drivers/media/media-devnode.c +++ b/drivers/media/mc/mc-devnode.c | |||
diff --git a/drivers/media/media-entity.c b/drivers/media/mc/mc-entity.c index a998a2e0ea1d..a998a2e0ea1d 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/mc/mc-entity.c | |||
diff --git a/drivers/media/media-request.c b/drivers/media/mc/mc-request.c index e3fca436c75b..e3fca436c75b 100644 --- a/drivers/media/media-request.c +++ b/drivers/media/mc/mc-request.c | |||