phoneengine/audiohandling/src/cpeaudiodata.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 27 2f8f8080a020
parent 46 bc5a64e5bc3c
--- a/phoneengine/audiohandling/src/cpeaudiodata.cpp	Tue Jun 15 14:14:38 2010 +0100
+++ b/phoneengine/audiohandling/src/cpeaudiodata.cpp	Thu Jul 22 16:33:21 2010 +0100
@@ -29,6 +29,7 @@
 #include <tms.h>
 #include <tmseffectobsrvr.h>
 #include <tmsglobalvoleffect.h>
+#include <telinformationpskeys.h>
 #include "pepanic.pan"
 #include "cpeaudiodtmftoneplayer.h"
 #include "cpeaudioroutingmonitor.h"
@@ -545,6 +546,16 @@
         {
         output = CTelephonyAudioRouting::ELoudspeaker;
         }
+    else
+        {
+        TInt value; 
+        const TInt err = RProperty::Get( KPSUidTelCarMode, KTelCarMode, value );
+        if ( !err && value == EPSCarModeOn )
+            {
+            output = CTelephonyAudioRouting::ELoudspeaker;
+            }
+        }
+        
     TEFLOGSTRING2( KTAMESINT, "AUD CPEAudioData::RoutePreference() output %d", output );
     return output;
     }