Support direct PCM track latency reporting

For MSD -> primary HAL software patches, it is useful
to know the primary HAL direct output thread track
latency compared with the total software patch latency,
in order to determine the contribution of primary HAL
latency to the overall MSD SW patch latency. Allow this
to be reported for MSD patch playback threads that
support it (PCM non HW A/V sync).

Test: MSD patch with PCM non HW A/V sync output
      audioflinger dumpsys track attached to direct
      output thread shows track latency.
Bug: 205161255
Change-Id: I9b271de446993dd21a0947e4d68b7a6ac23fb30c
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index 339cf58..6e79580 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -709,8 +709,7 @@
         thread->mFastTrackAvailMask &= ~(1 << i);
     }
 
-    mServerLatencySupported = thread->type() == ThreadBase::MIXER
-            || thread->type() == ThreadBase::DUPLICATING;
+    mServerLatencySupported = checkServerLatencySupported(format, flags);
 #ifdef TEE_SINK
     mTee.setId(std::string("_") + std::to_string(mThreadIoHandle)
             + "_" + std::to_string(mId) + "_T");