614 Commits

Author SHA1 Message Date
Mathias Agopian
0380c43f6e fix [2501808] sapphire: OOM in GPU Surface area
Just retry for up to 5s when this happens. There could be a delay
for surfaceflinger to be notified when a process dies and delay
freeing those resources by that much.

Change-Id: I324262daab99dd6f16a2c8487c40ffd82f8847d7
2010-03-25 20:17:38 -07:00
Jean-Baptiste Queru
ec040bb3a1 Add tags and notices where appropriate.
Also tweak copyright notices as appropriate.

Bug: 2084753
Change-Id: Ifbf795b8b16dbc45cf5ac9a72b97f2b74cbf3550
2010-03-19 15:50:23 -07:00
Mike Lockwood
0176d59b6b liblights: Don't set attention light color when clearing battery light.
BUG: 2483314

Change-Id: Ie4abad8b9448f5d7c1f05585f43e85bc832bcdf6
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-19 17:30:29 -04:00
Mathias Agopian
e55ffb9bb8 gralloc and copybit now can properly handle EBI or SMI GPU surfaces
up until now we relied on the EBI region map_offset being zero, which
prevented us to use SMI for surfaces, as their map_offset is different.
the copybit hal needs the map_offset to figure out which region to use.

Change-Id: I920b31ecb77a7b0943dfcd8e3362e2c38ac83297
2010-03-18 18:16:45 -07:00
Mathias Agopian
66fa227f44 Merge "a fix for [2462396] Driveabout stress tests fail" 2010-03-17 20:25:35 -07:00
Mathias Agopian
edb3498ecb a fix for [2462396] Driveabout stress tests fail
an uninitialized variable caused the unmapping of some random pages
when buffers were resized, which happens on orientation changes.
unfortunatelly, I'm still seeing crashes on orientation changes, but
less of them and less random ones. so far, I've only seen an ASSERT
triggering in the GL driver, all "meomry corruptions" (crashes in
dalvik, skia, etc...) seem gone.

Change-Id: Icd6077e26e050670b75b715f205b6c7c9ea1a476
2010-03-17 20:22:05 -07:00
Eric Laurent
3128b13cc8 Fix issue 2416481: Support Voice Dialer over BT SCO.
Hold a wake lock also when an input stream is active (not only for output stream).
Apply Audience a1026 configuration also when output routing selects a bluetooth device.
Allow acdb settings for bluettoth devices if not incall.

Change-Id: Ibaa24ecf44af2e00f24664c7be9e1b9813861ce4
2010-03-17 07:21:16 -07:00
Jean-Michel Trivi
e4a3ac8aff Fix bug 2203203 Route STREAM_VOICE_CALL to A2DP when not in call.
Change-Id: I4b6bfafeee0ea1a2f2e7f72de49b82e8cdadd9f9
2010-03-14 11:14:39 -07:00
Mathias Agopian
ee8a4e4546 fix [2473605] The GLSurfaceView is skewed in Sapphire
the alignment must be a multiple of 8 pixels, no more no less

Change-Id: I5ab9555f306cf2c141d38fd77056c9f50217a8ff
2010-03-11 12:27:41 -08:00
Mathias Agopian
1f920972b5 fix [2473605] The GLSurfaceView is skewed in Sapphire
the alignment must be a multiple of 8 pixels, no more no less.

Change-Id: Id1f4c2615270335ad3de515f65e7184db9c8aa40
2010-03-09 13:48:15 -08:00
Jean-Michel Trivi
bd5cc6f8f2 Merge "Fix bug 2329540 Part 2 of fix Modify the behavior of the volume computation in the APM for the MSM8K to deal with the car dock limitation where the user doesn't have access to the physical volume buttons on the side of the phone when it is docked. Docking the phone with too low a media volume would make the 3.5mm headphone jack unusable when connecting the device to a wired analog car stereo adapter. The change consists in setting a fixed volume value for the MUSIC streams played through the wired accessories when docked in a car dock." 2010-03-09 13:17:25 -08:00
Jean-Michel Trivi
6bc7ad3f59 Fix bug 2329540 Part 2 of fix
Modify the behavior of the volume computation in the APM for the
 MSM8K to deal with the car dock limitation where the user doesn't
 have access to the physical volume buttons on the side of the
 phone when it is docked. Docking the phone with too low a media
 volume would make the 3.5mm headphone jack unusable when connecting
 the device to a wired analog car stereo adapter.
 The change consists in setting a fixed volume value for the MUSIC
 streams played through the wired accessories when docked in a car
 dock.

