659 Commits

Author SHA1 Message Date
Joe Onorato
51f291d432 Reduce logging.
Remember, the system and main logs are
    - Shared resources
    - Primarily for recording problems
    - To be used only for large grained events during normal operation

Bug: 3104855
Change-Id: I1abde2ae74119ce8ffa69c8b6e8ff278c2c8029e
2010-10-18 19:13:43 -04:00
Andreas Huber
c2d7566290 Include the framework copy of the OpenMAX headers instead of referencing external/opencore.
Change-Id: I950d84fb6e9c346c7989590f5a341036a5845ab8
related-to-bug: 3101573
2010-10-15 13:32:24 -07:00
Iliyan Malchev
ffb6733c66 libaudio-qsd8k: acquire wakelock before starting playback
This fixes issue 2410711.

Change-Id: I01161b3febc02914f2c7a9ed3c4c9ae121ce181a
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-13 19:25:45 -07:00
Mathias Agopian
9efee771b2 reject odd widths or heights for YV12 format
Change-Id: I66cbb5fbc20630218947cd41552a95503b58e15e
2010-09-10 14:40:10 -07:00
Mathias Agopian
31f0df4eba don't revert to ashmem if HW usage bits are set
this wouldn't make sense, since the h/w wouldn't be able
to use the buffer. in this case it it better to fail to
let the caller a change to try again with different usage bits.

Change-Id: Ibecaf069b6b58ee9c026affc95a45512660d5881
2010-08-20 16:02:29 -07:00
Mathias Agopian
0ff47fbdac only set the PRIV_FLAGS_NEEDS_FLUSH flag on PMEM buffers
PRIV_FLAGS_NEEDS_FLUSH will trigger an ioctl call into the PMEM
driver in unlock(), so it makes not sense to set this flag for
non pmem buffers.

Change-Id: Ie1e077c10df86d3689b82fa6ce5d6c856fc95688
2010-08-20 11:47:44 -07:00
Mathias Agopian
7461d57eca add qcom specific pixelformats
Change-Id: I70395b93afc4dee13e805649ee2307ffe895aaf1
2010-08-19 13:15:39 -07:00
Jean-Michel Trivi
04409b1f1c Merge "In the car dock, when playing media through the 3.5mm jack, ensure a minimum volume is used, not a fixed volume." into gingerbread 2010-08-13 08:04:47 -07:00
Jean-Michel Trivi
c080232c70 In the car dock, when playing media through the 3.5mm jack, ensure
a minimum volume is used, not a fixed volume.

Change-Id: Ibcf74989f4fbc436863c2fc1074b98a828b0b0cf
2010-08-12 09:45:13 -07:00
Jamie Gennis
81589f521b Merge "Change the constant name identifying the NV21 Adreno format." into gingerbread 2010-08-09 10:42:46 -07:00
Jean-Michel Trivi
e7bbd60ca5 Patch from HTC: fix improper device ID selection for BT with noise
suppression off. This patch is accompanied by updated ACDB files
that define the matching acoustic configuration.

Change-Id: I8cf769c30993e36c4dc07b8df8d234e752d26ffb
2010-08-09 08:59:50 -07:00
Jamie Gennis
38b90c13c4 Change the constant name identifying the NV21 Adreno format.
This updates the qsd8k gralloc to support the new name for the NV21 Adreno
pixel format.

Change-Id: I358bf12db058d3740a5e49ee30d95c2afb708295
2010-08-06 12:09:15 -07:00
Mathias Agopian
041cfdf2cf fix [2855380] GRG19 monkey native crash in GraphicBufferAllocator
we were dereferencing the null pointer when freeing ashmem buffers.

Change-Id: I7be6e1ae064148bea1076193c21a73b5a3f90297
2010-07-28 18:12:39 -07:00
Mathias Agopian
c901bf964d Merge "Remove the YV16 format." into gingerbread 2010-07-14 16:30:21 -07:00
Mathias Agopian
fce1cc8a83 Remove the YV16 format.
Change-Id: I3f7995ba0cf41bcde995df293bea78bce7d82fc9
2010-07-14 16:29:43 -07:00
Jake Hamby
d9c81f0dac Librpc workaround for ONCRPC protocol error in SMS.
This patch causes librpc to abort() when a read() fails on the ONCRPC
device. We're seeing this at bootup when the RIL initializes the WMS
(SMS) service, and we can't get back in sync with the protocol. By
calling abort(), rild will restart and the RIL will work correctly
on the second attempt.

