Commit graph

128 commits

Author SHA1 Message Date
Jean-Michel Trivi
ef6b8ea3f6 am 17f1ff8c: do not merge bug 3370834 Cherrypick from master CL 79894
* commit '17f1ff8c99dada2cca93f68d434cf64a6dc692c2':
  do not merge bug 3370834 Cherrypick from master CL 79894
2011-01-26 14:05:25 -08:00
Jean-Michel Trivi
17f1ff8c99 do not merge bug 3370834 Cherrypick from master CL 79894
Support new audio mode for audio communication other than telephony.

Change-Id: I4fa2c277517111e8490f6bdfb97ce3788dc8f549
2011-01-20 12:01:22 -08:00
Eric Laurent
14e362617c am 831ad524: Fix issue 2641884: Bluetooth volume is dependent on in call volume.
* commit '831ad5246fcfcd3c91e02c079a0aee997c895ddf':
  Fix issue 2641884: Bluetooth volume is dependent on in call volume.
2010-12-01 16:06:35 -08:00
Eric Laurent
831ad5246f Fix issue 2641884: Bluetooth volume is dependent on in call volume.
The problem is that the code in AudioPolicyManagerBase::checkAndSetVolume() that forces
voice volume to max when setting bluetooth SCO volume is not called if the bluetooth stream
volume did not actually change. So even if we re apply volumes when switching to bluetooth
device, the voice volume is not changed in audio HAL and remains what it was when routed to earpiece.
What makes things worse on Passion is that stream volumes are limited when connected to bluetooth
and their actual value does not change as soon as they exceed the limit threshold.

Change-Id: Ieb72a71e06e9b3079cc8bc76c78ce83e060a2ea2
2010-12-01 14:17:05 -08:00
Eric Laurent
3cb64cb8bb am 2f2db765: Fix issue 3142808.
* commit '2f2db765228f110b37a2851d1199d3c72d313c6d':
  Fix issue 3142808.
2010-12-01 11:28:56 -08:00
Eric Laurent
2f2db76522 Fix issue 3142808.
There is a bug in the way audio policy manager handles A2DP interface suspend/restore
when SCO is used. This bug is not new but has been triggered by a change in the timing
of the events received by audio policy manager when a call is setup and torn down
introduced by commit 164a8f86c7e48992691368c4895709c3bdb835a4.

The fix consists in grouping the control of A2DP suspended state in a single function
that is called systematically when conditions affecting this state are changed:
- call state change
- device connection/disconnection
- change in forced usage.

Change-Id: Ib76a999513b5afbfd59ba945f8650d2a48d6f480
2010-11-02 18:18:13 -07:00
Chih-Wei Huang
c875bb384f am 709a302e: wifi: pass interface to wpa_supplicant
Merge commit '709a302e77c44a3e3ee8359be3f2c9361f05d02c' into gingerbread-plus-aosp

* commit '709a302e77c44a3e3ee8359be3f2c9361f05d02c':
  wifi: pass interface to wpa_supplicant
2010-09-09 15:19:56 -07:00
Chih-Wei Huang
709a302e77 wifi: pass interface to wpa_supplicant
Change-Id: I577d0e7a0c6cbf7c1ddb025c01519a30bb7997b3
2010-09-03 11:28:57 +08:00
Eric Laurent
bab20b6759 am d6e68c3a: Fix issue 2952766.
Merge commit 'd6e68c3ae5677bc6127628d1c700b11c8f0fcdaf' into gingerbread-plus-aosp

* commit 'd6e68c3ae5677bc6127628d1c700b11c8f0fcdaf':
  Fix issue 2952766.
2010-08-30 15:04:31 -07:00
Eric Laurent
d6e68c3ae5 Fix issue 2952766.
The fix for issue 2952766 showed some unused code in
AudioPolicyManagerBase::checkOutputForStrategy(): since commit
eb8f850d0b7e53956e917fd9645f808c1a09bc88: there is no need
to update the hardware output device as it will be updated when the
new tracks are created by audioflinger.

Change-Id: I2f46fab58a5db3b4cd03fdaeebd7d6603c8dbbdd
2010-08-27 17:16:29 -07:00
Jean-Baptiste Queru
548af73955 Revert "remove libnetutils dependency"
This reverts commit 7c6051a499.
2010-08-18 11:16:25 -07:00
Eric Laurent
930fe98bbe am d2b227e7: Audio policy manager changes for audio effects
Merge commit 'd2b227e76033d8c44b71d2982028a63436d3fe84' into gingerbread-plus-aosp