Change-Id: I2e5c81571b0f553c914c8adb73b51e7eac5084c6
2010-03-09 12:25:04 -08:00
Mike Lockwood
17ae3f0a86 Merge "Fix kernel enter suspend before reply rpc callback" 2010-03-09 11:20:07 -08:00
Kevin.KY_Tsai
1dd994c3f7 Fix kernel enter suspend before reply rpc callback
grab wakelock before reading data from kernel

Change-Id: I0597363aac60249590fc755a76eec5b5eef92766

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-09 14:17:04 -05:00
Eric Laurent
b56ea129b1 Fix issue 2428760: Driveabout: volume of navigator through Bluetooth headset much too loud.
Driveabout navigation instructions are ususally played with a loud volume in order to be heard while driving.
When in call, all audio generated by the application processor is routed to the device in use by the
call, in this case the bluetooth SCO headset. For some reason, when audio at loud volume is output
by the application processor to the bluetooth headset the sound is saturated.

The fix consists in limiting the stream volumes to -18dB when playing over a bluetooth SCO device.

Change-Id: I2a5643c7f91a136f1f3adfce75d77e59c09e42b3
2010-03-09 08:42:13 -08:00
Jean-Baptiste Queru
0dd22ed634 Add an empty CleanSpec.mk
Change-Id: I095b02726dc10a2960a9774370690f53a61a6bb6
2010-03-08 18:04:53 -08:00
Eric Laurent
c27675248b Fix issue 2317760: Change the priority between wired headset and A2DP.
Modified audio policy manager so that wired headset has precedence over A2DP headset.
2010-03-06 15:51:40 -08:00
Brian Swetland
9dfe9ad88d dspcrashd: service to obtain ramdumps from DSP on crash
How this works is that when the DSP crashes, *if* dspcrashd is
running, instead of immediately rebooting, dspcrashd halts the dsp and
writes a 32MB memory image to /sdcard/dsp.crash.1266967900.img (or
similar -- number is unix UTC seconds), and *then* we panic and
reboot.

The last_kmsg log will contain:
[   82.357543] *** WROTE DSP RAMDUMP TO /sdcard/dsp.crash.1266967900.img ***