We can remove this after we fix the underlying protocol error, but perhaps
we should keep it in since the original version of the code will
continue on a read() error and corrupt memory, thinking that it
received a new message when the input buffer contains only the
previous message received.

Change-Id: I0deded00f5c38a71aa56ce1859a8fe37d234e11b
2010-07-08 13:47:46 -07:00
Jake Hamby
402876c347 Improvements to librpc for QC RIL debugging.
- Change debug macros to use Android logcat functions.
- Compile with optimization (remove "-O0" from CFLAGS).

Change-Id: Ibf327513a36730e7667ede45966dba6fd3bc5a5d
2010-07-08 13:43:33 -07:00
Mathias Agopian
3f3bead8b6 make the gralloc test linux only
Change-Id: Ib245f7936bbe71b34903172629e09763dd725d80
2010-07-02 16:37:27 -07:00
Jamie Gennis
5bc176b1a6 Refactor the qsd8k gralloc implementation.
The purpose of this change is to add support for allocating gralloc buffers
from either /dev/pmem or /dev/pmem_adsp depending on the usage flags.  It does
this by factoring out and abstracting the interactions with the pmem device.
For /dev/pmem allocations, the kernel allocator is not used, so a single master
fd is opened, and all the allocations are sub-allocated from that by gralloc.
For /dev/pmem_adsp the kernel allocator is used, so it simply opens a new fd
for each allocation.

A very basic unit test that can be run on the host is included.  It requires
gtest, so to run it on a host system gtest must (currently) be compiled with
BUILD_WITH_ASTL=true.

Change-Id: If2ae0151698fad8107e18e808a3fa012a846263f
2010-07-02 12:57:36 -07:00
Mathias Agopian
6c2bc88a03 remove unused YUV formats
Change-Id: Ia590a9cb9a02bf62f35da344f29775d1256e3da7
2010-07-01 21:19:31 -07:00
Mathias Agopian
d3c18d4938 NV12 tiled needs 8K plane alignment
Change-Id: I8f2ca6f058ff9d7dd666871a696428c55dbe6cf1
2010-06-22 22:06:12 -07:00
Mathias Agopian
0adc045aa2 remove unused YUV formats
Change-Id: I41c18551a61bec9f928399544a12024c81947ed0
2010-06-22 16:15:31 -07:00
Mathias Agopian
a82aad454a fix typo in ALIGN macro
Change-Id: Idaddf65f0b726a158f47639223f4281fd07447a7
2010-06-22 16:15:10 -07:00
Mathias Agopian
0f6dc7ea55 Add support for allocating YUV formats
Currently they're all allocated in pmem, instead of pmem_adsp.

Change-Id: Ibc3edf2da4155d2f086d81dee8940270f9cb9f6b
2010-06-22 16:14:35 -07:00
Mike Lockwood
151d2b884b Revert "Add support for allocating YUV formats"
This reverts commit 7b1f00a95490552131d06a13b78c279f6c779a1a.
2010-06-22 13:32:55 -04:00
Mike Lockwood
5d471952a5 Revert "remove unused YUV formats"
This reverts commit 05ea9ede5600fef7a8fdf416b44ec98e58fb224b.
2010-06-22 13:32:36 -04:00
Mathias Agopian
ce599f6e8d remove unused YUV formats
Change-Id: I47769af34112856e6a2ef177a966f6e8e6242031
2010-06-21 18:23:23 -07:00
Mathias Agopian
b43cd9549f Add support for allocating YUV formats
Currently they're all allocated in pmem, instead of pmem_adsp.

Change-Id: Ief367a64667dc0b67fdeabeabbf9f201082d6ad2
2010-06-16 14:27:27 -07:00
Jean-Michel Trivi
fd3b68ca8e Merge "Fix bug 2721016 The AudioPolicyManager for MSM8K overrides the stream volume computation even if the volume index is set to minimum, which prevents the system from ever muting a stream in the car dock. The change consists in comparing the new volume index against the minimum authorized index for that stream and if they are equal, not override the platform's volume computation." into kraken 2010-06-11 09:34:37 -07:00
Jean-Michel Trivi
00aae89922 Fix bug 2721016
The AudioPolicyManager for MSM8K overrides the stream volume computation
even if the volume index is set to minimum, which prevents the system
from ever muting a stream in the car dock.
The change consists in comparing the new volume index against the
minimum authorized index for that stream and if they are equal,
not override the platform's volume computation.

