summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libaudio/AudioHardware.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libaudio/AudioHardware.cpp b/libaudio/AudioHardware.cpp
index f95b675..74fe6d2 100644
--- a/libaudio/AudioHardware.cpp
+++ b/libaudio/AudioHardware.cpp
@@ -719,6 +719,7 @@ void AudioHardware::setVoiceVolume_l(float volume)
break;
case AudioSystem::DEVICE_OUT_SPEAKER:
+ case AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET:
ALOGD("### speaker call volume");
type = SOUND_TYPE_SPEAKER;
break;
@@ -863,6 +864,7 @@ status_t AudioHardware::setIncallPath_l(uint32_t device)
break;
case AudioSystem::DEVICE_OUT_SPEAKER:
+ case AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET:
ALOGD("### incall mode speaker route");
path = SOUND_AUDIO_PATH_SPEAKER;
break;
@@ -1135,6 +1137,9 @@ const char *AudioHardware::getOutputRouteFromDevice(uint32_t device)
switch (device) {
case AudioSystem::DEVICE_OUT_EARPIECE:
return "RCV";
+ case AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET:
+ if (mMode == AudioSystem::MODE_RINGTONE) return "RING_SPK";
+ else return "EXTRA_DOCK_SPEAKER";
case AudioSystem::DEVICE_OUT_SPEAKER:
if (mMode == AudioSystem::MODE_RINGTONE) return "RING_SPK";
else return "SPK";
@@ -1146,6 +1151,7 @@ const char *AudioHardware::getOutputRouteFromDevice(uint32_t device)
else return "HP";
case (AudioSystem::DEVICE_OUT_SPEAKER|AudioSystem::DEVICE_OUT_WIRED_HEADPHONE):
case (AudioSystem::DEVICE_OUT_SPEAKER|AudioSystem::DEVICE_OUT_WIRED_HEADSET):
+ case (AudioSystem::DEVICE_OUT_SPEAKER|AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET):
if (mMode == AudioSystem::MODE_RINGTONE) return "RING_SPK_HP";
else return "SPK_HP";
case AudioSystem::DEVICE_OUT_BLUETOOTH_SCO:
@@ -1163,6 +1169,7 @@ const char *AudioHardware::getVoiceRouteFromDevice(uint32_t device)
case AudioSystem::DEVICE_OUT_EARPIECE:
return "RCV";
case AudioSystem::DEVICE_OUT_SPEAKER:
+ case AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET:
return "SPK";
case AudioSystem::DEVICE_OUT_WIRED_HEADPHONE:
case AudioSystem::DEVICE_OUT_WIRED_HEADSET: