AudioSessionManager makes stop to audiodestination for earjack unplug and call start.
authorkeonho07.kim <keonho07.kim@samsung.com>
Wed, 26 Jun 2013 13:11:42 +0000 (22:11 +0900)
committerkeonho07.kim <keonho07.kim@samsung.com>
Wed, 26 Jun 2013 13:25:13 +0000 (22:25 +0900)
[Title] AudioSessionManager makes stop to audiodestination for earjack unplug and call start.
[Problem] N_SE-41200, N_SE-41501
[Cause] N/A
[Solution] Application should handle situation of these cases.

Change-Id: Ia01ffa436696945cf8106da7ff69dc761ac096c8

Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp

index 5ec294d..d50876e 100755 (executable)
@@ -76,13 +76,8 @@ static ASM_cb_result_t AudioDestinationAudioSessionEventSourcePause(ASM_event_so
         return ASM_CB_RES_IGNORE;
 
     switch (eventSource) {
-    case ASM_EVENT_SOURCE_CALL_START:
     case ASM_EVENT_SOURCE_ALARM_START:
-    case ASM_EVENT_SOURCE_EARJACK_UNPLUG:
-    case ASM_EVENT_SOURCE_MEDIA:
-    case ASM_EVENT_SOURCE_EMERGENCY_START:
     case ASM_EVENT_SOURCE_OTHER_PLAYER_APP:
-    case ASM_EVENT_SOURCE_RESOURCE_CONFLICT:
         pDestination->stop();
         return ASM_CB_RES_PAUSE;
     default:
@@ -98,6 +93,7 @@ static ASM_cb_result_t AudioDestinationAudioSessionEventSourcePlay(ASM_event_sou
 
     switch (eventSource) {
     case ASM_EVENT_SOURCE_ALARM_END:
+    case ASM_EVENT_SOURCE_OTHER_PLAYER_APP:
         pDestination->start();
         return ASM_CB_RES_PLAYING;
     default: