policy_hal: fix VoIP rx path use ULL usecase

During VoIP use audio path scenario, ULL usecase is
used for VoIP rx path due to AUDIO_OUTPUT_FLAG_RAW is
set. And primary output is on standby status. Due to
it, VoIP tx device cannot get proper device.

Fix this by setting primary outupt flag when VoIP RX
use audio path.

CRs-Fixed: 2051669
Change-Id: I878486d8e0805d9fccae524c5fc2fc6240dfe8f9
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index c8d673a..50916c8 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -1507,6 +1507,9 @@
                     flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_VOIP_RX |
                                                  AUDIO_OUTPUT_FLAG_DIRECT);
                     ALOGD("Set VoIP and Direct output flags for PCM format");
+                } else {
+                   //If VoIP is going in audio path, make VoIP use primary output
+                   flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY);
                 }
             }
         }