diff options
author | Janne Grunau <j@jannau.net> | 2009-09-01 18:15:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:20:03 -0400 |
commit | 4457ef1d6163533073efdebed82a049aad44e3b3 (patch) | |
tree | faf7001493af74cd315b2f44ca8053debd5deb6e /drivers/media | |
parent | f9089b0f9ed48be9c83101d1f1fded37b415a90e (diff) |
V4L/DVB (12684): DVB: make DVB_MAX_ADAPTERS configurable
Support for more than 8 DVB devices is requested regularly so make it
a kconfig variable instead of a header define. Values in the range 4-32
are tested.
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/Kconfig | 13 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvbdev.h | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/drivers/media/dvb/Kconfig b/drivers/media/dvb/Kconfig index b0198691892a..1d0e4b1ef10c 100644 --- a/drivers/media/dvb/Kconfig +++ b/drivers/media/dvb/Kconfig | |||
@@ -2,6 +2,19 @@ | |||
2 | # DVB device configuration | 2 | # DVB device configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | config DVB_MAX_ADAPTERS | ||
6 | int "maximum number of DVB/ATSC adapters" | ||
7 | depends on DVB_CORE | ||
8 | default 8 | ||
9 | range 1 255 | ||
10 | help | ||
11 | Maximum number of DVB/ATSC adapters. Increasing this number | ||
12 | increases the memory consumption of the DVB subsystem even | ||
13 | if a much lower number of DVB/ATSC adapters is present. | ||
14 | Only values in the range 4-32 are tested. | ||
15 | |||
16 | If you are unsure about this, use the default value 8 | ||
17 | |||
5 | config DVB_DYNAMIC_MINORS | 18 | config DVB_DYNAMIC_MINORS |
6 | bool "Dynamic DVB minor allocation" | 19 | bool "Dynamic DVB minor allocation" |
7 | depends on DVB_CORE | 20 | depends on DVB_CORE |
diff --git a/drivers/media/dvb/dvb-core/dvbdev.h b/drivers/media/dvb/dvb-core/dvbdev.h index 487919bea7ae..895e2efca8a9 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.h +++ b/drivers/media/dvb/dvb-core/dvbdev.h | |||
@@ -30,7 +30,12 @@ | |||
30 | 30 | ||
31 | #define DVB_MAJOR 212 | 31 | #define DVB_MAJOR 212 |
32 | 32 | ||
33 | #if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0 | ||
34 | #define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS | ||
35 | #else | ||
36 | #warning invalid CONFIG_DVB_MAX_ADAPTERS value | ||
33 | #define DVB_MAX_ADAPTERS 8 | 37 | #define DVB_MAX_ADAPTERS 8 |
38 | #endif | ||
34 | 39 | ||
35 | #define DVB_UNSET (-1) | 40 | #define DVB_UNSET (-1) |
36 | 41 | ||