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

Commit 53e6dd62 authored by Derek Chen's avatar Derek Chen
Browse files

hal: add support for hfp on auto platform

Add auto platform specific pcm device id and
playback volume control to support hfp with
dual asm loopback.

Change-Id: I6bd2ae63c8733dd770f48c1b2557c4d3d5a6b101
parent 854e422d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -65,6 +65,10 @@ ifneq ($(filter sdm660,$(TARGET_BOARD_PLATFORM)),)
endif
endif

ifeq ($(TARGET_BOARD_AUTO),true)
  LOCAL_CFLAGS += -DPLATFORM_AUTO
endif

LOCAL_CFLAGS += -Wno-macro-redefined

LOCAL_HEADER_LIBRARIES := libhardware_headers
+2 −0
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
#define HFP_RX_VOLUME     "SEC AUXPCM LOOPBACK Volume"
#elif defined PLATFORM_MSM8996
#define HFP_RX_VOLUME     "PRI AUXPCM LOOPBACK Volume"
#elif defined PLATFORM_AUTO
#define HFP_RX_VOLUME     "Playback 36 Volume"
#elif defined (PLATFORM_MSM8998) || defined (PLATFORM_MSMFALCON) || defined (PLATFORM_SDM845) || defined (PLATFORM_SDM710) || defined (PLATFORM_QCS605) || defined (PLATFORM_MSMNILE) || defined (PLATFORM_MSMSTEPPE) || defined (PLATFORM_TRINKET)
#define HFP_RX_VOLUME     "SLIMBUS_7 LOOPBACK Volume"
#else
+3 −0
Original line number Diff line number Diff line
@@ -492,6 +492,9 @@ enum {
#elif PLATFORM_BEAR_FAMILY
#define HFP_SCO_RX 17
#define HFP_ASM_RX_TX 18
#elif PLATFORM_AUTO
#define HFP_SCO_RX 36
#define HFP_ASM_RX_TX 29
#else
#define HFP_SCO_RX 23
#define HFP_ASM_RX_TX 24