Merge commit '0199fcd0fc04be3361b8843110594b87a0dfc4a9' into eclair-mr2-plus-aosp
* commit '0199fcd0fc04be3361b8843110594b87a0dfc4a9':
HTC update: add attenuation to avoid distortion, and compensate in
Merge commit '10254cc35f5cb7ebe2c7ef452815486cb8e92a33' into eclair-mr2
* commit '10254cc35f5cb7ebe2c7ef452815486cb8e92a33':
HTC update: add attenuation to avoid distortion, and compensate in
AudioHardware QSD8k:
- Add setParameters comment to control noise suppression states via new IOCTL A1026_SET_NS_STATE implemented in a1026 driver.
- Add support for new input device DEVICE_IN_BACK_MIC.
AudioPolicyManager:
- Add support for audio source AUDIO_SOURCE_CAMCORDER.
Merge commit 'e3c65ac1403b0221c69b4f1c5023b781a5ca4cad'
* commit 'e3c65ac1403b0221c69b4f1c5023b781a5ca4cad':
fix[2222341] Soft reset while going back from camcorder settings
Merge commit 'f4a09d7449ffd2480d2d3d9fcc6744d4b8dcaa66' into eclair-mr2-plus-aosp
* commit 'f4a09d7449ffd2480d2d3d9fcc6744d4b8dcaa66':
fix[2222341] Soft reset while going back from camcorder settings
Merge commit '87ea1dfa60cf130fafdbab8e94cb2ce9ff8d0975' into eclair-mr2
* commit '87ea1dfa60cf130fafdbab8e94cb2ce9ff8d0975':
fix[2222341] Soft reset while going back from camcorder settings
add a way to convert a mapped "pushbuffer" buffer to a gralloc handle
which then can be safely used by surfaceflinger
also make sure to not send empty rectangles to the MDP.
Merge commit 'ba1d894484e8063378df9957163858cdc8d3e1d6'
* commit 'ba1d894484e8063378df9957163858cdc8d3e1d6':
Fix bug 2210203 where Music volume is reduced after reducing in-call volume.
Merge commit '467b99831bbcfdb42edf7794409095ee8bc84c71' into eclair-mr2-plus-aosp
* commit '467b99831bbcfdb42edf7794409095ee8bc84c71':
Fix bug 2210203 where Music volume is reduced after reducing in-call volume.
Merge commit 'e26fd7576c0c0963ac7e11c249db8f56a8c08a92' into eclair-mr2
* commit 'e26fd7576c0c0963ac7e11c249db8f56a8c08a92':
Fix bug 2210203 where Music volume is reduced after reducing in-call volume.
Merge commit 'fc023055dba94779d5ab5455c1eab071e00a786e'
* commit 'fc023055dba94779d5ab5455c1eab071e00a786e':
do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
This is the combination of two issues:
- on QSD8K, the voice volume affects all streams, even when not in call.
This is fixed by setting the voice volume to unity gain whenever
exiting a call.
- another related issue was that when entering a call with no audio
playing, the in-call volume would be at its max. This is due to
the audio driver resetting the gain to unity when creating a new
output. AudioPolicyManager::setPhoneState() would sometimes fail
to force the reset of the audio volumes when entering a call, causing
the driver to use the unity gain, not the in-call volume set by the
user. This is fixed by testing whether is call is starting or ending
independently from the logic to determine the new ouput device.
Merge commit '88316f709083652c4aa9eca6f64631c0ec77fb07' into eclair-mr2-plus-aosp
* commit '88316f709083652c4aa9eca6f64631c0ec77fb07':
do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
Merge commit '0bf3ac2c797fc9e1a327f867d69bbb0b54a68ffa' into eclair-mr2
* commit '0bf3ac2c797fc9e1a327f867d69bbb0b54a68ffa':
do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
Applications are supposed to hold a wakelock. However, since 1.0,
the audio driver and/or HAL has held a partial wakelock. That means
that many apps will be broken if we don't hold a wakelock while
audio is playing. This patch holds a wakelock while the audio
driver is open and releases it when it goes to standby mode.
Bluetooth A2DP suspend-resume improvements.
This change will reduce the occurence rate of A2DP sink suspend resume failures observed in issues 2184627, 2181005 and possibly 2189628.
Suspend A2DP output when phone state is not NORMAL and not only when it is RINGTONE.
Update A2DP suspend state when an A2DP or SCO device is connected or disconnected while phone state is not NORMAL.
Merge commit '2b6fb9488422ae136a272eb7c2fb3409b3753618'
* commit '2b6fb9488422ae136a272eb7c2fb3409b3753618':
Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Merge commit 'a8eaa9a397383b776b5b65dc479502e70d567dcf' into eclair-mr2-plus-aosp
* commit 'a8eaa9a397383b776b5b65dc479502e70d567dcf':
Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Merge commit '7eda9410e218b2f2ff3f776897fbc1b679b6132d' into eclair-mr2
* commit '7eda9410e218b2f2ff3f776897fbc1b679b6132d':
Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Modified checkAndSetVolume() method to adjust VOICE_CALL, BLUETOOTH_SCO and DTMF stream volumes to match audio hardware behavior (never 0).
Also do the following adjustments on stream volumes:
- VOICE_CALL:
if in call, force software volume to max to avoid applying the volume twice (software mixer + audio hardware)
send setVoiceVolume() to set in call volume in audio hardware
- BLUETOOTH_SCO:
send setVoiceVolume() with max value because volume is applied by BT headset and should not be also applied by audio hardware.
- DTMF:
if in call and not using the BT SCO device, force software volume to max to avoid applying the volume twice (software mixer + audio hardware)
This change will reduce the occurence rate of A2DP sink suspend resume failures observed in issues 2184627, 2181005 and possibly 2189628.
Suspend A2DP output when phone state is not NORMAL and not only when it is RINGTONE.
Update A2DP suspend state when an A2DP or SCO device is connected or disconnected while phone state is not NORMAL.
Merge commit 'ba8101e944ec0ffea2b89739667d3ce731d6e818'
* commit 'ba8101e944ec0ffea2b89739667d3ce731d6e818':
Fix issue 2172934: AudioHardware for msm7k: some file descriptor tests must be fixed.