Commit graph

509 commits

Author SHA1 Message Date
Dmitry Shmidt
8ab86c7865 wifi: Move common file from wpa_supplicant_lib
Change-Id: I902f864da4317fd637fbc31036133c49a8ae0724
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-06-06 16:51:59 -07:00
Dmitry Shmidt
c15ccf4d05 wifi: Skip adding interface prefix if exists
Bug: 9313188

Change-Id: I63784493c84ac4ffcc9810a7798b1c0de1b0f68b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-06-06 10:45:48 -07:00
Dmitry Shmidt
ec0576034b wifi: Use global control socket
Change-Id: I11e4438ec0b36575e1b5a563ac4da57303d028c7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-06-03 17:57:30 -07:00
Dmitry Shmidt
77cc5e2925 wifi: Add command buffer length parameter to wifi_command()
Change-Id: I832bc51279e0fb7d3002298f87a35b816b666ad5
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-05-30 10:49:15 -07:00
Dmitry Shmidt
de9abffc38 wifi: Use wpa_ctrl_cleanup() function from wpa_supplicant
Change-Id: I24af9ec380e138f24864cd9359c6901b8b29e5ee
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-05-22 16:47:40 -07:00
Eric Laurent
a6c2f12ce8 am 66707435: audio policy: fix device selection in startInput()
* commit '66707435156d8d99d795271a7bd54943065b4c2d':
  audio policy: fix device selection in startInput()
2013-05-21 08:55:38 -07:00
Eric Laurent
6670743515 audio policy: fix device selection in startInput()
Check again input device selection when capture starts in case
conditions have changed since the input stream was opened.

This is related to but does not fix issue 8761558. It makes the
selection of BT SCO device consistent.

Bug: 8761558
Change-Id: I386b638e9c3238711e16fb848449af561624359e
2013-05-17 14:11:27 -07:00
Irfan Sheriff
c85cf2f9b2 am a776ffd2: Rewrite an invalid config file
* commit 'a776ffd243bbd02948ebefd43f4ac2690ebb11e6':
  Rewrite an invalid config file
2013-04-12 16:09:04 -07:00
Irfan Sheriff
a776ffd243 Rewrite an invalid config file
We saw a case of config file being corrupted. Add a mechanism to
recover from this when wifi is toggled off and on.

Bug: 8569820
Change-Id: If2baceb065838d2adb5cde61772d25a05455fc90
2013-04-12 15:47:39 -07:00
Ying Wang
48541fbf0d am e5d72df1: Add liblog
* commit 'e5d72df1f1107653627674347475c7cbcc4bf8ba':
  Add liblog
2013-04-09 22:33:14 -07:00
Ying Wang
e5d72df1f1 Add liblog
Bug: 8580410
Change-Id: Ib86983540b34e8c9083979fdd21a17715ec53f80
2013-04-09 21:57:48 -07:00
Eric Laurent
9915f75464 am 5a950c96: audio policy: reuse direct output when possible
* commit '5a950c960cd40648cc3ab8defe817f88e0a7ecf4':
  audio policy: reuse direct output when possible
2013-04-04 14:59:22 -07:00
Eric Laurent
5a950c960c audio policy: reuse direct output when possible
Modified getOutput() logic to not systematically
open a new direct output when a profile matches a request.
This causes a problem when transitioning between two
multichannel tracks as the audio HAL will most of the times
only support one direct output stream open at a time.

Instead, reuse an open output if all the parameters match
or force close the output before reopening it.

Also modify releaseOuput():
- close a direct output only if no client is using it anymore
- call closeOutput() instead of removing the output from
the open output list: this factors in code executed when closing an
output stream.

Bug 8388941

Change-Id: Ic3d3beb21063622ddf57a5b932f93d56f2986f54
2013-04-04 14:18:40 -07:00
Eric Laurent
ad093746ac am 80f5b040: audio policy: fix music glitch when starting call
* commit '80f5b0400f86d49e70aa1a793b34f34492f005bc':
  audio policy: fix music glitch when starting call
2013-03-26 00:26:46 +00:00
Eric Laurent
80f5b0400f audio policy: fix music glitch when starting call
When answering a call in silent mode, music playing over A2DP
was not immediately muted by current audio policy manager logic.

The fix consists in muting media strategy on all output streams
immediately when entering in call.

Also add methods to AudioOutputDescriptor to report
recent global, per strategy and per stream activity.

Bug 8315512

