Improve error message Audio playback capture

Also avoid code duplication.

Test: atest android.media.cts.AudioPlaybackCaptureTest#testCaptureMediaUsage
Bug: 111453086
Change-Id: I65d241be34f5b8924106a60c49652a4d32aa60c8
Signed-off-by: Kevin Rocard <krocard@google.com>
1 file changed