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

Commit e2a149dd authored by Satya Krishna Pindiproli's avatar Satya Krishna Pindiproli Committed by Gerrit - the friendly Code Review server
Browse files

hal: Add chipset specific HFP device IDs

Different chipsets have different device IDs as the front end
dai links are specific to chipsets. Ensure that the right device
IDs are used based on the chipset.

CRs-Fixed: 611132
Change-Id: If7d1a0de30653ed85d52bcb35fd13b0cc7282657
parent 15d877ab
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -168,8 +168,6 @@ enum {
#define FM_PLAYBACK_PCM_DEVICE 5
#define FM_CAPTURE_PCM_DEVICE  6
#define HFP_PCM_RX 5
#define HFP_SCO_RX 23
#define HFP_ASM_RX_TX 24

#define INCALL_MUSIC_UPLINK_PCM_DEVICE 1
#define INCALL_MUSIC_UPLINK2_PCM_DEVICE 16
@@ -213,6 +211,14 @@ enum {
#define QCHAT_CALL_PCM_DEVICE 20
#endif

#ifdef PLATFORM_MSM8x26
#define HFP_SCO_RX 21
#define HFP_ASM_RX_TX 22
#else
#define HFP_SCO_RX 23
#define HFP_ASM_RX_TX 24
#endif

#define LIB_CSD_CLIENT "libcsd-client.so"
/* CSD-CLIENT related functions */
typedef int (*init_t)();