[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] os4839:
More audio testing, partial logcat included

Hi,

finally I came around to test some more. After having a quick look at the logcat dumps yesterday I decided to experiment a little more while running logcat and grepping for audio_route: Apply path: in order to check for differences when calling via Signal as opposed to via normal phone call. I also tried the Music app in between, so here is the dump including comments, hope that helps to narrow down the problem:

# Playing Music with stock Music app
03-26 23:12:44.160 3501 7930 D audio_route: Apply path: speaker

# Initiating Signal Call #1 from another phone and accepting it, then ending it, using normal call settings: earpiece and earpiece-mic, not the speaker
03-26 23:13:09.356 3501 7930 D audio_route: Apply path: speaker
03-26 23:13:13.716 3501 3535 D audio_route: Apply path: earpiece
03-26 23:13:13.992 3501 12711 D audio_route: Apply path: earpiece-mic

# Initiating Signal Call #2 from another phone, not taking the call
03-26 23:25:48.394 3501 7930 D audio_route: Apply path: speaker

# Regular phone call #1 from another phone, not taking the call
03-26 23:26:34.474 3501 7930 D audio_route: Apply path: speaker

# Right after denying phone call #1 I see another two of these
03-26 23:26:46.601 3501 7930 D audio_route: Apply path: speaker
03-26 23:26:56.372 3501 7930 D audio_route: Apply path: speaker

# Starting phone call #2, accepting it, using normal call settings
03-26 23:27:26.765 3501 7930 D audio_route: Apply path: speaker
03-26 23:27:29.610 3501 8960 D audio_route: Apply path: voice-earpiece-wb
03-26 23:27:29.615 3501 8960 D audio_route: Apply path: voice-earpiece-mic-wb

# hanging up:
203-26 23:27:49.927 3501 8960 D audio_route: Apply path: voice-earpiece-wb
03-26 23:27:49.943 3501 8960 D audio_route: Apply path: earpiece

# Music app does not react on hitting the play button, previous track not displayed

# Then initiating Signal Call #3, while ringing:
03-26 23:28:42.112 3501 7930 D audio_route: Apply path: speaker
# path says speaker but earpiece is used for the ringtone

# Initating phone call #3, while ringing:
03-26 23:29:32.566 3501 7930 D audio_route: Apply path: speaker
# but again, sound comes from ear piece; then I answer the call
03-26 23:29:42.647 3501 3535 D audio_route: Apply path: voice-earpiece-wb
03-26 23:29:42.651 3501 3535 D audio_route: Apply path: voice-earpiece-mic-wb
# then during the call I touch the loudspeaker icon
03-26 23:30:04.597 3501 3535 D audio_route: Apply path: voice-speaker-wb
03-26 23:30:04.602 3501 3535 D audio_route: Apply path: voice-speaker-mic-wb
# Then I end the call:
03-26 23:30:16.599 3501 3535 D audio_route: Apply path: voice-speaker-wb
03-26 23:30:16.619 3501 8960 D audio_route: Apply path: speaker

# Seems that fixed it:
# Signal Call #4, ringtone coming from the right speaker again:
03-26 23:30:40.727 3501 7930 D audio_route: Apply path: speaker
# Taking that call and in between switching to loudspeaker mode before hanging up:
03-26 23:30:48.528 3501 8960 D audio_route: Apply path: earpiece
03-26 23:30:48.810 3501 14172 D audio_route: Apply path: earpiece-mic
03-26 23:30:52.367 3501 8960 D audio_route: Apply path: speaker-mic
03-26 23:30:52.459 3501 8960 D audio_route: Apply path: speaker
03-26 23:31:22.907 3501 3535 D audio_route: Apply path: speaker
03-26 23:31:23.328 3501 8960 D audio_route: Apply path: earpiece

# Music still didn't play, had to kill and respawn the app, then it worked

After grepping through /system these paths seem to derive from /system/etc/mixer_paths_0.xml, does this mean somethings misconfigured there or is it a bug in the phone app?

Here are two more logcat dumps, first one normal phone call, second one with speaker enabled during phone call, so output is cleaner by omitting my comments:

03-26 23:10:34.240 3501 7930 D audio_route: Apply path: speaker
03-26 23:10:37.513 3501 8960 D audio_route: Apply path: voice-earpiece-wb
03-26 23:10:37.517 3501 8960 D audio_route: Apply path: voice-earpiece-mic-wb
03-26 23:10:46.524 3501 8960 D audio_route: Apply path: voice-earpiece-wb
03-26 23:10:46.548 3501 8960 D audio_route: Apply path: earpiece

03-26 23:11:13.911 3501 7930 D audio_route: Apply path: speaker
03-26 23:11:16.635 3501 8960 D audio_route: Apply path: voice-earpiece-wb
03-26 23:11:16.639 3501 8960 D audio_route: Apply path: voice-earpiece-mic-wb
03-26 23:11:20.929 3501 3535 D audio_route: Apply path: voice-speaker-wb
03-26 23:11:20.932 3501 3535 D audio_route: Apply path: voice-speaker-mic-wb
03-26 23:11:28.795 3501 3535 D audio_route: Apply path: voice-earpiece-wb
03-26 23:11:28.795 3501 3535 D audio_route: Apply path: voice-earpiece-mic-wb
03-26 23:11:31.706 3501 8960 D audio_route: Apply path: voice-speaker-wb
03-26 23:11:31.707 3501 8960 D audio_route: Apply path: voice-speaker-mic-wb
03-26 23:11:35.389 3501 3535 D audio_route: Apply path: voice-speaker-wb
03-26 23:11:35.407 3501 3535 D audio_route: Apply path: speaker