Skip to content

Commit 86e16b8

Browse files
Sakari AilusHans Verkuil
authored andcommitted
media: v4l: Use correct dependency for camera sensor drivers
The Kconfig option that enables compiling camera sensor drivers is VIDEO_CAMERA_SENSOR rather than MEDIA_CAMERA_SUPPORT as it was previously. Fix this. Also select VIDEO_OV7670 for marvell platform drivers only if MEDIA_SUBDRV_AUTOSELECT and VIDEO_CAMERA_SENSOR are enabled. Reported-by: Randy Dunlap <[email protected]> Fixes: 7d3c7d2 ("media: i2c: Add a camera sensor top level menu") Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent f6c8a31 commit 86e16b8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/media/platform/marvell/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config VIDEO_CAFE_CCIC
77
depends on V4L_PLATFORM_DRIVERS
88
depends on PCI && I2C && VIDEO_DEV
99
depends on COMMON_CLK
10-
select VIDEO_OV7670
10+
select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR
1111
select VIDEOBUF2_VMALLOC
1212
select VIDEOBUF2_DMA_CONTIG
1313
select VIDEOBUF2_DMA_SG
@@ -22,7 +22,7 @@ config VIDEO_MMP_CAMERA
2222
depends on I2C && VIDEO_DEV
2323
depends on ARCH_MMP || COMPILE_TEST
2424
depends on COMMON_CLK
25-
select VIDEO_OV7670
25+
select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR
2626
select I2C_GPIO
2727
select VIDEOBUF2_VMALLOC
2828
select VIDEOBUF2_DMA_CONTIG

drivers/media/usb/em28xx/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ config VIDEO_EM28XX_V4L2
1212
select VIDEO_SAA711X if MEDIA_SUBDRV_AUTOSELECT
1313
select VIDEO_TVP5150 if MEDIA_SUBDRV_AUTOSELECT
1414
select VIDEO_MSP3400 if MEDIA_SUBDRV_AUTOSELECT
15-
select VIDEO_MT9V011 if MEDIA_SUBDRV_AUTOSELECT && MEDIA_CAMERA_SUPPORT
16-
select VIDEO_OV2640 if MEDIA_SUBDRV_AUTOSELECT && MEDIA_CAMERA_SUPPORT
15+
select VIDEO_MT9V011 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR
16+
select VIDEO_OV2640 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR
1717
help
1818
This is a video4linux driver for Empia 28xx based TV cards.
1919

drivers/media/usb/go7007/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ config VIDEO_GO7007
1212
select VIDEO_TW2804 if MEDIA_SUBDRV_AUTOSELECT
1313
select VIDEO_TW9903 if MEDIA_SUBDRV_AUTOSELECT
1414
select VIDEO_TW9906 if MEDIA_SUBDRV_AUTOSELECT
15-
select VIDEO_OV7640 if MEDIA_SUBDRV_AUTOSELECT && MEDIA_CAMERA_SUPPORT
1615
select VIDEO_UDA1342 if MEDIA_SUBDRV_AUTOSELECT
16+
select VIDEO_OV7640 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR
1717
help
1818
This is a video4linux driver for the WIS GO7007 MPEG
1919
encoder chip.

0 commit comments

Comments
 (0)