683 Commits

Author SHA1 Message Date
Jean-Michel Trivi
7c56bddf1d am 39c0d4c0: (-s ours) do not merge bug 3370834 Cherrypick from master CL 79327
* commit '39c0d4c031d479a679900cb540253f42747cb810':
  do not merge bug 3370834 Cherrypick from master CL 79327
2011-01-29 09:54:33 -08:00
Andreas Huber
bdb29f6fce am ad47fcaa: (-s ours) Turning an assertion into an error log.
* commit 'ad47fcaa744f72cd34562730364916b6203535e0':
  Turning an assertion into an error log.
2011-01-27 11:24:10 -08:00
Jean-Michel Trivi
92e6c00905 do not merge bug 3370834 Cherrypick from master CL 79327
Use input source to determine whether voice reco mode is enabled.

Change-Id: I1efe64904b19575b590ce4b83f44d18b7d064f6b
2011-01-20 12:06:07 -08:00
Andreas Huber
d304649a40 Turning an assertion into an error log.
Change-Id: I276945246449fcad2644805236a9e6b2a212090d
related-to-bug: 3314324
2011-01-18 09:43:30 -08:00
Eric Laurent
95825e3f61 am e784e44a: Fix issue 3158317.
* commit 'e784e44a0402aa4e9489e0b9f2f3d3685cf76a93':
  Fix issue 3158317.
2010-12-01 09:21:11 -08:00
Eric Laurent
cfb25d1036 Fix issue 3158317.
Do not open the input device when opening the input stream but
only when the input stream starts. This avoids blocking the thread
executing openInputStream() on the pcm input driver mutex while this mutex
is constantly acquired and released by the high priority audio
input thread.

It also allows an app to open an input stream while another thread is recording
if it does not use it immediately (useful for voice search and VoIP).

Also did some clean up in output and input stream standby logic.

Change-Id: I69c82f5833f7a034d828001f87e02745d7683b65
2010-11-19 09:13:34 -08:00
Jean-Michel Trivi
0a55195c63 Use input source to determine whether voice reco mode is enabled.
Change-Id: I19245b21320e8e5113740c87c84bc9287564f96a
2010-11-11 10:00:05 -08:00
Andreas Huber
abed0d15a5 am 7d308b99: (-s ours) Support for rotated display of video content.
* commit '7d308b99544a6e8c5387ccee7095a780dcd9f957':
  Support for rotated display of video content.
2010-11-08 13:20:27 -08:00
Andreas Huber
e5ff982521 Support for rotated display of video content.
Change-Id: Ia16e096287fb7b2432f7a142647edf4f5f038ced
related-to-bug: 3166122
2010-11-04 14:04:08 -07:00
Joe Onorato
857681cc16 am 637d2d04: Reduce logging.
Merge commit '637d2d047afc8033f91357725474b32b74173c65'

* commit '637d2d047afc8033f91357725474b32b74173c65':
  Reduce logging.
2010-10-19 13:37:06 -07:00
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
Jean-Baptiste Queru
1a6c5c1379 Merge f1b90c7d from gingerbread-plus-aosp
Change-Id: I2586418263a2755b69db315dbbae06960e758359
2010-10-18 08:16:55 -07:00
Iliyan Malchev
ba8565847e am b508a485: libaudio-qsd8k: acquire wakelock before starting playback
Merge commit 'b508a4857b07898fb8322a858c4ee9624bcf1180'

* commit 'b508a4857b07898fb8322a858c4ee9624bcf1180':
  libaudio-qsd8k: acquire wakelock before starting playback
2010-10-15 14:01:15 -07: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
08b5da348c am 15a9e53f: reject odd widths or heights for YV12 format
Merge commit '15a9e53fbeaf765bfa6ed795d270e5968b30acb8'

* commit '15a9e53fbeaf765bfa6ed795d270e5968b30acb8':
  reject odd widths or heights for YV12 format
2010-09-10 17:24:21 -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
b6eda20485 am ad20ef6b: don\'t revert to ashmem if HW usage bits are set
Merge commit 'ad20ef6be061091a95353fbf71712a3a97618304'

* commit 'ad20ef6be061091a95353fbf71712a3a97618304':
  don't revert to ashmem if HW usage bits are set
