Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8c30fd6 authored by Jesse Chan's avatar Jesse Chan Committed by synt4x93
Browse files

drivers: usb: add CONFIG_USB_ANDROID_SAMSUNG_MTP

Change-Id: I0da0830cc07ca1b2475e1c5cc83f272e3890656c
parent dccdf0db
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -151,6 +151,15 @@ config USB_ANDROID_SAMSUNG_COMPOSITE
	  Multi Configuration.
	  If you enable this option, android composite will be changed.

config USB_ANDROID_SAMSUNG_MTP
	boolean "Samsung MTP function"
	depends on USB_G_ANDROID && !SEC_FACTORY
	help
	  Provides Media Transfer Protocol (MTP) support
	  for samsung gadget driver.
	  If you enable this option,
	  google mtp will be changed to samsung mtp.

config USB_DUN_SUPPORT
	boolean "DUN support function"
	depends on USB_G_ANDROID
+12 −2
Original line number Diff line number Diff line
@@ -52,8 +52,18 @@ usb_f_adb-y := f_adb.o
obj-$(CONFIG_USB_CONFIGFS_F_ADB)+= usb_f_adb.o
usb_f_tcm-y			:= f_tcm.o
obj-$(CONFIG_USB_F_TCM)		+= usb_f_tcm.o
ifeq ($(CONFIG_SEC_FACTORY),y)
	usb_f_mtp-y             := f_mtp.o
	obj-$(CONFIG_USB_F_MTP) += usb_f_mtp.o
else
ifeq ($(CONFIG_USB_ANDROID_SAMSUNG_MTP),y)
	usb_f_mtp_samsung-y     := f_mtp_samsung.o
	obj-$(CONFIG_USB_F_MTP) += usb_f_mtp_samsung.o
else
	usb_f_mtp-y             := f_mtp.o
        obj-$(CONFIG_USB_F_MTP) += usb_f_mtp.o
endif
endif
usb_f_ptp-y                     := f_ptp.o
obj-$(CONFIG_USB_F_PTP)         += usb_f_ptp.o
usb_f_audio_source-y            := f_audio_source.o
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@
#include <linux/configfs.h>
#include <linux/usb/composite.h>

#include "../configfs.h"
#include "configfs.h"

#define MTP_BULK_BUFFER_SIZE       16384
#define INTR_BUFFER_SIZE           28