ponces/treble_aosp

Samsung Tab S6 only bottom speakers work

Closed this issue · 5 comments

Acknowledgements

  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • This is not a feature request.
  • This issue is not a duplicate of an existing issue.
  • The issue is solely related to this GSI.
  • This issue occurs with the latest available build.
  • I am not running a custom vendor on my device.
  • This issue is not kernel related.
  • This issue is not related to Magisk/KernelSU/APatch.

Info

  • Device: Samsung T860
  • GSI version: v2024.07.03
  • Vendor version:

Expected Behavior

The two top and two bottom speakers should work all the time. (i.e. all 4 speakers should play sound)

Current Behavior

For most apps, only the bottom two speakers work.
If the alternative audio policy is enabled, sometimes apps like Total Commander may be able to play files like mp3 on all 4 speakers.

Possible Solution

A hack that seems to work is to just manually edit the route in the vendor audio policy xml so that the only source for the speaker is raw, compressed_offload and mmap_no_irq_out

I can pinpoint what the exact source that is the issue in the future.
Unfortunately I don't know a lot about Android, so any pointers to find a better fix are appreciated.

Steps to Reproduce

Play a Youtube video on v2024.07.03 or v2024.01.05

Logs

No response

Additional context

No response

Ah well, apologies, i just realized this issue may not be a good fit for this gsi. Pointers to where I could take this would be appreciated if this should not be fixed here.

A hack that seems to work is to just manually edit the route in the vendor audio policy xml so that the only source for the speaker is raw, compressed_offload and mmap_no_irq_out

Are you mentioning this fix?

Are you mentioning this fix?

Yes, that's me.

I think this is more of a bad hack and not really a long term fix.
Unfortunately there seems to be a slight crackling issue with some apps - it sounds like the audio buffer is too short.
Sometimes it happens with youtube, sometimes it doesn't.

My plan is to look at the official samsung image and what they do in their xmls.
Then I'm going to look into what the current audio patches and then try to fiddle around to maybe get it to work properly and find the issue or maybe get some relevant logging output.

Some people apparently have had properly working audio, so I'll try to replicate their configs as closely as possible.
I'll probably also try different kernels to make sure that's not the issue. At this point I'm just going to try everything.

Closing this as the fix should probably happen in the trebledroid repos if I find a proper one, this repo is most certainly not the issue as it also happens with the same android versions with other treble based GSIs.