[OnePlus 5T  Questions & Answers] pauloup:
Hi,

I'm struggling for hours to fix this issue.

Please anybody help me.

TLDR

Sound stopped working all of the sudden on my OP5T.

No sound on speaker, earpiece, or headphones.

No sound during call at all.

Tried everything.

UPDATE: SOLVED on Nov 9, 2020

I can't believe it was this simply! I just reflashed my current ROM over itself and the issue is gone!

My conclusion is that it was probably a corrupted system file. So if you're experiencing similar issues, just go to Settings > System Update, and so a Local Update with your current ROM image file. Be aware that if you're rooted, you need to unroot and restore the stock recovery image before reflashing.

Issue

Calls: I can't hear or be heard in calls, and no sound is saved in native call recording audio files.

Music: I can't play music. When taping play, in any player, the time doesn't advance and no sound is heard.

Notifications: No sound of notifications, or ringtone, or any system sound. In Settings to select a sound, nothing is heard.

Other: Apps seem to struggle to play audio, with frozen or slowed progress bars, and no sound at all.

I know the basics

Alert Slider is in Ring mode.

Sound volume is maxed for Ring, Media and Alarm.

Do not disturb is disabled.

What works?

Enabling Accessibility > Mono audio makes music play though bottom speaker, but still no sound for notifications, system sounds or calls. Video files start playing with sound in any app, but Whatsapp audios still don't play. Wired headphones still doesn't have sound.

Bluetooth earphones can play music, and system sounds, but still no sound during calls.

Both mic are working normally, and I can record sound and monitor the volume levels in mcpro24fps video recording app.

The integrated mic in headphones also works and can be recorded, although no sound is played in the earphones.

System

OnePlus 5T 8GB - OOS 9.0.11

Root Magisk, only one module: OOS Native Call Recording Enabler. Disabling it made no difference.

Sys Logs

Relevant audio errors show up in sys logs everytime.

While playing a song:

[11-02 06:18:28.145 732:1276 E/voice]
voice_is_in_call:in_call 0

[11-02 06:18:28.145 732:1276 E/volume_listener]
check_and_set_gain_dep_cal:
Failed to set gain dep cal level

[11-02 06:18:28.145 732:732 E/audio_hw_primary]
out_set_volume: compress mute 0

[11-02 06:18:28.146 732:732 E/audio_hw_primary]
out_set_compr_volume:
Could not get ctl for mixer cmd -
Compress Playback 17 Volume

[11-02 06:18:28.146 785:8124 E/AudioFlinger]
Error when setting output stream volume: -22

[11-02 06:18:28.146 732:8126 E/msm8974_platform]
platform_check_backends_match:
Invalid snd_device =

[11-02 06:18:28.146 732:8126 E/soundtrigger]
audio_extn_sound_trigger_update_stream_status:
invalid input device 0x0, for event 3

[11-02 06:18:28.149 732:8126 E/audio_hw_primary]
audio_enable_asm_bit_width_enforce_mode:
Could not get ctl for mixer cmd -
ASM Bit Width

[11-02 06:18:28.150 732:8126 E/audio_hw_primary]
start_output_stream: failed /w error cannot open
device '/dev/snd/comprC0D17':
No such file or directory

While making a call:

[11-02 16:20:06.025 745:2339 E/voice_extn]
update_calls: voice_start_usecase()
failed for usecase: 36

[11-02 16:20:06.025 745:3405 E/voice]
voice_is_in_call:in_call 1

[11-02 16:20:06.084 745:7447 E/voice]
voice_is_call_state_active:call_state 0

[11-02 16:20:06.084 745:7447 E/voice]
voice_check_and_set_incall_rec_usecase:
As voice call is not active, Incall rec usecase
can't be selected for requested source:4

All these errors occur many times per minute. The first one appears to be voice_is_in_call, and it repeats itself many times between the other errors.

Full logs can be found here:

Sys logs: Error events while playing music View attachment 5128903

Sys logs: Error events while making a call View attachment 5128901

I tried to Google search each of these syslog keywords. Nothing relevant showed up, or fixed the issue.

OnePlus Diagnostic app

Results

Abnormal items: Receiver.

Normal: Speaker, Microphone, Headset.

View attachment 5128943

I ran the Manual Audio test in OnePlus Diagnostic app and I just couldn't hear any sound from the earpiece.

Sound recorded was played through bottom speaker normally though.

Earpiece?

It may be a hardware issue in the earpiece, sure... But then:

Why not wired headphone audio at all?

Why not call sound on bluetooth headphones?

Why mic doesn't work during call, and I can't be heard?

That's so confusing, and sounds a lot like a software issue...

Lesser AudioSwitch app

Lesser AudioSwitch app has some debug reports, and they indicate that the earpiece is connected:

View attachment 5128947 View attachment 5128945

My bet...

...is that somehow the OS got stuck in a "in call" mode, and isn't allowing the earpiece to be used.

And any sound that's prohibited during a call can't to be played also. Even the sounds in a real call.

I wish I knew how to verify this.

What didn't work to fix it

Restart the phone, normal or safe mode (so no 3rd app culprit)

Wipe cache in Recovery

Clean app data and cache for: Phone, Phone Services, Call Management

Shutdown, remove SIM cards, start and shutdown, insert SIM cards, start

Lesser AudioSwitch app

Google Phone app

Enable Airplane mode

ViPER4Android FX magisk module

Smack the phone with a hammer, mentally

What I'll try only if nothing else works

Factory reset. Not optimistic, many say that it didn't solve similar issues.

Open the phone and see if the earpiece is somehow disconnected.

I live in Brazil, so official support isn't available and OnePlus 3rd party services are hard to find.

Online official support is a joke, never answered any issue I've opened. That's why I'm here and not there.

Final notes

I have this phone since March 2018, and everything was working perfectly.

The phone was safe and sound when the issue started.

I wasn't even listening to music or making a call.

The only different thing I remember doing was that I tried an app called Power Shade, and had to give it many important permissions (like phone permission). But I uninstalled it right after. And as soon as I noticed the issue, I reinstalled the app, removed all permissions, tried changing settings, but nothing seemed relevant, or acctualy made a difference. Also no Google results for sound issues with this app.

Thank you

I'm really lost, and running out of options. I'm thankful for any help, or even if you just read until here.

Thank you.