APM_AudioPolicyManager: getOutputForDevice() could not find output for stream

631 views
Skip to first unread message

Donal Morrissey

unread,
Nov 24, 2019, 9:25:10 PM11/24/19
to android-porting
Hi There,
We are getting the following error on our iMX8M-Mini based platform when we try to change the volume controls in the Android Settings app:

11-20 17:19:21.553  2650  2650 W APM_AudioPolicyManager: getOutputForDevice() could not find output for stream 1, sampling rate 48000, format 0x1, channels 0x3, flags 0x4
11-20 17:19:21.553  2650  2650 E AudioFlinger: createTrack() getOutputForAttr() return error -38 or invalid output handle
11-20 17:19:21.553  2790  2890 E IAudioFlinger: createTrack returned error -38
11-20 17:19:21.553  2790  2890 E AudioTrack: AudioFlinger could not create track, status: -38 output 1395807600
11-20 17:19:21.554  2790  2890 E SoundPool: Error creating AudioTrack
11-20 17:19:21.554  2790  2890 D AudioTrack: no metrics gathered, track status=-38

We're also not getting any sound from the speaker. Any suggestions as to what could be the cause of the problem? Is it that we haven't configured the security policies? Perhaps the Audio Hal Implementation hasn't been configured properly?

Best regards,
Donal

Constantine Shulyupin

unread,
Mar 3, 2020, 9:54:02 AM3/3/20
to android-porting
Hi Donal,

I also work with iMX8M-Mini. I've added another sound codec. Required sampling rate is 48000 instead of default 44100. I have similar errors.
Have you found solutions for proper sampling rate configuration?

Thanks
Reply all
Reply to author
Forward
0 new messages