AudioFlinger: Move sink config statics to the interface
Test: atest AudioRecordTest AudioTrackTest
Test: Camera YouTube
Bug: 182392769
Bug: 292018229
Change-Id: Ice6ee1a99515ad25f5270d9157a9edbabff767bb
diff --git a/services/audioflinger/IAfThread.h b/services/audioflinger/IAfThread.h
index 235378b..87f819f 100644
--- a/services/audioflinger/IAfThread.h
+++ b/services/audioflinger/IAfThread.h
@@ -117,6 +117,9 @@
};
static const char* threadTypeToString(type_t type);
+ static bool isValidPcmSinkChannelMask(audio_channel_mask_t channelMask);
+ static bool isValidPcmSinkFormat(audio_format_t format);
+
virtual status_t readyToRun() = 0;
virtual void clearPowerManager() = 0;
virtual status_t initCheck() const = 0;