So we'll know if there's a dsp crash file to request when bugs are
filed (if the user doesn't realize this).

The dsp.crash.%d.img also contains (starting at 24MB offset):
---- ---- ---- ---- ---- ---- ---- ---- ---- ----
ro.product.name: passionc
ro.build.id: ERE50
ro.build.date: Fri Feb 19 11:53:10 PST 2010
ro.serialno: HT01YHK00073
ro.baseband: 1.00.01.DSPNMI
---- ---- ---- ---- ---- ---- ---- ---- ---- ----
<6>[    0.000000] Initializing cgroup subsys cpu
<5>[    0.000000] Linux version 2.6.32-00619-g7f79ddb
(swetland@bulgaria) (gcc version 4.4.0 (GCC) ) #13 PREEMPT Tue Feb 23
15:28:53 PST 2010
<4>[    0.000000] CPU: ARMv7 Processor [510f00f2] revision 2 (ARMv7),
cr=10c53c7f
<4>[    0.000000] CPU: VIPT nonaliasing data cache, VIVT ASID tagged
instruction cache
<4>[    0.000000] Machine: mahimahi
<4>[    0.000000] Ignoring unrecognised tag 0x4d534d71
<4>[    0.000000] Ignoring unrecognised tag 0x4d534d72
...

so these are self-contained (they identify the radio build, userspace
build, and include the kernel log) with all the information we need to
provide context for the dsp crash.

Signed-off-by: Brian Swetland <swetland@google.com>
2010-03-03 17:11:40 -08:00
Eric Laurent
b593c76fed Fix issue 2473820: The ACDB ID used for audio playback is not correct after MT call.
The problem comes from a mismatch between the audio policy manager and the audio HAL behavior.
AudioHardware design requires that the audio routing is reapplied every time we enter or exit in call mode to
force audio paths and acoustics settings update. This is done by audio policy manager forcing a route change
in this case. It is also necessary that AudioHardware does not ignore this change request and to this purpose
current snd device stored in mCurSndDevice is cleared by setMode() so that next call to doRouting() actually
reapplies the device selection.
The problem is that setMode() clears mCurSndDevice unconditionnaly which makes that if we enter ringtone mode
but go back to normal mode (rejected call), audio policy manager will not reapply current device and we will remain
in a state where mCurSndDevice is undefined. This state will persist until a new device selection is performed.

The fix consists in clearing mCurSndDevice only if transitioning to/from in call mode.
2010-03-02 18:59:08 -08:00
Dima Zavin
08320899ac Merge "libgralloc-qsd8k: flush SW_WRITE cached pmem regions in unlock" 2010-03-02 16:56:43 -08:00
Mathias Agopian
b5c6441c47 Merge " fix [2473605] The GLSurfaceView is skewed in Sapphire" 2010-03-02 15:55:07 -08:00
Mathias Agopian
eb6b0ce0cc fix [2473605] The GLSurfaceView is skewed in Sapphire
Make sure we respect the 16 pixels alignment requirement of the GPU
2010-03-02 15:54:07 -08:00
Dima Zavin
c0f1d75920 libgralloc-qsd8k: flush SW_WRITE cached pmem regions in unlock
Change-Id: I31d1257f031c6b9b8dae604c2c1a8aa246ce3b84
Signed-off-by: Dima Zavin <dima@android.com>
2010-03-02 15:14:57 -08:00
Eric Laurent
0eafd78451 am baaae4da: am 1e6baec5: Fix issue 2473815: The ACDB ID used for Bluetooth TX is not set correctly for MT call.
Merge commit 'baaae4da4d6005b96c106d7eda4e577b903286a9'

* commit 'baaae4da4d6005b96c106d7eda4e577b903286a9':
  Fix issue 2473815: The ACDB ID used for Bluetooth TX is not set correctly for MT call.
2010-03-02 13:54:35 -08:00
Eric Laurent
094d98e1fa am 1e6baec5: Fix issue 2473815: The ACDB ID used for Bluetooth TX is not set correctly for MT call.
Merge commit '1e6baec54e051e7359aca7521d0919c6a6a91172' into eclair-plus-aosp

* commit '1e6baec54e051e7359aca7521d0919c6a6a91172':
  Fix issue 2473815: The ACDB ID used for Bluetooth TX is not set correctly for MT call.
2010-03-02 13:44:05 -08:00
Eric Laurent
3c473feb08 Fix issue 2473815: The ACDB ID used for Bluetooth TX is not set correctly for MT call.
The problem occurs if the BT SCO socket is established before the call is answered. In this case,
the first device selected when entering in call state is the BT device but current implementation
of do_route_audio_dev_ctrl() does not apply ACDB settings when calling AUDIO_START_VOICE except
for HAC device.
If the SCO socket is established after we enter in call mode, we receive a new routing request
after AUDIO_START_VOICE has been executed and in this case the new ACDB settings are applied.

The fix consists in applying ACDB settings when calling AUDIO_START_VOICE regardless of the
device used.
2010-03-02 08:59:57 -08:00
Eric Laurent
77e8236cd3 Issue 2071329: audio track is shorter than video track for video capture on sholes
Add API to retrieve number of frames dropped by audio input kernel driver.

Submitted on behalf of Masaki Sato <masaki.sato@motorola.com>
2010-02-26 03:04:56 -08:00
Eric Laurent
7738c014af am 3df4850c: am b26d493d: Fix issue 2459650.
Merge commit '3df4850c0bc7c1c4591ac594b3c1540c2edd93a8'

* commit '3df4850c0bc7c1c4591ac594b3c1540c2edd93a8':
  Fix issue 2459650.
2010-02-22 11:19:56 -08:00
Eric Laurent
ea83a3150d am b26d493d: Fix issue 2459650.
Merge commit 'b26d493deaa9897cc6f34577aa5c9c1ff0655129' into eclair-plus-aosp

* commit 'b26d493deaa9897cc6f34577aa5c9c1ff0655129':
  Fix issue 2459650.
2010-02-22 11:13:17 -08:00
Eric Laurent
ea53b07e8b Fix issue 2459650.
Modify input path for TTY VCO device from TTY_HEADSET_MIC to SPKR_PHONE_MIC.

Submitted on behalf of HK chen <HK_Chen@htc.com>
2010-02-22 08:50:12 -08:00
Mathias Agopian
a5ffced80a add support for YCbCr (as opposed to YCrCb) to copybit 2010-02-17 18:02:17 -08:00
Jaikumar Ganesh
af7751fbff Merge "Fix issue 2440226: Car dock volume synchronization." 2010-02-17 09:16:07 -08:00
Mathias Agopian
f238b9e88c temporary hack to map the correct yuv format to the current (broken) mdp constants 2010-02-16 19:44:06 -08:00
Mathias Agopian
48000e415a fix [2444483] gralloc size for YUV formats 2010-02-16 14:04:36 -08:00
Eric Laurent
97045a5a91 Fix issue 2440226: Car dock volume synchronization.
Force stream volume to maximum when playing over A2DP output and
connected to car dock.
2010-02-16 06:11:46 -08:00
Jean-Michel Trivi
1bcceb0300 Merge "Only close the file descriptor for A1026 control after it was successfully opened." 2010-02-12 13:10:14 -08:00
Jean-Michel Trivi
565cda57d4 Only close the file descriptor for A1026 control after it was
successfully opened.
2010-02-12 09:42:49 -08:00
Mathias Agopian
68260700db split libsurfaceflinger_client and libcamera_client out of libui 2010-02-10 16:23:33 -08:00
Eric Laurent
444050dada am e93aca53: am 6727fbd4: Additional corrections for AudioHardware:
Merge commit 'e93aca535c64c9be9564e218fb83b6bbd1b99975'

* commit 'e93aca535c64c9be9564e218fb83b6bbd1b99975':
  Additional corrections for AudioHardware:
2010-02-10 09:01:51 -08:00
Eric Laurent
4fcd76bde8 am 6727fbd4: Additional corrections for AudioHardware:
Merge commit '6727fbd4be7d7cd0acfb55b7461f9d9a23225f60' into eclair-plus-aosp

* commit '6727fbd4be7d7cd0acfb55b7461f9d9a23225f60':
  Additional corrections for AudioHardware:
2010-02-10 08:56:06 -08:00
Eric Laurent
baa059dc44 Additional corrections for AudioHardware:
- Fix error in getACDB() when reading battery temperature:
Return value of get_batt_temp() has changed and calling code must be corrected.

- Fix handling of echo cancellation and noise reduction for car kits:
doAudioRouteOrMute() should not force SND_DEVICE_BT_EC_OFF sound device if
current device is SND_DEVICE_CARKIT.

Submitted on behalf of HK Chen <HK_Chen@htc.com>
2010-02-10 04:49:45 -08:00
Eric Laurent
742cb4f019 am 2be1045f: am 6af540e6: Fix issue 2422322 again.
Merge commit '2be1045fd92ee1998a90f49ce3d335dfc5d95289'

* commit '2be1045fd92ee1998a90f49ce3d335dfc5d95289':
  Fix issue 2422322 again.
2010-02-09 10:35:05 -08:00
Eric Laurent
fee0b3751f am 6af540e6: Fix issue 2422322 again.
Merge commit '6af540e6c360750623644c6b25e3d97590990694' into eclair-plus-aosp

* commit '6af540e6c360750623644c6b25e3d97590990694':
  Fix issue 2422322 again.
2010-02-09 10:31:59 -08:00
Eric Laurent
4dc376fc19 Fix issue 2422322 again.
Correct merge error in previous commit ec78ad65a1110fe007c3bdaba824f66bbfe522e3: all changes sent by HTC were not included.
2010-02-09 09:51:58 -08:00
Iliyan Malchev
39cc1f343e am 833d7fb8: am e7af7ee4: libaudio-qsd8k: enable separate in-call TTY settings
Merge commit '833d7fb8e415a0908228b9d05c6221b96c601d6c'

* commit '833d7fb8e415a0908228b9d05c6221b96c601d6c':
  libaudio-qsd8k: enable separate in-call TTY settings
2010-02-09 09:32:29 -08:00
Iliyan Malchev
63e560401b am e7af7ee4: libaudio-qsd8k: enable separate in-call TTY settings
Merge commit 'e7af7ee40e27869a0cbbe4a5c91cbe6719fdfd44' into eclair-plus-aosp

* commit 'e7af7ee40e27869a0cbbe4a5c91cbe6719fdfd44':
  libaudio-qsd8k: enable separate in-call TTY settings
2010-02-09 09:26:01 -08:00
Jean-Michel Trivi
c4938a960f Fix A1026 configuration bugs
- in doAudience_A1026_Control(): if setting a new path ID on the A1026
 has failed several times, the A1026 will be reset by a call to
 doA1026_init(). However after a reset, the file descriptor for the
 A1026 configuration will be invalid (-1), so the device needs to
 be reopened for the configuration to be successfully reapplied
 after a reset.
- in setParameters(): after setting the noise suppression param,
 the A1026 file descriptor is closed, and needs to be reset to a
 negative value, as this is used in other places in the code to
 indicate it's closed.
2010-02-09 09:17:24 -08:00
Eric Laurent
6121b241ad Fix issue 2276684 Kernel audio driver should fully support AUDIO_SET_CONFIG.
This change is the user space half of the modification allowing to adapt the input and output
buffer size to the sampling rate. This allows for similar latencies for all sampling rates
with a buffer duration of around 20ms.
2010-02-09 04:56:00 -08:00
Iliyan Malchev
6052637fe6 libaudio-qsd8k: enable separate in-call TTY settings
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-02-08 15:58:37 -08:00
Eric Laurent
d8fa6e65a7 am c3e56b57: am ec78ad65: Partial fix 2422322: [Passion#VZW] audio issues found with release CL24761.
Merge commit 'c3e56b578fea50f956253bbede16157e53392859'

* commit 'c3e56b578fea50f956253bbede16157e53392859':
  Partial fix 2422322: [Passion#VZW] audio issues found with release CL24761.
2010-02-05 16:25:59 -08:00