In favor of SW patch in AudioPolicyManager::connectAudioSource

In case the dynamic routing rule is present, creates the SW patch from
audio source device to Android mixer (specified by dynamic routing rule)

A typical use case is to route broadcast radio to the same media output
as other media applications.

Bug: 118763832
Test: connectAudioSource from FM Radio and dumpsys media.audio_flinger

Change-Id: Id07d3a6dd9fc5f322f4eb38efe02c302018253cd
2 files changed