Change-Id: I4a90eb05db50e4f22374d02b1e647e8662f6bec6
2013-03-25 16:58:39 -07:00
Jean-Baptiste Queru
cb8daa8c44 am 58d6b9eb: (-s ours) am 10f06dc0: am 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '58d6b9eb20a9805ea7cecff1df01259e8a2ce1d4':
2013-03-11 20:56:10 +00:00
Jean-Baptiste Queru
58d6b9eb20 am 10f06dc0: am 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '10f06dc0787c20d9ffab07e59654322b9348c056':
2013-03-11 13:44:29 -07:00
Jean-Baptiste Queru
10f06dc078 am 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '0b904fdaa636372e9173f1fb4a5dae5c382aabb8':
2013-03-11 13:13:35 -07:00
Jean-Baptiste Queru
0b904fdaa6 am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '93bb0058bd3e5c0703797289f88a033789249766':
2013-03-11 13:00:42 -07:00
Jean-Baptiste Queru
93bb0058bd am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '4bcc1fdb8ef242e6f8fe55181e16c18c5cd220ad':
2013-03-11 12:42:00 -07:00
Jean-Baptiste Queru
4bcc1fdb8e am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit 'b25a2fcfae02ff802b81978ec82f0da8d2735d77':
2013-03-11 12:27:41 -07:00
Jean-Baptiste Queru
b25a2fcfae Reconcile with jb-mr1-release - do not merge 2013-03-11 12:20:16 -07:00
Eric Laurent
9641bd36db audio policy: fix in call capture device
Allow use of default capture device when
AUDIO_SOURCE_VOICE_UPLINK is specified and the platform
does not support AUDIO_DEVICE_IN_VOICE_CALL.

Change-Id: Ibbc314f60c91e5a0fa75d57878f2d2a96ef2d83b
2013-03-05 16:53:53 +00:00
Eric Laurent
f32e38e24d audio policy: fix music glitch with touch sounds
There is a brief music interruption when a touch sound
is played the first time after the headset insertion.

This is due to a bug in audio policy manager logic to prevent
volume bursts while changing device while music is playing.

The fix consists in muting music only on current output stream
when changing device, not all output streams.

Also prevent unecessary device change if the requested device
is not supported by the output stream profile.

Bug: 8301565
Change-Id: I00daab19bbdda10ca856a05fa32a1e333e1b9469
2013-03-04 17:56:02 -08:00
Dmitry Shmidt
2c52037dd4 wifi: Remove obsolete variables
Change-Id: I4759c26bf59f593650374ae4b205e8a1f83a8d68
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-02-27 17:45:59 -08:00
Eric Laurent
bb0e0da128 Merge "audio policy: fix in call audio setup delay" 2013-02-11 21:42:48 +00:00
Eric Laurent
8bf56b16e5 audio policy: fix in call audio setup delay
There is a delay inserted by audio policy manager before switching
device when entering in call mode to allow music playback to be muted
before the device actually switches.

This delay can be significant when high latency outputs (e.g. deep buffers) are
present and should not be applied if the output is not active.

Issue 7612431.

Change-Id: I04b666769033dbfdc861752b030d3f7bdffe9435
2013-02-11 12:48:20 -08:00
Jean-Michel Trivi
dc3bf1a374 Identify remote stream activity, used for notification routing
Add support for checking remote stream activity.

Don't route notifications like media when media active remotely.

Add remote stream activity query in audio policy HAL.

Bug 7485803

Change-Id: Ifb722c7f9ffbfbdc877fec5156bcfc09bec40651
2013-02-11 10:23:13 -08:00
Eric Laurent
60758e27a4 audio policy: added front + back mic
Added definition to parse front + back mic from input descriptors
in audio_policy.conf file.

Change-Id: I9ebdeac664e12104589a52d15acbbfc4db787923
2013-01-22 17:07:33 -08:00
Eric Laurent
49637a296a am 8d674a4b: (-s ours) am 85f8faa6: am a7c17deb: audio policy: notification delay - DO NOT MERGE
* commit '8d674a4b6f4300df90415889c2f57fe8b383e867':
  audio policy: notification delay - DO NOT MERGE
2012-11-08 15:59:48 -08:00
Eric Laurent
d28170bb0f am 2fbecbad: (-s ours) am 8d8ad2ec: am fe43d163: audio policy: fix volume problem - DO NOT MERGE
* commit '2fbecbad88f0c6298c35a5bc1bf87aa244059754':
  audio policy: fix volume problem - DO NOT MERGE
2012-11-08 15:59:47 -08:00
John Grossman
5c3b448c13 am 8254f4b2: (-s ours) am 503d13af: am da06cb61: audio policy: fix dynamic parameter - DO NOT MERGE
* commit '8254f4b244a1f5d65054831d2b0afe53c67c3898':
  audio policy: fix dynamic parameter - DO NOT MERGE
2012-11-08 15:59:46 -08:00
Jason Simmons
c5527033f1 am 81e6a2e0: (-s ours) am 77514217: am e912bfd7: audio policy: direct output fix - DO NOT MERGE
* commit '81e6a2e099546f4580253d2b0262d43f2a4090aa':
  audio policy: direct output fix - DO NOT MERGE
2012-11-08 15:59:45 -08:00
Eric Laurent
8d674a4b6f am 85f8faa6: am a7c17deb: audio policy: notification delay - DO NOT MERGE
* commit '85f8faa65754011161f40b2047fa19a6128ba88c':
  audio policy: notification delay - DO NOT MERGE
2012-11-08 15:48:01 -08:00
Eric Laurent
2fbecbad88 am 8d8ad2ec: am fe43d163: audio policy: fix volume problem - DO NOT MERGE
* commit '8d8ad2ec94dfab5555dbac71c8d5fe8d1cde0cea':
  audio policy: fix volume problem - DO NOT MERGE
