make sure to reject incompatible buffers in special function
GRALLOC_MODULE_PERFORM_CREATE_HANDLE_FROM_BUFFER
we use ioctl(PMEM_GET_SIZE) to validate that the given buffer is indeed
a pmem buffer.
First implementations of audio policy manager in Eclair branch have shown that most code is common to all platforms.
Creating AudioPolicyManagerBase base class will improve code maintainability and readability.
This change reverts modifications made earlier on software voice volume control in audio policy manager.
These modifications are not needed anymore and are partly responsible of this issue now that voice volume is controlled by audio DSP.
Add new config values for usage AudioSystem::FOR_DOCK in setForceUse() to differenciate car and desk docks.
For the desk dock, the sonification strategy will use the phone speaker only as there is no guaranty that
a device is connected to the dock's output jack.
For the car dock, the sonification strategy will use the A2DP output as before.
Merge commit 'eb3af645781d858eea3bccfe193411e23474e11d'
* commit 'eb3af645781d858eea3bccfe193411e23474e11d':
Use the media.enable1026 system property to indicate whether the
Merge commit '9ffa86825c57c8bf82669b438bd0e8feb865d4b7' into eclair-plus-aosp
* commit '9ffa86825c57c8bf82669b438bd0e8feb865d4b7':
Use the media.enable1026 system property to indicate whether the
dual microphone noise suppression should be used during a phone call
in handset mode. The disabling is performed by using the same A1026
settings as those used in Voice Recognition when not using the
Noise Suppression algorithm. This mode uses the exact same input
and gains as the incall receiver mode (A1026_PATH_INCALL_RECEIVER)
A new mode (A1026_PATH_INCALL_NO_NS_RECEIVER) is defined for code
clarity.
this gralloc module is only used on msm7k and doesn't need
synchronization in lock/unlock because we don't allow EGLImageKHR
with the GPU renderer on this platform.
hopefully this will remove some of the confusion about how gralloc
should be implemented.
This correction in AudioPolicyManager does not directly fix the issue but a potential problem identified when working on the resolution.
The problem is that audio output path is not updated immediately when a headset is unplugged if music or notifications are active. This is however not observable because:
- music is paused by music app when the headset is unplugged, and correct path is re-established when music is resumed.
- ringtones and notifications are playing on both headset and speaker and are still audible on speaker when the headset is unplugged even if
the actual output path is not changed to speaker only.
There could be an impact on applications using MUSIC stream and not reacting to Intent AudioManager.ACTION_AUDIO_BECOMING_NOISY though.
Merge commit '57d3b3680a6d37ffe04e1f24be25b4907bcbaa20'
* commit '57d3b3680a6d37ffe04e1f24be25b4907bcbaa20':
gralloc-qsd8k: make sure that we never try to allocatio 0 bytes
Merge commit '6a6befc0430820ab5d837694f1b71b63c34f8b14' into eclair-mr2-plus-aosp
* commit '6a6befc0430820ab5d837694f1b71b63c34f8b14':
gralloc-qsd8k: make sure that we never try to allocatio 0 bytes
Merge commit '2754389d0e7638b3065ecb3c965b1f262d2205ed' into eclair-mr2
* commit '2754389d0e7638b3065ecb3c965b1f262d2205ed':
gralloc-qsd8k: make sure that we never try to allocatio 0 bytes
Merge commit '3909820584e35b696f8387bda4313fb417cd8ab0'
* commit '3909820584e35b696f8387bda4313fb417cd8ab0':
Fix bug 2111240 When docked to a BT dock, give priority to wired
Merge commit '259ede35b4d8d50d0394624780733e4c061fbe7e' into eclair-mr2-plus-aosp
* commit '259ede35b4d8d50d0394624780733e4c061fbe7e':
Fix bug 2111240 When docked to a BT dock, give priority to wired
Merge commit '9df12adc2ff87eef733b948255f2960ca070981a' into eclair-mr2
* commit '9df12adc2ff87eef733b948255f2960ca070981a':
Fix bug 2111240 When docked to a BT dock, give priority to wired
Merge commit '2754389d0e7638b3065ecb3c965b1f262d2205ed' into eclair-plus-aosp
* commit '2754389d0e7638b3065ecb3c965b1f262d2205ed':
gralloc-qsd8k: make sure that we never try to allocatio 0 bytes
Merge commit '9df12adc2ff87eef733b948255f2960ca070981a' into eclair-plus-aosp
* commit '9df12adc2ff87eef733b948255f2960ca070981a':
Fix bug 2111240 When docked to a BT dock, give priority to wired
Merge commit '4842a5eaee0b93950297f52dd1ce56d13f7628eb'
* commit '4842a5eaee0b93950297f52dd1ce56d13f7628eb':
gralloc-qsd8k: Change composition_complete being a glfinish from stopship to a TODO
Merge commit '15793970b52db6b64ee3d0c591287200fd882429' into eclair-mr2-plus-aosp
* commit '15793970b52db6b64ee3d0c591287200fd882429':
Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
Merge commit '9c3ea9222f761ae445062a706d77804fcc7a5703' into eclair-plus-aosp
* commit '9c3ea9222f761ae445062a706d77804fcc7a5703':
Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
Merge commit '9c3ea9222f761ae445062a706d77804fcc7a5703' into eclair-mr2
* commit '9c3ea9222f761ae445062a706d77804fcc7a5703':
Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
Fixed AudioPolicyManager::getInput() broken in change ddb78e7753be03937ad57ce7c3c842c52bdad65e
so that an invalid IO handle (0) is returned in case of failure.
Applied the same correction to getOutput().
Merge commit '288cb24be01d065843a2a98ed6c0fdbb5faa8268' into eclair-mr2-plus-aosp
* commit '288cb24be01d065843a2a98ed6c0fdbb5faa8268':
gralloc-qsd8k: If using gpu composition, request rgba8888 instead of rgbx8888