paulhsu / csipsimple

Automatically exported from code.google.com/p/csipsimple
1 stars 1 forks source link

Wrong mic used on Samsung Infuse 4G (AT&T) #1522

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Any in- and out-going calls using CSIPSIMPLE
2.
3.

What is the expected output? What do you see instead?
Correct mic (close to mouth) should be used but the one next to earpiece was 
used regardless of mic selection in expert mode setting.

What version of the product are you using? On what operating system?
nightly built r1225 on GB 2.3.6 CKL2 (root)

Please provide any additional information below.
The wrong mic resulted in a lot of surrounding noise was picked up. The latency 
was significantly reduced (using openSL-ES) compared with the version available 
on the Android market.

Original issue reported on code.google.com by vuthuang...@gmail.com on 19 Jan 2012 at 11:08

GoogleCodeExporter commented 9 years ago
Did you tried to change the audio mode for sip calls?
It may also affect the micro in use.
Samsung does really crappy things with their audio layer. Each device needs its 
own workaround and sometimes it could give headache to get something that is 
working. And they sometimes mess themselves with the mode and the micro source 
(and sometimes also with the frequency ).

The fact that you can't modify volume as stated in issue 1476 is also probably 
linked to the audio mode for sip calls or another routing option. However, not 
sure that other audio mode will allow you to choose route between speaker and 
earpiece.
Theorical normal settings for a clean implementation of android 2.3 is to have 
sip mode to COMMUNICATION and micro to COMMUNICATION. It's what's used by the 
stock android sip application. However, many manufacturers postponed the 
support of sip on their devices and didn't paid attention to do things cleanly 
on their audio stack.

Without the device on my hands it's hard to tell what are the correct options 
for this device.

If you find something that works the best, feel free to tell me, and I'll 
integrate as default setting for this device. (I will also need some logs to be 
able to know the exact device code name).

Original comment by r3gis...@gmail.com on 20 Jan 2012 at 1:12

GoogleCodeExporter commented 9 years ago
Issue 1476 has been merged into this issue.

Original comment by r3gis...@gmail.com on 20 Jan 2012 at 1:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you very much for quick response. It appears that Samsung audio may have 
caused the problem as Viber, MizuDroid that were tested on this phone also 
picked the wrong mic. Skype does not have this issue though.

the logs collected are as follows

<<<PLEASE ADD THE BUG DESCRIPTION HERE>>>

Based on the GPL CSipSimple version : 0.04-00 r1235
Here are important informations about Device : 
android.os.Build.BOARD : SGH-I997
android.os.Build.BRAND : samsung
android.os.Build.DEVICE : SGH-I997
android.os.Build.ID : GINGERBREAD
android.os.Build.MODEL : SAMSUNG-SGH-I997
android.os.Build.PRODUCT : SGH-I997
android.os.Build.TAGS : release-keys
android.os.Build.VERSION.INCREMENTAL : UCKL2
android.os.Build.VERSION.RELEASE : 2.3.6
android.os.Build.VERSION.SDK : 10

<<<PLEASE ADD THE BUG DESCRIPTION HERE>>>

I have tried a couple of different settings, tested on Pennytel sip server 
(supports g711A, g711U and g729) and found the following settings work almost 
perfectly for me on a 3G network (Telstra NextG, HSPA+, latency about 100ms - 
160ms in my area):

microphone source: VOICE_CALL (others work too)
sip mode: IN_CALL (resulted in CORRECT mic being used)
Audio implementation: openSL-ES
codec: G711 resulted in less latency than G729 (less CPU processing?)
speaker amplification: 2.5
microphone amplification: 10.0 (wish to have the default increased by 10 times 
as I have to talk much louder for the other end to hear me well);

Please note that during a sip call, the in-call volume keys on this phone did 
not work directly but can be used  by first pressing menu/media keys that 
brought up the volume and microphone amplification. However, pressing the keys 
only adjusted the volume amplification.

Last night I tested with Viber loaded at the same time with CSIPSIMPLE and 
surprisedly found that the wrong mic was used by CSIPSIMPLE! When I stopped 
Viber, CSIPSIMPLE picked the correct mic again. Skype did not cause the issue 
as Viber did.

That's all for the update. Please let me know if you need further information.

Cheers,

Original comment by vuthuang...@gmail.com on 23 Jan 2012 at 4:03

GoogleCodeExporter commented 9 years ago
After removing MizuDroid from this phone, Viber has worked properly with the 
correct mic used. Running both CSIPSIMPLE and Viber together did not cause any 
problems.

Original comment by vuthuang...@gmail.com on 24 Jan 2012 at 6:43

GoogleCodeExporter commented 9 years ago
After further testing one by one application after every reboot of the phone, I 
would like to confirm that Skype, Viber and MizuDroid use the wrong mic, i.e. 
the one next to phone's earpiece (tests were done with and without sticky tape 
covering the mic near the earpiece). CSipSimple only uses the correct mic when 
sip mode is IN_CALL.

My apology for providing some false information in the earlier comments.

Original comment by vuthuang...@gmail.com on 24 Jan 2012 at 11:19

GoogleCodeExporter commented 9 years ago
Updated to the latest nightly built r1250.
After extensive testing, it is now clear that when phone noise suppression is 
ON, wrong mic is used. Using WebRTC Implementation always results in wrong mic 
used.

PLEASE have the microphone amplification level increased at least to 15 
(instead of 10 as available now). At microphone amplification of 10, my voice 
through CSipSimple is still much weaker than that going through a normal voice 
call.

Thank you in advance.

Original comment by vuthuang...@gmail.com on 9 Feb 2012 at 3:48

GoogleCodeExporter commented 9 years ago
I'm still having this problem with CSipSimple. Did you ever get it to work with 
the correct mic? Where is the noise suppression option located?

Thank you muchly!

Original comment by clayton....@gmail.com on 14 Jul 2012 at 5:48

GoogleCodeExporter commented 9 years ago
Hi, I have to disable noise suppression on the Infuse and increase
microphone amplification in CsipSimple to max, i.e. 10. cheers, Vu.

Original comment by vuthuang...@gmail.com on 18 Jul 2012 at 5:33