Bug 1074177 - DTMF tone are not coming on Bluetooth headset. r=mwu.
authorRandy Lin <rlin@mozilla.com>
Thu, 16 Oct 2014 12:40:09 +0800
changeset 210683 b845c0769a85de220afd4a7af3eea2a7c46fec4d
parent 210682 3bfafff4ff073b43c76b6756e97c4ba582065aa7
child 210684 3dbe5e1f6a7df993f5c3c39f3c5c45bfece80357
push id9399
push usercbook@mozilla.com
push dateThu, 16 Oct 2014 14:14:26 +0000
treeherderfx-team@5e76f050709f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmwu
bugs1074177
milestone36.0a1
Bug 1074177 - DTMF tone are not coming on Bluetooth headset. r=mwu.
dom/system/gonk/AudioManager.cpp
--- a/dom/system/gonk/AudioManager.cpp
+++ b/dom/system/gonk/AudioManager.cpp
@@ -830,16 +830,21 @@ AudioManager::SetStreamVolumeIndex(int32
   status += AudioSystem::setStreamVolumeIndex(
               static_cast<audio_stream_type_t>(aStream),
               aIndex,
               AUDIO_DEVICE_OUT_WIRED_HEADPHONE);
   status += AudioSystem::setStreamVolumeIndex(
               static_cast<audio_stream_type_t>(aStream),
               aIndex,
               AUDIO_DEVICE_OUT_EARPIECE);
+  status += AudioSystem::setStreamVolumeIndex(
+              static_cast<audio_stream_type_t>(aStream),
+              aIndex,
+              AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET);
+
   return status ? NS_ERROR_FAILURE : NS_OK;
 #endif
 }
 
 nsresult
 AudioManager::GetStreamVolumeIndex(int32_t aStream, int32_t *aIndex) {
   if (!aIndex) {
     return NS_ERROR_INVALID_ARG;