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?