[Galaxy Tab S2 Android Development] aljazzair:
Today I installed LOS18.

Followed the same procedure as with LOS20 to test audio:

I booted up, reviewed all settings to make sure they are correct, logged into google, updated Google Play Services, Maps, etc, installed the Assistant app.

Then I went to the Maps app > Navigation Settings > Test Sound.

The tablet would not play sound on the speaker or BT headset.

Of course I toggled the volume buttons to make sure sound level and source were OK.

Here is an output of adb logcat at the moment the Test Sound button is pressed, with no sound coming out.

03-31 13:06:30.234 3604 15303 D NuPlayerDriver: NuPlayerDriver(0xb43f45a0) created, clientPid(15010)

03-31 13:06:30.244 15010 15277 W MediaPlayer: Use of stream types is deprecated for operations other than volume control

03-31 13:06:30.244 15010 15277 W MediaPlayer: See the documentation of setAudioStreamType() for what to use instead with android.media.AudioAttributes to qualify your playback use case

03-31 13:06:30.245 3598 16913 E Utils : did not find channel-count and/or sample-rate

03-31 13:06:30.245 3598 4178 E Utils : did not find channel-count and/or sample-rate

03-31 13:06:30.250 3820 16962 E SoundPool::Sound: doLoad: unable to load sound

03-31 13:06:30.251 3820 3915 W AS.SfxHelper: onLoadSoundEffects(), Error -2147483648 while loading sample /product/media/audio/ui/Effect_Tick.ogg

03-31 13:06:30.251 3820 3915 W AS.SfxHelper: onLoadSoundEffects(), Error while loading samples

03-31 13:06:30.251 3820 16963 E SoundPool::Sound: doLoad: unable to load sound

03-31 13:06:30.273 3598 4178 E Utils : did not find channel-count and/or sample-rate

03-31 13:06:30.278 3528 16311 I EffectsFactory: EffectCreate() create_effect

03-31 13:06:30.283 3820 16962 E SoundPool::Sound: doLoad: unable to load sound

03-31 13:06:30.288 3604 16969 D GenericSource: FileSource remote

03-31 13:06:30.294 3598 4178 E Utils : did not find channel-count and/or sample-rate

03-31 13:06:30.295 3598 4178 E Utils : did not find channel-count and/or sample-rate

03-31 13:06:30.310 3820 4622 I MediaFocusControl: requestAudioFocus() from uid/pid 10117/15010 clientId=android.media.AudioManager@ff5311bbddo@b7573c4 callingPack=com.google.android.apps.maps req=3 flags=0x0 sdk=34

03-31 13:06:30.324 3604 16965 I GenericSource: start

03-31 13:06:30.334 3604 16972 E NuPlayerDecoder: Failed to create audio/mpeg decoder

03-31 13:06:30.334 3604 16965 E NuPlayer: received error(0x80000000) from audio decoder, flushing(0), now shutting down

03-31 13:06:30.335 15010 15392 E MediaPlayerNative: error (1, -2147483648)

