[General Questions and Answers] metaldr:
Hi, I just created a logcat of the LINE calls and Viber calls (Huawei G300 with CM11).

Here the result:

LINE (NOT working):

LINE

03:40:48.079 I/MediaFocusControl( 567): AudioFocus requestAudioFocus() from android.media.AudioManager@42a4fd48kr.naver.amp.android.internal.AmpSoundManager$AmpMusicControllerWithAudioFocus8@41f02568

04-11 03:40:51.069 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 03:40:51.069 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 0, 1)

04-11 03:40:51.079 I/AudioHardwareMSM76XXA( 136): Setting in-call volume to 3 (available range is 2 to 7)

04-11 03:40:51.119 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 03:40:51.119 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 03:40:51.119 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 0, 1)

04-11 03:40:51.129 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 03:40:51.129 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 03:40:51.129 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 0, 1)

04-11 03:40:51.139 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: format

04-11 03:40:51.139 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: sampleRate

04-11 03:40:51.139 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: format

04-11 03:40:51.139 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: format

04-11 03:40:51.139 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: bufferSize

04-11 03:40:51.139 I/AudioFlinger( 136): HAL output buffer size 160 frames, normal mix buffer size 160 frames

04-11 03:40:51.139 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: bufferSize

04-11 03:40:51.139 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: format

04-11 03:40:51.149 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: sampleRate

04-11 03:40:51.149 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: bufferSize

04-11 03:40:51.149 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: format

04-11 03:40:51.149 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: sampleRate

04-11 03:40:51.149 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: bufferSize

04-11 03:40:51.149 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: format

04-11 03:40:51.149 E/AudioHardwareMSM76XXA( 136): AudioStreamOutDirect: sampleRate

04-11 03:40:51.149 E/AudioFlinger( 136): createTrack_l() Bad parameter: sampleRate 16000 format 1, channelMask 0x00000001 for output 0x4003efd0 with format 1

04-11 03:40:51.149 E/AudioTrack( 3695): AudioFlinger could not create track, status: -22

04-11 03:40:51.159 I/AudioFlinger( 136): AudioFlinger's thread 0x41abb4a0 ready to run

04-11 03:40:51.159 E/AudioTrack-JNI( 3695): Error initializing AudioTrack

04-11 03:40:51.169 E/android.media.AudioTrack( 3695): Error code -20 when initializing AudioTrack.

04-11 03:40:51.169 E/AudioHardwareMSM76XXA( 136): Not closing MVS driver

04-11 03:40:51.179 E/AudioHardwareMSM76XXA( 136): Not closing MVS driver

04-11 03:40:51.179 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 03:40:51.179 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 03:40:51.369 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 03:40:51.369 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 03:40:51.369 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 0, 1)

04-11 03:40:51.389 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 03:40:51.389 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 03:40:51.389 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 0, 1)

04-11 03:40:53.189 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 03:40:53.189 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 03:40:53.219 I/MediaFocusControl( 567): AudioFocus abandonAudioFocus() from android.media.AudioManager@42a4fd48kr.naver.amp.android.internal.AmpSoundManager$AmpMusicControllerWithAudioFocus8@41f02568

Viber (WORKING):

VIBER

04-11 04:19:42.268 I/MediaFocusControl( 567): AudioFocus requestAudioFocus() from android.media.AudioManager@41b7a4a0com.viber.voip.sound.AudioFocusController$1@41b87488

04-11 04:19:42.368 I/AudioHardwareMSM76XXA( 136): Setting in-call volume to 0 (available range is 2 to 7)

04-11 04:19:42.478 I/AudioHardwareMSM76XXA( 136): Setting in-call volume to 3 (available range is 2 to 7)

04-11 04:19:42.488 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:19:42.488 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 04:19:52.348 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 04:19:52.348 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:19:52.348 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 04:19:52.358 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 04:19:52.358 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:19:52.358 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 04:19:52.368 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 04:19:52.368 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:19:52.368 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 04:19:52.418 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:19:52.418 W/AudioHardwareMSM76XXA( 136): VoipCall in MODE_IN_COMMUNICATION

04-11 04:19:52.418 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 0, 1)

04-11 04:19:52.448 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 04:19:52.448 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:19:52.448 W/AudioHardwareMSM76XXA( 136): VoipCall in MODE_IN_COMMUNICATION

04-11 04:19:52.448 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 0, 1)

04-11 04:19:52.458 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 04:19:52.458 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:19:52.598 W/AudioFlinger( 136): RecordThread: buffer overflow

04-11 04:19:52.598 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:20:01.978 W/AudioFlinger( 136): RecordThread: buffer overflow

04-11 04:20:09.408 W/AudioFlinger( 136): RecordThread: buffer overflow

04-11 04:20:10.328 I/MediaFocusControl( 567): AudioFocus abandonAudioFocus() from android.media.AudioManager@41b7a4a0com.viber.voip.sound.AudioFocusController$1@41b87488

04-11 04:20:10.338 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:20:10.368 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:20:10.368 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 04:20:10.378 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:20:10.418 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 04:20:10.418 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:20:10.418 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 04:20:10.438 I/AudioHardwareMSM76XXA( 136): do input routing device 400000

04-11 04:20:10.438 I/AudioHardwareMSM76XXA( 136): Routing audio to Handset

04-11 04:20:10.438 W/AudioHardwareMSM76XXA( 136): rpc_snd_set_device(0, 1, 1)

04-11 04:20:12.138 I/MediaFocusControl( 567): AudioFocus abandonAudioFocus() from android.media.AudioManager@41b7a4a0com.viber.voip.sound.AudioFocusController$1@41b87488

Would it be possible to fix this error by editing the file audio_policy.conf?

Sorry for my English.

Greetings.