libsecril-client: Rename SOUND_AUDIO_PATH_HANDSET to EARPIECE
This still keeps SOUND_AUDIO_PATH_HANDSET in the _AudioPath enum to not
break the API.
Change-Id: If82520ff630ceb099c570e299685caef03b0d01b
diff --git a/ril/libsecril-client/secril-client.cpp b/ril/libsecril-client/secril-client.cpp
index 83f27cc..ffb2494 100755
--- a/ril/libsecril-client/secril-client.cpp
+++ b/ril/libsecril-client/secril-client.cpp
@@ -84,7 +84,7 @@
#define OEM_SND_TYPE_BTVOICE 0x41 // BT(0x40) + Voice(0x01)
#ifdef SAMSUNG_NEXT_GEN_MODEM
-#define OEM_SND_AUDIO_PATH_HANDSET 0x01
+#define OEM_SND_AUDIO_PATH_EARPIECE 0x01
#define OEM_SND_AUDIO_PATH_HEADSET 0x02
#define OEM_SND_AUDIO_PATH_HFK 0x06
#define OEM_SND_AUDIO_PATH_BLUETOOTH 0x04
@@ -97,7 +97,7 @@
#define OEM_SND_AUDIO_PATH_BT_WB 0x0C
#define OEM_SND_AUDIO_PATH_BT_WB_NSEC_OFF 0x0D
#else
-#define OEM_SND_AUDIO_PATH_HANDSET 0x01
+#define OEM_SND_AUDIO_PATH_EARPIECE 0x01
#define OEM_SND_AUDIO_PATH_HEADSET 0x02
#define OEM_SND_AUDIO_PATH_HFK 0x03
#define OEM_SND_AUDIO_PATH_BLUETOOTH 0x04
@@ -1146,7 +1146,7 @@
static bool isValidAudioPath(AudioPath path) {
- return (path >= SOUND_AUDIO_PATH_HANDSET && path <= OEM_SND_AUDIO_PATH_BT_WB_NSEC_OFF);
+ return (path >= SOUND_AUDIO_PATH_EARPIECE && path <= OEM_SND_AUDIO_PATH_BT_WB_NSEC_OFF);
}
@@ -1185,8 +1185,8 @@
static char ConvertAudioPath(AudioPath path) {
switch (path) {
- case SOUND_AUDIO_PATH_HANDSET:
- return OEM_SND_AUDIO_PATH_HANDSET;
+ case SOUND_AUDIO_PATH_EARPIECE:
+ return OEM_SND_AUDIO_PATH_EARPIECE;
case SOUND_AUDIO_PATH_HEADSET:
return OEM_SND_AUDIO_PATH_HEADSET;
case SOUND_AUDIO_PATH_SPEAKER:
@@ -1209,7 +1209,7 @@
return OEM_SND_AUDIO_PATH_BT_WB_NSEC_OFF;
default:
- return OEM_SND_AUDIO_PATH_HANDSET;
+ return OEM_SND_AUDIO_PATH_EARPIECE;
}
}
diff --git a/ril/libsecril-client/secril-client.h b/ril/libsecril-client/secril-client.h
index 0b3a191..0e82cde 100755
--- a/ril/libsecril-client/secril-client.h
+++ b/ril/libsecril-client/secril-client.h
@@ -138,7 +138,8 @@
* External sound device path.
*/
typedef enum _AudioPath {
- SOUND_AUDIO_PATH_HANDSET,
+ SOUND_AUDIO_PATH_EARPIECE,
+ SOUND_AUDIO_PATH_HANDSET = SOUND_AUDIO_PATH_EARPIECE,
SOUND_AUDIO_PATH_HEADSET,
SOUND_AUDIO_PATH_SPEAKER,
SOUND_AUDIO_PATH_BLUETOOTH,