2012-11-08 15:48:00 -08:00
John Grossman
8254f4b244 am 503d13af: am da06cb61: audio policy: fix dynamic parameter - DO NOT MERGE
* commit '503d13af915529f78312c6cd3fc951923c45f4f2':
  audio policy: fix dynamic parameter - DO NOT MERGE
2012-11-08 15:45:09 -08:00
Jason Simmons
81e6a2e099 am 77514217: am e912bfd7: audio policy: direct output fix - DO NOT MERGE
* commit '77514217215c1b7872ece94dc9d3ceef62cdefbb':
  audio policy: direct output fix - DO NOT MERGE
2012-11-08 15:45:09 -08:00
Eric Laurent
85f8faa657 am a7c17deb: audio policy: notification delay - DO NOT MERGE
* commit 'a7c17deb32fe28230b77b0dff17bb113088a5c16':
  audio policy: notification delay - DO NOT MERGE
2012-11-08 14:35:56 -08:00
Eric Laurent
8d8ad2ec94 am fe43d163: audio policy: fix volume problem - DO NOT MERGE
* commit 'fe43d163d6646a175934f0752fa05e3e53e89da4':
  audio policy: fix volume problem - DO NOT MERGE
2012-11-08 14:35:56 -08:00
John Grossman
503d13af91 am da06cb61: audio policy: fix dynamic parameter - DO NOT MERGE
* commit 'da06cb6142faa3e09cbf7226ca9c75e45661095b':
  audio policy: fix dynamic parameter - DO NOT MERGE
2012-11-08 10:09:04 -08:00
Jason Simmons
7751421721 am e912bfd7: audio policy: direct output fix - DO NOT MERGE
* commit 'e912bfd79880ea5faac0fbcdb4e696125e151e18':
  audio policy: direct output fix - DO NOT MERGE
2012-11-08 10:06:35 -08:00
Eric Laurent
a7c17deb32 audio policy: notification delay - DO NOT MERGE
merge from master:

"audio policy: fix notification start delay

The mechanism delaying notifications in case of
muliple active outputs with long latencies must
take into account recently paused audio tracks.

Bug 7400428."

Change-Id: I4ac9dfac81336e33f475b4f28df82713707d0c46
2012-11-08 09:46:10 -08:00
Eric Laurent
911408bc76 Merge "audio policy: fix notification start delay" 2012-11-08 09:43:16 -08:00
Eric Laurent
fe43d163d6 audio policy: fix volume problem - DO NOT MERGE
merge from master:

"audio policy: fix volume change when disabling SCO

commit 76e97d39 introduced a regression by having setDeviceConnectionState()
force a device change on duplicated outputs even if the selected device is 0.
This also forces a device 0 for the two outputs it is duplicated to,
which may override a valid device selection on those outputs and apply
default volumes.

Bug 7429869."

Change-Id: I37dd66343c54eb27e420089edbda04444fa1e2c6
2012-11-08 08:56:57 -08:00
John Grossman
da06cb6142 audio policy: fix dynamic parameter - DO NOT MERGE
merge from master:

"Fix a parse error in checkOutputForDevice

Fix a small parsing error in parsing the supported formats and sample
rates of a stream out with dynamic values for these parameters.  The
channel mask parser was properly skipping the "=" in the setting
string, but formats and sample rates were not (cauing the first
reported format and sample rate to end up being skipped)"

Change-Id: Id227a44f6b5fc0c223f2ce74f94ebb6abc5fa77d
Signed-off-by: John Grossman <johngro@google.com>
2012-11-08 08:53:40 -08:00
Jason Simmons
e912bfd798 audio policy: direct output fix - DO NOT MERGE
merge "Close a newly opened direct output if its parameters are invalid"
from master

Change-Id: I27ac015217480a854d25273ab9498949971b411a
2012-11-08 08:48:34 -08:00
Irfan Sheriff
3dee034c45 am b1e73538: am 7fcf81e3: am 745e7fd4: Fix stop supplicant api
* commit 'b1e73538da3e719f404ca014c48fd8dddf81c141':
  Fix stop supplicant api
2012-11-08 06:18:53 -08:00
Jason Simmons
02580d804a am c8bc2286: am 7aab5b0f: Merge "Close a newly opened direct output if its parameters are invalid" into jb-mr1-aah-dev
* commit 'c8bc22869096ee413717102d3f5d0ca804cc3174':
  Close a newly opened direct output if its parameters are invalid
2012-11-08 06:18:52 -08:00
Irfan Sheriff
b1e73538da am 7fcf81e3: am 745e7fd4: Fix stop supplicant api
* commit '7fcf81e3a4ac036f23d818d9d5a8eba4387b9b96':
  Fix stop supplicant api
2012-11-08 06:14:28 -08:00
Jason Simmons
c8bc228690 am 7aab5b0f: Merge "Close a newly opened direct output if its parameters are invalid" into jb-mr1-aah-dev
* commit '7aab5b0f27b9567d077cc6c01807811027066619':
  Close a newly opened direct output if its parameters are invalid
2012-11-08 06:12:35 -08:00