* commit 'd2b227e76033d8c44b71d2982028a63436d3fe84':
  Audio policy manager changes for audio effects
2010-07-20 11:28:23 -07:00
Eric Laurent
d2b227e760 Audio policy manager changes for audio effects
Added methods for audio effects management by audio policy manager.
- control of total CPU load and memory used by effect engines
- selection of output stream for global effects
- added audio session id in parameter list for startOutput() and stopOutput().
this is not used in default audio policy manager implementation.

Change-Id: I3467e64035387cc5272266b1318a5ed788958374
2010-07-20 09:31:47 -07:00
Mike Lockwood
7cc17d5435 am 0df071ad: Remove obsolete gpstest app.
Merge commit '0df071ad05d1c1dae6b6aaa6122146fa679c7a12' into gingerbread-plus-aosp

* commit '0df071ad05d1c1dae6b6aaa6122146fa679c7a12':
  Remove obsolete gpstest app.
2010-07-01 06:39:52 -07:00
Mike Lockwood
0df071ad05 Remove obsolete gpstest app.
Change-Id: If4456b47aa4af6d50110773c87fb67efa985ece9
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-07-01 09:37:08 -04:00
The Android Open Source Project
44c99ec7cf merge from froyo-plus-aosp
Change-Id: I5fa7394d50dcc53441de332ba778902a08230882
2010-06-21 11:15:22 -07:00
The Android Open Source Project
edfaa7eca9 merge from open-source master
Change-Id: Iff5f59c3bf645911730bfa7defee848e5b54a4a1
2010-06-15 11:38:05 -07:00
Szymon Jakubczak
7c6051a499 remove libnetutils dependency
Change-Id: I2b10ec7b9c8392bf9e64153406264a56b0ecbe30
2010-06-09 16:08:42 -04:00
Nick Kralevich
c6cf19a688 Get rid of warnings when compiled with -Wformat-security
Change-Id: Ib0a56e508734b1eca8b6cf125fd07efefee854aa
2010-05-13 17:38:54 -07:00
The Android Open Source Project
bf871a3efb am 28739a81: merge from open-source master
Merge commit '28739a81dbdeb046adc9e31ffadbe65cb45563b3' into kraken

* commit '28739a81dbdeb046adc9e31ffadbe65cb45563b3':
  Add a static library containing power.c for use by the librpc library.
2010-04-08 10:54:22 -07:00
The Android Open Source Project
28739a81db merge from open-source master
Change-Id: I33605ebb36f1978e1c4715f6688074c808981c8d
2010-04-08 10:47:43 -07:00
Mike Lockwood
818e4bcaa6 Add a static library containing power.c for use by the librpc library.
Change-Id: I0c20d1214f4cb7f21712d4ba46d26ea8308fc45d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-06 10:56:28 -04:00
Mike Lockwood
df61573ba8 Remove obsolete GPS support.
We now use the libhardware HAL interface instead.

Change-Id: I0e52ff1da13109b509f166a6437d0a24cdd389b3
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-05 15:25:49 -04:00
Mike Lockwood
584c59973e am b678f3bb: (-s ours) Add support for GPS privacy lock. DO NOT MERGE
Merge commit 'b678f3bb6c3fa3cc88cda872909ace5791a6304c' into kraken

* commit 'b678f3bb6c3fa3cc88cda872909ace5791a6304c':
  Add support for GPS privacy lock.  DO NOT MERGE
2010-03-30 17:35:12 -07:00
Mike Lockwood
b678f3bb6c Add support for GPS privacy lock. DO NOT MERGE
Change-Id: Iea57de70503d9008cc6be1a7101370948c15bc29
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-28 10:02:57 -04:00
Eric Laurent
68f279fa86 Fix issue 2416481: Support Voice Dialer over BT SCO.
Make the choice of opening a direct output stream platform specific.

