Commit graph

301 commits

Author SHA1 Message Date
Eric Laurent
61f3579486 Tentative fix for issue 3362362.
Added an initCheck() method to AudioPolicyInterface to verify
successful initialization of AudioPolicyManager.

Change-Id: I4c892282dbeb3246ee6c006bd206a3e723bcb71f
2011-01-19 08:49:30 -08:00
Dmitry Shmidt
0e9f488e67 wifi: Update wpa_supplicant.conf interface in case of mismatch
Change-Id: Iea7432bd96df2c1474e5af1788225322c9b78307
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-01-05 11:32:03 -08:00
Irfan Sheriff
8a5b197b3d rewrite wpa_supplicant.conf when it is too small
Bug: 2850497
Change-Id: Ifce2055212f78519f2cac8f73ee86b0b7a9ee0ee
2010-12-17 09:39:05 -08:00
Brian Swetland
e686393f88 do not actually error out when there's no kernel power interface
This allows the system to work on hardware that doesn't have PM
support (board bringup, etc) but has no ill effects on production
hardware.

Change-Id: I4e40ac92c6b4d08f2044224f80382934061ccc06
2010-12-03 20:51:49 -08:00
Eric Laurent
6b42202515 am 14e36261: am 831ad524: Fix issue 2641884: Bluetooth volume is dependent on in call volume.
* commit '14e362617ceb67f1ae3dd09e0f7744860b5ee066':
  Fix issue 2641884: Bluetooth volume is dependent on in call volume.
2010-12-01 16:30:46 -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
f9e188482f am 3cb64cb8: am 2f2db765: Fix issue 3142808.
* commit '3cb64cb8bbda335affcb3c71fce3c4f908a97111':
  Fix issue 3142808.
2010-12-01 12:15:23 -08:00
Eric Laurent
3cb64cb8bb am 2f2db765: Fix issue 3142808.
* commit '2f2db765228f110b37a2851d1199d3c72d313c6d':
  Fix issue 3142808.
2010-12-01 11:28:56 -08:00
Jean-Michel Trivi
3e480fa067 Support new audio mode for audio communication other than telephony.
Change-Id: I965cbeee67f72e31240e3e8cd2630bf22a03b9ea
2010-11-15 16:45:36 -08:00
Dianne Hackborn
7314fe03b6 Add an API to find out whether there is a vibrator.
Change-Id: Ic0d967bc72c542fc6a97331c9197114f3f571c08
2010-11-04 12:05:45 -07: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
Erik Gilling
1cb1728b18 add native uevent handling
Change-Id: I2315f5638668ab802a4b3c723afd97b7edf0c695
2010-10-20 16:07:57 -07:00
Dmitry Shmidt
8fb5f74df7 wifi: Remove unnecessary delay after loading the driver
Change-Id: I371d262a5bf5da989c0c7beabb9fcb8d440375e4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-14 15:11:22 -07:00
Chih-Wei Huang
a738e38d44 am c875bb38: am 709a302e: wifi: pass interface to wpa_supplicant
Merge commit 'c875bb384f1c17aa198262acd72b18825f7d8152'

* commit 'c875bb384f1c17aa198262acd72b18825f7d8152':
  wifi: pass interface to wpa_supplicant
2010-09-09 15:53:02 -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
7a25fd7138 am bab20b67: am d6e68c3a: Fix issue 2952766.
Merge commit 'bab20b6759d9f0445e4ff5f27f0a3666f0efafa5'

* commit 'bab20b6759d9f0445e4ff5f27f0a3666f0efafa5':
  Fix issue 2952766.
2010-08-30 15:07:42 -07: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
6e21ee7a3c am 548af739: (-s ours) Revert "remove libnetutils dependency"
Merge commit '548af73955b14f6615d4ca8b637ecfa3929abd06'

* commit '548af73955b14f6615d4ca8b637ecfa3929abd06':
  Revert "remove libnetutils dependency"
2010-08-18 13:31:43 -07:00
Jean-Baptiste Queru
548af73955 Revert "remove libnetutils dependency"
This reverts commit 7c6051a499.
2010-08-18 11:16:25 -07:00
Dmitry Shmidt
24bf7fc4e0 Fix wpa_supplicant.conf permissions (0660)
Change-Id: I62e6711f706af88d4447f2885f7a0ce3f30a8a2e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-08-09 11:23:45 -07:00
Irfan Sheriff
2bb990bfd2 Add is_wifi_driver_loaded
Change-Id: I73600a11891b1380d8bc1bfbc24494410a989fcb
2010-07-27 12:17:08 -07:00
Eric Laurent
3be78bce2b resolved conflicts for merge of 930fe98b to master
Change-Id: Ib6ab3b02aede7e07b71e19b16d305919be849bdd
2010-07-20 12:23:58 -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
7fbf4515ec am 7cc17d54: am 0df071ad: Remove obsolete gpstest app.
Merge commit '7cc17d5435eae10b87d56e8b58665c976c81751b'

* commit '7cc17d5435eae10b87d56e8b58665c976c81751b':
  Remove obsolete gpstest app.
2010-07-01 11:55:51 -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
Jean-Baptiste Queru
445591dded Undo previous merge
Change-Id: I74fd5ae2634b0c7909b7ab332d174f98a9c8aee5
2010-06-21 13:15:01 -07:00
The Android Open Source Project
b33a811e81 am 44c99ec7: merge from froyo-plus-aosp
Merge commit '44c99ec7cf4c78731d129d5657560dc555b24d50'

* commit '44c99ec7cf4c78731d129d5657560dc555b24d50':
  remove libnetutils dependency
2010-06-21 11:17:34 -07: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
Eric Laurent
564c303237 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: Ic6c54b4a7fd54983f445de9a9b5cd2ea0025155c
2010-05-25 09:30:03 -07:00
Nick Kralevich
eacdfdb897 am c6cf19a6: Get rid of warnings when compiled with -Wformat-security 2010-05-14 09:03:29 -07: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
6d91052d0d am bf871a3e: am 28739a81: merge from open-source master 2010-04-08 11:01:03 -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
de3ebff26f resolved conflicts for merge of df61573b to master
Change-Id: I483a850ac59c4cc90d5d48edd7164ea29673cb6d
2010-04-05 15:55:40 -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
30219ff6be Add support for GPS privacy lock.
Change-Id: I06dbd4b332926dde836eedb95e15791a7ebe0294
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-31 07:41:34 -07:00
Mike Lockwood
8b82f8b9b1 am 584c5997: (-s ours) am b678f3bb: (-s ours) Add support for GPS privacy lock. DO NOT MERGE 2010-03-30 17:41:17 -07: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