Change-Id: Id3990a3d771d2adb40df56d1b4ee2ddfb37c428d
2010-06-11 09:33:21 -07:00
Chih-Chung Chang
5f64869e3e Change camera interface to support multiple cameras.
Change-Id: I32fa5615b7fcd4caba34283d4b252bac478aa1eb
2010-06-11 16:48:18 +08:00
Brian Swetland
81d0303842 add very very minimal qdsp5v2 support
Change-Id: I028074a745829275c13d3adb14dd00c0179c19e9
2010-06-10 18:09:04 -07:00
Jake Hamby
d4bbea359f Enable librpc for MSM7x30 and patch to add missing defines.
Enable librpc for MSM7x30 and add missing definition of NULLPROC
and function prototype for xdr_u_int().

Change-Id: I97fe08abbf2d8157a6ce990ebd4dfcec41fce1d5
2010-06-07 14:13:02 -07:00
Dima Zavin
f53f4e648e msm7k: build lights for 7x30 also
Change-Id: I7f2f43caeac34c675765d7b6e83016288a9f61ed
Signed-off-by: Dima Zavin <dima@android.com>
2010-05-17 21:49:10 -07:00
Jean-Baptiste Queru
b4532a8f6f am f4ee522e: Add missing NOTICE/MODULE files
Merge commit 'f4ee522ec23d86f55777a7eb4a0772a11cbf01fe' into kraken

* commit 'f4ee522ec23d86f55777a7eb4a0772a11cbf01fe':
  Add missing NOTICE/MODULE files
2010-05-17 14:04:57 -07:00
Jean-Baptiste Queru
5c55e02c66 Add missing NOTICE/MODULE files
Change-Id: Id7120f3f2833d8b4e706a0725f6193b804d7199e
2010-05-17 12:29:36 -07:00
Dima Zavin
f94abc992c gralloc-qsd8k: Build for msm7x30 as well
Change-Id: Ibc0be16a02d1dcd8461f74ee486d228503c7709a
Signed-off-by: Dima Zavin <dima@android.com>
2010-05-12 20:48:35 -07:00
Dan Bornstein
dc308af31f resolved conflicts for merge of 4ba46c7f to froyo-plus-aosp
Change-Id: Iab84d24a291e182c5f63ea95d1d50a01b8680443
2010-05-06 13:20:23 -07:00
Jean-Baptiste Queru
4847bd1cde Merge "Initial open-source code drop of libopencorehw and libstagefrighthw" into froyo-plus-aosp 2010-04-29 16:09:30 -07:00
Jean-Michel Trivi
4a3cfcaa4d am 7f16e88b: Fix bug 2599652 increase attenuation on 3.5mm jack for music stream in car dock.
Merge commit '7f16e88be738d63e33e2e7c652c594379b136a01' into froyo-plus-aosp

* commit '7f16e88be738d63e33e2e7c652c594379b136a01':
  Fix bug 2599652 increase attenuation on 3.5mm jack for music
2010-04-15 14:24:44 -07:00
Jean-Michel Trivi
954b441a40 Fix bug 2599652 increase attenuation on 3.5mm jack for music
stream in car dock.

Change-Id: I3a8bf092adf0a5725636c4d79266cfb02768cacc
2010-04-15 14:12:01 -07:00
The Android Open Source Project
d9fb27b5a4 merge from open-source master
Change-Id: I8d09ba9fc18f72c453bb04b2ee915c9412971f30
2010-04-08 10:56:23 -07:00
Jean-Baptiste Queru
1cdb8474ea Initial open-source code drop of libopencorehw and libstagefrighthw
Bug: 2565258
Change-Id: I5cacca55e173c3209c2e74447219b34587a914b5
2010-04-07 10:40:45 -07:00
Kevin.KY_Tsai
ed2c5bc46a librpc: 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-04-06 11:51:54 -04:00
Mathias Agopian
e5df818f4e 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: If90d26626f7cbb7d37cdcf471f680c1b17deab50
2010-03-26 17:07:57 -07:00
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