From 28ad0a90cfc35817fdff097a6a3ed73251c24800 Mon Sep 17 00:00:00 2001 From: Badhri Jagan Sridharan Date: Wed, 27 Jun 2018 21:37:27 -0700 Subject: [PATCH 1/2] usb gadget hal: Increase disconnect timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Increase disconnect timeout from 10ms to 100ms for the host ports which dont strictly adhere to the spec to sense disconnect. This is a work around given that some of the root ports dont detect it. From the USB 2.0 spec guidelines, the disconnect should be detected in 2.5us. From the USB 2.0 spec (pg 186) Time to detect a disconnect event at a hub’s downstream facing port TDDIS Section 7.1.7.3 2 2.5 µs Bug: 110412433 Test: Walleye entering accessory mode in USB 3.0 with IOGear cable and USB 3.0 host. Change-Id: I8d8f62dc1a7bcbc9c7727c51cad7f3cb07ba6b50 --- usb/UsbGadget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb/UsbGadget.cpp b/usb/UsbGadget.cpp index 603afbba..66ac85e5 100644 --- a/usb/UsbGadget.cpp +++ b/usb/UsbGadget.cpp @@ -30,7 +30,7 @@ constexpr int BUFFER_SIZE = 512; constexpr int MAX_FILE_PATH_LENGTH = 256; constexpr int EPOLL_EVENTS = 10; constexpr bool DEBUG = false; -constexpr int DISCONNECT_WAIT_US = 10000; +constexpr int DISCONNECT_WAIT_US = 100000; #define BUILD_TYPE "ro.build.type" #define GADGET_PATH "/config/usb_gadget/g1/" From c1a57ef03602d3f91c4e253187a60e40c3148a31 Mon Sep 17 00:00:00 2001 From: Jasmine Cha Date: Thu, 10 May 2018 17:29:58 +0800 Subject: [PATCH 2/2] audio: Enable Waves effect - turn on config and add effect library for Waves effect Bug: 111283341 Test: build pass and manual audio test on product/aosp Change-Id: Idba8eb83a88e3aa4f254b5ab4beddaa6a4477cd8 Signed-off-by: Jasmine Cha --- BoardConfig.mk | 1 + device.mk | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index b502a35b..f274d6b6 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -129,6 +129,7 @@ AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true AUDIO_FEATURE_ENABLED_SND_MONITOR := true AUDIO_FEATURE_ENABLED_USB_TUNNEL := true BOARD_ROOT_EXTRA_SYMLINKS := /vendor/lib/dsp:/dsp +AUDIO_FEATURE_ENABLED_MAXX_AUDIO := true # Include whaoo modules USES_DEVICE_GOOGLE_WAHOO := true diff --git a/device.mk b/device.mk index 9ea22039..9c03ce3a 100755 --- a/device.mk +++ b/device.mk @@ -481,7 +481,8 @@ PRODUCT_PACKAGES += \ libqcomvisualizer \ libqcomvoiceprocessing \ libqcomvoiceprocessingdescriptors \ - libqcompostprocbundle + libqcompostprocbundle \ + libmalistener PRODUCT_PACKAGES += \ audio.primary.msm8998 \