Extend USB gadget configuration for ACM mode. 55/224055/1
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 6 Feb 2020 03:58:30 +0000 (12:58 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Thu, 6 Feb 2020 04:06:39 +0000 (13:06 +0900)
commit16d7f6721fe4650090cb94af21e001713956de7d
tree81fe693f4c23a40a7a7f14a5ddd10da53ebe96a8
parent6a9dfee0f087d09589556c2a81adc204eb3ffd0b
Extend USB gadget configuration for ACM mode.

TV profile doesn't have mtp-responder.service.
If mtp-responder.service does not exist in the configfs environment, usb initialization will fail.
So, we check to see if mtp-responder.service exists and remove MTP from usb mode if it doesn't exist.

If you do not build deviced in engineer mode and have a TV profile, ACM only mode exists.
(Engineer mode always adds SDB to usb mode.)

Change-Id: I0472ee10e572e36638d73df7b2be691c49d8f857
hw/usb_gadget_common.c