Change-Id: I63e5464a18aaa3600e9fed6cec0518ff1fad4dbd
2010-03-15 18:36:58 -07:00
Mike Lockwood
62c2f857ec Add a static library containing power.c for use by the librpc library.
Change-Id: I0c20d1214f4cb7f21712d4ba46d26ea8308fc45d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-09 10:43:16 -05:00
Jean-Baptiste Queru
b1a389a808 Add an empty CleanSpec.mk
Change-Id: I8f0b127fa51a59cc5831b70f7afc47ba0ec4d9ac
2010-03-08 18:04:52 -08:00
Mike Lockwood
4ac28c4482 Fix sim build by including <stdlib.h>
Change-Id: I4df46fff44846b770a00d5f055ec483e9caf2516
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-08 10:56:52 -05:00
Fred Fettinger
7d675d8ea8 libhardware_legacy: add gps debug extension
The gps debug extension provides a single function that allows the native
gps implementation to include an arbitrary string in bugreports.

Change-Id: I1bd8e403e421847784804c47d83e3600340b3fea
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-07 09:30:00 -05:00
Eric Laurent
4eeca24727 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:31 -08:00
Dmitry Shmidt
cabb0103bd Merge "Increase delay after driver loading if FW loader is not used" 2010-02-25 15:28:09 -08:00
Dmitry Shmidt
ed8487244b Increase delay after driver loading if FW loader is not used
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-02-25 12:34:42 -08:00
Eric Laurent
1953686263 Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.
The noise is the residual ring tone that is still playing while the call is answered and the
audio route changed to headset or earpiece.

The fix consists in muting the ringing tone when changing mode from ringtone to in call
and delaying the route change until the audio buffers are emptied.
2010-02-23 10:56:00 -08:00
San Mehat
2209b6f905 libhardware_legacy: Get rid of IMountService c++ bindings
Signed-off-by: San Mehat <san@google.com>
2010-02-20 08:07:27 -08:00
Eric Laurent
e6c221466f Fix issue 2440226: Car dock volume synchronization.
Make computeVolume() method virtual so that its implementation can be platform specific.
2010-02-16 06:06:46 -08:00
Dmitry Shmidt
007404c68f Add additional logging
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-02-08 09:30:59 -08:00
The Android Open Source Project
b74877b93c am 51ca2892: am 8dd38d6b: reconcile main tree with open-source eclair
Merge commit '51ca2892bba945142be57171d4e81e836418fb56'

* commit '51ca2892bba945142be57171d4e81e836418fb56':
  android-2.1_r1 snapshot
2010-02-05 14:10:49 -08:00
The Android Open Source Project
51ca2892bb am 8dd38d6b: reconcile main tree with open-source eclair
Merge commit '8dd38d6bc8918f2153580111fbd8aef6b9f90cc4' into eclair-plus-aosp

* commit '8dd38d6bc8918f2153580111fbd8aef6b9f90cc4':
  android-2.1_r1 snapshot
2010-02-05 08:41:15 -08:00
The Android Open Source Project
8dd38d6bc8 reconcile main tree with open-source eclair 2010-02-05 08:09:38 -08:00
The Android Open Source Project
845d037226 reconcile android-2.1_r1 snapshot 2010-01-29 14:09:19 -08:00
San Mehat
f29ed1a8e3 libhardware_legacy: Refactor C++ bindings for new API
Signed-off-by: San Mehat <san@google.com>
2010-01-29 06:14:10 -08:00
Irfan Sheriff
2631f99375 Return failures as strings to monitor
Bug: 2399119
Change-Id: I17bcb86e002cd520f4275f3786cf54c82aaf59b7
2010-01-28 09:39:50 -08:00
Eric Laurent
392290d659 Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync
Added getRenderPosition() API to AudioHardwareInterface to retreive number of audio frames
    written by DSP to DAC.
2010-01-26 10:36:42 -08:00
San Mehat
d0a89fa6e1 libhardware_legacy: Add support for renaming secure containers
Signed-off-by: San Mehat <san@google.com>
2010-01-23 08:13:08 -08:00
Eric Laurent
f1eb9491a1 Merge "Create base class for audio policy manager." 2010-01-20 10:03:45 -08:00
San Mehat
91a6335923 libhardware_legacy: Add new unmount asec api call
Signed-off-by: San Mehat <san@google.com>
2010-01-18 06:24:01 -08:00
San Mehat
ac41dfc975 libhardware_legacy: Rename MountService method names
Signed-off-by: San Mehat <san@google.com>
2010-01-15 10:04:04 -08:00
Eric Laurent
de55cfb02d Create base class for audio policy manager.
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.
2010-01-13 09:29:49 -08:00
The Android Open Source Project
72a5203bfd android-2.1_r1 snapshot 2010-01-12 15:19:05 -08:00