Skip to content

Commit a991412

Browse files
pinchartlgregkh
authored andcommitted
USB gadget: Webcam device
This webcam gadget instantiates a UVC camera (360p and 720p resolutions in YUYV and MJPEG). Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cdda479 commit a991412

File tree

3 files changed

+409
-1
lines changed

3 files changed

+409
-1
lines changed

drivers/usb/gadget/Kconfig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,8 +877,15 @@ config USB_G_HID
877877

878878
# put drivers that need isochronous transfer support (for audio
879879
# or video class gadget drivers), or specific hardware, here.
880+
config USB_G_WEBCAM
881+
tristate "USB Webcam Gadget"
882+
help
883+
The Webcam Gadget acts as a composite USB Audio and Video Class
884+
device. It provides a userspace API to process UVC control requests
885+
and stream video data to the host.
880886

881-
# - none yet
887+
Say "y" to link the driver statically, or "m" to build a
888+
dynamically linked module called "g_webcam".
882889

883890
endchoice
884891

drivers/usb/gadget/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ g_cdc-objs := cdc2.o
4545
g_multi-objs := multi.o
4646
g_hid-objs := hid.o
4747
g_nokia-objs := nokia.o
48+
g_webcam-objs := webcam.o
4849

4950
obj-$(CONFIG_USB_ZERO) += g_zero.o
5051
obj-$(CONFIG_USB_AUDIO) += g_audio.o
@@ -59,4 +60,5 @@ obj-$(CONFIG_USB_CDC_COMPOSITE) += g_cdc.o
5960
obj-$(CONFIG_USB_G_HID) += g_hid.o
6061
obj-$(CONFIG_USB_G_MULTI) += g_multi.o
6162
obj-$(CONFIG_USB_G_NOKIA) += g_nokia.o
63+
obj-$(CONFIG_USB_G_WEBCAM) += g_webcam.o
6264

0 commit comments

Comments
 (0)