summaryrefslogtreecommitdiffstats
path: root/ril
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-02-14 17:24:02 +0100
committerChristopher N. Hesse <raymanfx@gmail.com>2017-02-15 10:38:30 +0100
commite0058816e9a0d31827813ce6cd97101d471b6d71 (patch)
treee3775bb17b012ebce22d848c52dec59420e4f3d7 /ril
parente6286b92087eb1437b689a0f57f6472411da6593 (diff)
downloadandroid_hardware_samsung-e0058816e9a0d31827813ce6cd97101d471b6d71.tar.gz
android_hardware_samsung-e0058816e9a0d31827813ce6cd97101d471b6d71.tar.bz2
android_hardware_samsung-e0058816e9a0d31827813ce6cd97101d471b6d71.zip
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
Diffstat (limited to 'ril')
-rwxr-xr-xril/libsecril-client/secril-client.cpp12
-rwxr-xr-xril/libsecril-client/secril-client.h3
2 files changed, 8 insertions, 7 deletions
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 @@ namespace android {
#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 @@ namespace android {
#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 isValidSoundType(SoundType type) {
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 ConvertSoundType(SoundType type) {
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 @@ static char ConvertAudioPath(AudioPath path) {
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 @@ typedef enum _SoundType {
* 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,