2010-08-24 10:24:52 -07:00
Mathias Agopian
1f16706e84 am a91a220a: only set the PRIV_FLAGS_NEEDS_FLUSH flag on PMEM buffers
Merge commit 'a91a220ae435832209702ec59040036d276b63ca'

* commit 'a91a220ae435832209702ec59040036d276b63ca':
  only set the PRIV_FLAGS_NEEDS_FLUSH flag on PMEM buffers
2010-08-24 09:15:32 -07:00
Andreas Huber
20153cc699 Merge "We're no longer using the ISurface-based rendering code on Passion." 2010-08-23 12:31:52 -07:00
Andreas Huber
e32200a872 We're no longer using the ISurface-based rendering code on Passion.
Change-Id: Iee7b086bfcec2552e6f5bfbee974fffa12fe7835
2010-08-23 12:29:52 -07:00
Mathias Agopian
e440088ec8 am e6f90ec4: add qcom specific pixelformats
Merge commit 'e6f90ec4ffe9cdef941a3d0032dfa275c2a302ad'

* commit 'e6f90ec4ffe9cdef941a3d0032dfa275c2a302ad':
  add qcom specific pixelformats
2010-08-21 09:43:29 -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
b98b95ad19 am 249a65a3: 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
Merge commit '249a65a3a132ff136a7a529f1cf4a13afde9a272'

* commit '249a65a3a132ff136a7a529f1cf4a13afde9a272':
  In the car dock, when playing media through the 3.5mm jack, ensure
2010-08-13 17:24:02 -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
19d7db853a am 972fb887: Merge "Change the constant name identifying the NV21 Adreno format." into gingerbread
Merge commit '972fb8879c46f774daec656b3b1c1f070f04ee3e'

* commit '972fb8879c46f774daec656b3b1c1f070f04ee3e':
  Change the constant name identifying the NV21 Adreno format.
2010-08-09 20:00:57 -07:00
Jean-Michel Trivi
d0bbadab4d am a526b068: 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.
Merge commit 'a526b0683dba50dac8a37ed45e3a08536044e973'

* commit 'a526b0683dba50dac8a37ed45e3a08536044e973':
  Patch from HTC: fix improper device ID selection for BT with noise
2010-08-09 20:00:55 -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
61598fa84e am 28b31647: fix [2855380] GRG19 monkey native crash in GraphicBufferAllocator
Merge commit '28b31647cda80ee08b3b3d7a402832e132505b2c'

* commit '28b31647cda80ee08b3b3d7a402832e132505b2c':
  fix [2855380] GRG19 monkey native crash in GraphicBufferAllocator
2010-07-29 15:04:20 -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
bcc1f4a90b am a484fe21: Merge "Remove the YV16 format." into gingerbread
Merge commit 'a484fe215059e8c927cdbbec7d5c9683962d8f9b'

* commit 'a484fe215059e8c927cdbbec7d5c9683962d8f9b':
  Remove the YV16 format.
2010-07-14 16:39:57 -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
Makoto Onuki
ab4f6a229b Adding -O0 to CFLAGS to fix crash.
It was removed in Ibf327513, which caused the following crash
soon after a boot up.

pid: 391, tid: 576  >>> system_server <<<
signal 11 (SIGSEGV), fault addr 0b608aec
  r0 00000000  r1 0007a120  r2 00000000  r3 00000001
  r4 49852e40  r5 85b05170  r6 85b0524c  r7 0b608aec
  r8 00000001  r9 85b052d4  10 85b05254  fp 0027fef8
  ip 85b051b4  sp 49852e28  lr afd13c54  pc 85b038a2

Stack Trace:
  RELADDR   FUNCTION    FILE:LINE
  000038a2  rx_context  /usr/local/google/omakoto/android/master/hardware/msm7k/librpc/clnt.c:194
  v------>  ??          ??:0
  afd13c54  (unknown)   ??:0

Stack Data:
  ADDR      VALUE     FILE:LINE/FUNCTION
  49852de8  85b048ee  ??:0
                      ??
  49852e24  85b0389d  /usr/local/google/omakoto/android/master/hardware/msm7k/librpc/clnt.c:193
                      rx_context
  49852e3c  85b03635  /usr/local/google/omakoto/android/master/hardware/msm7k/librpc/clnt.c:76
                      cb_context

Change-Id: Ic5799824bc9ae797b18e16f14b9592df9c843e5d
2010-07-09 11:04:15 -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