[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] mcampbellsmith:
My comments below:

1. Start a first video record : everything is OK, both set to 18

03-20 14:16:46.115 V/audio_hw_primary(1958): Set 'IN2L Volume'.0 to 18
03-20 14:16:46.130 V/audio_hw_primary(1958): Set 'IN1R Volume'.0 to 18

-> good

2. Stop the first video record : everything is OK , both set to default value (10)

03-20 14:16:52.225 V/audio_hw_primary(1958): Set 'IN2L Volume'.0 to 10
03-20 14:16:52.235 V/audio_hw_primary(1958): Set 'IN1R Volume'.0 to 10

-> good

3. Start a first incall : there is a problem here (second line) : IN2L is first set to 18 and then 28 !

03-20 14:17:46.025 V/audio_hw_primary(1958): Set 'IN2L Volume'.0 to 18
[COLOR="Red"]03-20 14:17:46.095 V/audio_hw_primary(1958): Set 'IN2L Volume' to '28'[/COLOR]

-> I think this is correct. If IN2L volume remains at 18 then the incall mic volume would be too low and the person on the other end of the phone would not hear you. 28 is set by 'select_output_device: set voicecall route: default_input'

4. Stop the first incall : there is a problem here : IN2L is not set to default : no line on the log. And there is a weird noisy sound and when I hang up.

-> error, refer below

5. Start a second incall : there is still a problem here : IN2L is not set at 18, it's still at 28 !

[COLOR="red"]03-20 14:20:08.800 V/audio_hw_primary(1958): Set 'IN2L Volume' to '28'[/COLOR]

-> refer to 3

6. Stop the second incall : there is a problem here : IN2L is not set to default : no line on the log..And there is a weird noisy sound and when I hang up.

-> error, refer below

7. Start a third incall : there is still a problem here : IN2L is not set at 18, it's still at 28 !

[COLOR="red"]03-20 14:21:48.155 V/audio_hw_primary(1958): Set 'IN2L Volume' to '28'[/COLOR]

-> refer to 3

8. Stop the third incall : there is a problem here : IN2L is not set to default : no line on the log. And there is a weird noisy sound and when I hang up.

-> error, refer below

9. Start a second video record : there is a problem here : IN1R is set to 18 (OK) BUT IN2L is not set to 18 (is it still at 28 ?).

03-20 14:22:30.185 V/audio_hw_primary(1958): Set 'IN1R Volume'.0 to 18

-> error, refer below

10. Stop the second video record : everything is OK , both set to default value (10)

03-20 14:22:33.025 V/audio_hw_primary(1958): Set 'IN2L Volume'.0 to 10
03-20 14:22:33.035 V/audio_hw_primary(1958): Set 'IN1R Volume'.0 to 10

-> good

11. Start a third video record : everything is OK, both set to 18

03-20 14:23:04.445 V/audio_hw_primary(1958): Set 'IN2L Volume'.0 to 18
03-20 14:23:04.450 V/audio_hw_primary(1958): Set 'IN1R Volume'.0 to 18

-> good

12. Stop the third video record : everything is OK , both set to default value (10)

03-20 14:23:07.425 V/audio_hw_primary(1958): Set 'IN2L Volume'.0 to 10
03-20 14:23:07.435 V/audio_hw_primary(1958): Set 'IN1R Volume'.0 to 10

-> good

13. Start a fourth incall : there is a problem here (second line) : IN2L is first set to 18 and then 28 !

03-20 14:23:24.960 V/audio_hw_primary(1958): Set 'IN2L Volume'.0 to 18
[COLOR="red"]03-20 14:23:24.980 V/audio_hw_primary(1958): Set 'IN2L Volume' to '28'[/COLOR]

-> refer to 3

14. Stop the fourth incall : there is a problem here : IN2L is not set to default : no line on the log. And there is a weird noisy sound and when I hang up.

-> error, refer below

It appears the input device (AUDIO_DEVICE_IN_BUILTIN_MIC) is not reset after a call. This means when the camera is called again, the values for AUDIO_DEVICE_IN_BUILTIN_MIC is not set correctly because a device that is already active is assumed to have the correct value.

I'll upload a new test build soon