03-31 13:06:30.335 15010 15010 V MediaRouter: Selecting route: RouteInfo{ name=Tablette, description=null, status=null, category=RouteCategory{ name=Système types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }

03-31 13:06:30.336 15010 15010 E MediaPlayer: Error (1,-2147483648)

03-31 13:06:30.336 15010 15010 E MediaPlayerNative: stop called in state 0, mPlayer(0x7688d680)

03-31 13:06:30.336 15010 15010 E MediaPlayerNative: error (-38, 0)

03-31 13:06:30.337 15010 15010 V MediaPlayer: resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false

03-31 13:06:30.337 15010 15010 V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null

03-31 13:06:30.338 3604 3604 D NuPlayerDriver: reset(0xb43f45a0) at state 5

03-31 13:06:30.345 3604 16965 D NuPlayerDriver: notifyResetComplete(0xb43f45a0)

03-31 13:06:30.353 3528 8118 W AudioFlinger::EffectHandle: disconnect Effect handle 0xa6fdff80 disconnected after thread destruction

03-31 13:06:30.353 15010 15010 W MediaPlayer: mediaplayer went away with unhandled events

03-31 13:06:30.355 3820 4622 I MediaFocusControl: abandonAudioFocus() from uid/pid 10117/15010 clientId=android.media.AudioManager@ff5311bbddo@b7573c4

03-31 13:06:33.786 9292 9435 I HDM.SodaAudioManager: (REDACTED) #onAudioData: %s bytes, getAudioReadSize %s

Again, we can see the similar messages as before in the logs around NuPLayerDriver, MediaPlayer errors, etc, including:

SoundPool::Sound: doLoad: unable to load sound

===

EDIT: I reinstalled LOS17:

lineage-17.1-20210825-UNOFFICIAL-gts210ltexx

open_gapps-arm-10.0-nano-20201223

The audio issues described in the previous posts for both LOS18 and LOS20 are not present in LOS17.

Stock music app works, assistant responds via audio, maps gives audio directions, switching ringtones is audible etc...

I performed the same test as previously:

Google Maps settings > navigation settings> test sound

Here is a adb logcat of this event when it is performed successfully:

04-01 07:50:29.540 3547 8872 D audio_route: Apply path: speaker
04-01 07:50:29.553 3615 5763 D NuPlayerDriver: NuPlayerDriver(0xb2bbd780) created, clientPid(12962)
04-01 07:50:29.559 3615 5763 I Codec2Client: Creating a Codec2 client to service "software"
04-01 07:50:29.563 3615 5763 I Codec2Client: Client to Codec2 service "software" created
04-01 07:50:29.564 12962 13387 W MediaPlayer: Use of stream types is deprecated for operations other than volume control
04-01 07:50:29.564 12962 13387 W MediaPlayer: See the documentation of setAudioStreamType() for what to use instead with android.media.AudioAttributes to qualify your playback use case
04-01 07:50:29.568 4077 4077 V AvrcpMediaPlayerList: onPlaybackConfigChanged(): Configs list size=5
04-01 07:50:29.572 4077 4077 V AvrcpMediaPlayerList: onPlaybackConfigChanged(): Configs list size=5
04-01 07:50:29.605 3615 14300 D GenericSource: FileSource remote
04-01 07:50:29.626 3894 4279 I MediaFocusControl: requestAudioFocus() from uid/pid 10140/12962 clientId=android.media.AudioManager@cd5f415bddo@f791d5a callingPack=com.google.android.apps.maps req=3 flags=0x0 sdk=34
04-01 07:50:29.653 4077 4077 V AvrcpMediaPlayerList: onPlaybackConfigChanged(): Configs list size=5
04-01 07:50:29.654 3615 14298 I GenericSource: start
04-01 07:50:29.654 4077 4077 D AvrcpMediaPlayerList: onPlaybackConfigChanged(): config=ID:175 -- type:android.media.MediaPlayer -- u/pid:10140/12962 -- state:started -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_NAVIGATION_GUIDANCE content=CONTENT_TYPE_SPEECH flags=0x800 tags= bundle=null
04-01 07:50:29.654 4077 4077 D AvrcpMediaPlayerList: onPlaybackConfigChanged isActive=true, mAudioPlaybackIsActive=false
04-01 07:50:29.656 4077 4077 I AvrcpMediaPlayerList: updateMediaForAudioPlayback: update state=PlaybackState {state=3, position=0, buffered position=0, speed=1.0, updated=2757230, actions=0, custom actions=[], active item id=-1, error=null}
04-01 07:50:29.656 4077 4077 D AvrcpMediaPlayerList: sendMediaUpdate
04-01 07:50:29.656 4077 4077 D AvrcpMediaPlayerList: sendMediaUpdate state=PlaybackState {state=3, position=0, buffered position=0, speed=1.0, updated=2757230, actions=0, custom actions=[], active item id=-1, error=null}
04-01 07:50:29.656 4077 4077 D AvrcpTargetService: onMediaUpdated: track_changed=false state=true queue=false
04-01 07:50:29.656 4077 4077 D AvrcpNativeInterface: sendMediaUpdate: metadata=false playStatus=true queue=false
04-01 07:50:29.656 4077 4077 D AvrcpTargetJni: sendMediaUpdateNative
04-01 07:50:29.657 4077 4077 I bt_stack: [INFO:avrcp_service.cc(346)] virtual void bluetooth::avrcp::AvrcpService::SendMediaUpdate(bool, bool, bool) track_changed=0 : play_state=1 : queue=0
04-01 07:50:29.670 3615 14304 I OMXClient: IOmx service obtained
04-01 07:50:29.671 3625 3625 I OMXMaster: makeComponentInstance(OMX.google.mp3.decoder) in android.hardwar process
04-01 07:50:29.674 12962 12962 V MediaRouter: Selecting route: RouteInfo{ name=Tablet, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
04-01 07:50:29.679 3625 3625 E OMXNodeInstance: setConfig(0xababa900:google.mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
04-01 07:50:29.679 3615 14304 I ACodec : codec does not support config priority (err -2147483648)
04-01 07:50:29.694 3615 14304 I MediaCodec: MediaCodec will operate in async mode
04-01 07:50:29.730 3547 3859 D AudioFlinger: Client defaulted notificationFrames to 4000 for frameCount 8000
04-01 07:50:29.735 3547 3859 D AF::TrackHandle: OpPlayAudio: track:74 usage:12 not muted
04-01 07:50:29.743 3615 14302 D AudioTrack: getTimestamp_l(37): device stall time corrected using current time 1784021200962
04-01 07:50:30.321 12962 13046 I cr_CronetUrlRequestContext: destroyNativeStreamLocked org.chromium.net.impl.CronetBidirectionalStream@2a40724
04-01 07:50:32.102 3615 14302 D AudioTrack: stop(37): called with 44081 frames delivered
04-01 07:50:32.629 3615 5762 D NuPlayerDriver: stop(0xb2bbd780)
04-01 07:50:32.631 12962 12962 V MediaPlayer: resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
04-01 07:50:32.631 12962 12962 V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
04-01 07:50:32.631 3615 5762 D NuPlayerDriver: reset(0xb2bbd780) at state 8
04-01 07:50:32.634 4077 4077 V AvrcpMediaPlayerList: onPlaybackConfigChanged(): Configs list size=5
04-01 07:50:32.635 4077 4077 D AvrcpMediaPlayerList: onPlaybackConfigChanged isActive=false, mAudioPlaybackIsActive=true
04-01 07:50:32.637 4077 4077 I AvrcpMediaPlayerList: updateMediaForAudioPlayback: update state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=28542, actions=2616839, custom actions=[], active item id=-1, error=null}
04-01 07:50:32.638 4077 4077 D AvrcpMediaPlayerList: sendMediaUpdate
04-01 07:50:32.638 4077 4077 D AvrcpMediaPlayerList: sendMediaUpdate state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=28542, actions=2616839, custom actions=[], active item id=-1, error=null}
04-01 07:50:32.638 4077 4077 D AvrcpTargetService: onMediaUpdated: track_changed=false state=true queue=false
04-01 07:50:32.638 4077 4077 D AvrcpNativeInterface: sendMediaUpdate: metadata=false playStatus=true queue=false
04-01 07:50:32.638 4077 4077 D AvrcpTargetJni: sendMediaUpdateNative
04-01 07:50:32.639 4077 4077 I bt_stack: [INFO:avrcp_service.cc(346)] virtual void bluetooth::avrcp::AvrcpService::SendMediaUpdate(bool, bool, bool) track_changed=0 : play_state=1 : queue=0
04-01 07:50:32.640 4077 4077 V AvrcpMediaPlayerList: onPlaybackConfigChanged(): Configs list size=4
04-01 07:50:32.661 3615 14298 D NuPlayerDriver: notifyResetComplete(0xb2bbd780)
04-01 07:50:32.661 3615 5762 W AMessage: failed to post message as target looper for handler 0 is gone.
04-01 07:50:32.674 12962 12962 W MediaPlayer: mediaplayer went away with unhandled events
04-01 07:50:32.674 12962 12962 W MediaPlayer: mediaplayer went away with unhandled events
04-01 07:50:32.676 3894 4327 I MediaFocusControl: abandonAudioFocus() from uid/pid 10140/12962 clientId=android.media.AudioManager@cd5f415bddo@f791d5a

UPDATE: "PROGRESS" MADE.

After more fiddling, wiping, reinstalling more than a dozen time, I made it work on LineageOS 20.

I have a functioning tablet with audio.

Meaning, Music app plays songs, Google Assistant and Google Maps are able to answer requests through voice, etc....

I need to do more testing, but this looks promising.

Have yet to insert a sim card and test RIL/Telephony, etc.

Thanks to @MrBrause for his hard work on this build :)