Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in-call volume setting odd behavior #48

Open
JayZCai opened this issue Aug 13, 2011 · 3 comments
Open

in-call volume setting odd behavior #48

JayZCai opened this issue Aug 13, 2011 · 3 comments
Assignees

Comments

@JayZCai
Copy link

JayZCai commented Aug 13, 2011

Some inconsistent volume settings noticed by users:

Originally Posted by jawz101:

For my example consider there are 8 volume levels; 0 being no sound and 7 being loudest.
Level 2 or 3 is where I usually have incall volume set but it is louder than what I'd expect respective to the scale.
I then lower it to volume level 1 and the phone goes mute- which it should only do at zero. But then when I increase the volume back to level 2 it's quieter than it was previously- I'd say a level 1 volume.

It seems that to get to level 1 you have to lower the volume to no sound and then go to level 2 and level 2 will now be what level 1 should be.

Originally posted by Carnifax:

in call volume volume display is like +1 visual queue above actual setting, I.E. have 1 "click" of yellow in volume readout as if volume is lowest, but get no sound, have ot have on 2 clicks of volume (kinda annoying when you get those loud callers, go to turn phone vol way down.... end up turning earpeice speaker off.)

@JayZCai
Copy link
Author

JayZCai commented Aug 16, 2011

Here's a logcat of this problem (filtered with 'grep Audio', I have complete logcat too if needed). Apparently the indicator can only go as low as 1 click, not zero clicks, it's mute at that setting.

I/AudioService( 165): Remote Control unregisterMediaButtonEventReceiver() for ComponentInfo{com.opera.browser/com.opera.plugins.MediaButtonIntentHandler$MediaButtonIntentReceiver}
I/AudioService( 165): AudioFocus requestAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls
D/AudioHardwareInterface( 113): setMode(IN_CALL)
D/AudioFlinger( 113): setParameters(): io 1, keyvalue routing=1, tid 159, calling tid 113
E/AudioHardwareMSM72XX( 113): doRouting CALLED, outputDevices = 0x1, mFmRadioEnabled = 0
I/AudioHardwareMSM72XX( 113): Routing audio to Handset
W/AudioHardwareMSM72XX( 113): Routing to 5 really (current: -1)
E/AudioHardwareMSM72XX( 113): Parsing error in AudioFilter.csv.
E/AudioHardwareMSM72XX( 113): Parsing error in AudioFilter.csv.
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.200000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 1 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.000000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 0 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.200000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 1 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.400000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 3 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.600000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 4 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.800000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 6 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(1.000000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 7 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.800000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 6 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(1.000000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 7 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.800000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 6 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(1.000000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 7 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.800000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 6 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.600000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 4 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.400000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 3 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.200000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 1 (available range is 0 to 7.0)
D/AudioHardwareMSM72XX( 113): setVoiceVolume(0.000000)
I/AudioHardwareMSM72XX( 113): Setting in-call volume to 0 (available range is 0 to 7.0)
I/AudioService( 165): AudioFocus abandonAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls
E/AudioHardwareMSM72XX( 113): Parsing error in AudioFilter.csv.
D/AudioHardwareInterface( 113): setMode(NORMAL)
D/AudioFlinger( 113): setParameters(): io 1, keyvalue routing=1, tid 159, calling tid 113
E/AudioHardwareMSM72XX( 113): doRouting CALLED, outputDevices = 0x1, mFmRadioEnabled = 0
I/AudioHardwareMSM72XX( 113): Routing audio to Handset
W/AudioHardwareMSM72XX( 113): Routing to 5 really (current: -1)
E/AudioHardwareMSM72XX( 113): Parsing error in AudioFilter.csv.
E/AudioHardwareMSM72XX( 113): Parsing error in AudioFilter.csv.
E/AudioHardwareMSM72XX( 113): Parsing error in AudioFilter.csv.

@ghost
Copy link

ghost commented Aug 19, 2011

I will mention that for the past few days I've dropped back to Bumblebee ROM for battery life reasons. One thing I noticed is they don't have the incall volume control go all the way down to mute. It can be lowered to the first volume level but not completely off. I'm thinking this bug is inherent in the kernel or something because it's obvious that Froyo people have had to deal w/ workarounds. I'll call my gf & see what her stock OV does

@inferiorhumanorgans
Copy link
Owner

That's not a kernel issue, and something that I changed recently (after the GPS stuff). 9bdcb9b.

The minimum volume level should be unrelated to the inconsistent real volume. If you look at the logcat output you can see the correlation between setVoiceVolume (input) and "setting in-call volume" (output - what's sent to the audio chipset via RPC).

If you look at the commit diffs I also changed the rounding algorithm, but I don't expect that to make much of a difference. I suspect the problem is either the auto volume control (change that file to contain a zero instead of a one) or a bug with the audio hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants