Skip to content

Commit

Permalink
V4L/DVB (6254): Add videobuf-vmalloc
Browse files Browse the repository at this point in the history
Adds a newer videobuf-vmalloc module. This module uses the same
videobuf controls, but implements memory allocation based on vmalloc
methods.

With this method, an USB driver can use video-buf, without needing to
request memory from the DMA-safe area.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 6bb2790 commit 87b9ad0
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 1 deletion.
4 changes: 4 additions & 0 deletions drivers/media/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ config VIDEOBUF_DMA_SG
select VIDEOBUF_GEN
tristate

config VIDEOBUF_VMALLOC
select VIDEOBUF_GEN
tristate

config VIDEO_BUF_DVB
tristate

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ endmenu # encoder / decoder chips
config VIDEO_VIVI
tristate "Virtual Video Driver"
depends on VIDEO_V4L2 && !SPARC32 && !SPARC64 && PCI
select VIDEOBUF_DMA_SG
select VIDEOBUF_VMALLOC
default n
---help---
Enables a virtual video driver. This device shows a color bar
Expand Down
1 change: 1 addition & 0 deletions drivers/media/video/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ obj-$(CONFIG_TUNER_TEA5761) += tea5761.o

obj-$(CONFIG_VIDEOBUF_GEN) += videobuf-core.o
obj-$(CONFIG_VIDEOBUF_DMA_SG) += videobuf-dma-sg.o
obj-$(CONFIG_VIDEOBUF_VMALLOC) += videobuf-vmalloc.o
obj-$(CONFIG_VIDEO_BUF_DVB) += video-buf-dvb.o
obj-$(CONFIG_VIDEO_BTCX) += btcx-risc.o
obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o
Expand Down
Loading

0 comments on commit 87b9ad0

Please sign in to comment.