fix false disconnect due to a signal sent to the reading process
[firefly-linux-kernel-4.4.55.git] / drivers / usb / gadget / Kconfig
index fc7b02bfcf09c7b5f223df9183493fb0fbbf761e..5cf6802b02ae72987146734461f43570a355bf46 100644 (file)
@@ -203,6 +203,12 @@ config USB_F_MTP
        tristate
 
 config USB_F_PTP
+        tristate
+
+config USB_F_AUDIO_SRC
+       tristate
+
+config USB_F_ACC
        tristate
 
 choice
@@ -391,6 +397,30 @@ config USB_CONFIGFS_F_PTP
        help
          USB gadget PTP support
 
+config USB_CONFIGFS_F_ACC
+       boolean "Accessory gadget"
+       depends on USB_CONFIGFS
+       select USB_F_ACC
+       help
+         USB gadget Accessory support
+
+config USB_CONFIGFS_F_AUDIO_SRC
+       boolean "Audio Source gadget"
+       depends on USB_CONFIGFS && USB_CONFIGFS_F_ACC
+       depends on SND
+       select SND_PCM
+       select USB_F_AUDIO_SRC
+       help
+         USB gadget Audio Source support
+
+config USB_CONFIGFS_UEVENT
+       boolean "Uevent notification of Gadget state"
+       depends on USB_CONFIGFS
+       help
+         Enable uevent notifications to userspace when the gadget
+         state changes. The gadget can be in any of the following
+         three states: "CONNECTED/DISCONNECTED/CONFIGURED"
+
 config USB_CONFIGFS_F_UAC1
        bool "Audio Class 1.0"
        depends on USB_CONFIGFS