audioflinger: Forward stream parameters to downstream patches
When passing parameters to immediate output streams also check
if there are any downstream patch threads that need to receive
these parameters.
Added AudioFlinger::forwardParametersToDownstreamPatches_l
method, similar to existing broacastParametersToRecordThreads_l.
Bug: 63901775
Test: make
Change-Id: I83229fd6f4890e5e69a40d568d1c3e1eebed6504
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 0bb492a..4a780ce 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -678,6 +678,9 @@
bool updateOrphanEffectChains(const sp<EffectModule>& effect);
void broacastParametersToRecordThreads_l(const String8& keyValuePairs);
+ void forwardParametersToDownstreamPatches_l(
+ audio_io_handle_t upStream, const String8& keyValuePairs,
+ std::function<bool(const sp<PlaybackThread>&)> useThread = nullptr);
// AudioStreamIn is immutable, so their fields are const.
// For emphasis, we could also make all pointers to them be "const *",