OSDN Git Service

android-x86/hardware-libhardware_legacy.git
10 years agoam 2c388a44: am 8eb3354a: Merge "Audio: add an openOutputStreamWithFlags API"
Eric Laurent [Wed, 7 May 2014 23:39:02 +0000 (23:39 +0000)]
am 2c388a44: am 8eb3354a: Merge "Audio: add an openOutputStreamWithFlags API"

* commit '2c388a441da4a43904ac333a66bb3d5e26a8aa3a':
  Audio: add an openOutputStreamWithFlags API

10 years agoam 8eb3354a: Merge "Audio: add an openOutputStreamWithFlags API"
Eric Laurent [Wed, 7 May 2014 23:36:36 +0000 (23:36 +0000)]
am 8eb3354a: Merge "Audio: add an openOutputStreamWithFlags API"

* commit '8eb3354ad06cc4f24375d076698b35d2c26f0e90':
  Audio: add an openOutputStreamWithFlags API

10 years agoMerge "Audio: add an openOutputStreamWithFlags API"
Eric Laurent [Wed, 7 May 2014 23:34:19 +0000 (23:34 +0000)]
Merge "Audio: add an openOutputStreamWithFlags API"

10 years agoam af477302: Merge commit \'50a76b9727c876405e59d61e082b4be0abebab4b\' into HEAD
Bill Yi [Wed, 30 Apr 2014 00:59:07 +0000 (00:59 +0000)]
am af477302: Merge commit \'50a76b9727c876405e59d61e082b4be0abebab4b\' into HEAD

* commit 'af4773020afdfe1ba2344f785416756e769ce1dc':

10 years agoMerge commit '50a76b9727c876405e59d61e082b4be0abebab4b' into HEAD
Bill Yi [Tue, 29 Apr 2014 18:34:21 +0000 (11:34 -0700)]
Merge commit '50a76b9727c876405e59d61e082b4be0abebab4b' into HEAD

10 years agoam 64527db9: Merge "audio: allow compiling for 64-bit"
Colin Cross [Thu, 24 Apr 2014 08:58:31 +0000 (08:58 +0000)]
am 64527db9: Merge "audio: allow compiling for 64-bit"

* commit '64527db9b27d5f36412fefcd07c7054277ecf6c7':
  audio: allow compiling for 64-bit

10 years agoMerge "audio: allow compiling for 64-bit"
Colin Cross [Wed, 23 Apr 2014 22:04:44 +0000 (22:04 +0000)]
Merge "audio: allow compiling for 64-bit"

10 years agoAudio: add an openOutputStreamWithFlags API
David Wagner [Wed, 23 Apr 2014 09:47:02 +0000 (11:47 +0200)]
Audio: add an openOutputStreamWithFlags API

The existing openOutputStream API did not allow passing stream flags even
though its audio hardware interface's open_output_stream counterpart does take
a "flags" argument.  This means that, when the audio hw_module is implemented
using libhardware_legacy, the output flag was lost.

This commit adds an API in libhardware_legacy's audio module, allowing to pass
the flag, and updates the default wrapper in order to call this new API instead
of the old version that missed the flag.

Change-Id: I20c102d32b489f87fabbd7d02aa0b28fae13948b
Signed-off-by: David Wagner <david.wagner@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
10 years agoaudio: allow compiling for 64-bit
Colin Cross [Fri, 18 Apr 2014 22:39:10 +0000 (15:39 -0700)]
audio: allow compiling for 64-bit

Fix a few 64-bit warnings and set -Wno-unused-parameter, which makes
the directory warnings-clean on 32-bit and 64-bit.
Remove LOCAL_32_BIT_ONLY.

Change-Id: I688b31683f1a6598419866d9b7b6bc27a7056f4a

10 years agoam 60089828: Merge "Audio policy is 32-bit only"
Glenn Kasten [Mon, 17 Mar 2014 21:18:52 +0000 (21:18 +0000)]
am 60089828: Merge "Audio policy is 32-bit only"

* commit '600898287d579c41b77af309f0ab75dbe40c559b':
  Audio policy is 32-bit only

10 years agoam 60089828: Merge "Audio policy is 32-bit only"
Glenn Kasten [Mon, 17 Mar 2014 21:18:29 +0000 (21:18 +0000)]
am 60089828: Merge "Audio policy is 32-bit only"

* commit '600898287d579c41b77af309f0ab75dbe40c559b':
  Audio policy is 32-bit only

10 years agoMerge "Audio policy is 32-bit only"
Glenn Kasten [Mon, 17 Mar 2014 21:14:08 +0000 (21:14 +0000)]
Merge "Audio policy is 32-bit only"

10 years agoAudio policy is 32-bit only
Glenn Kasten [Mon, 17 Mar 2014 18:45:59 +0000 (11:45 -0700)]
Audio policy is 32-bit only

Change-Id: I2eca0286d98bb5eebe9c68286d4ee7ed366f173d

10 years agoam be39c1e4: Merge "audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnu...
Glenn Kasten [Mon, 17 Mar 2014 15:50:23 +0000 (15:50 +0000)]
am be39c1e4: Merge "audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable"

* commit 'be39c1e4cc6b635013553684953d1048d1599a8e':
  audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable

10 years agoam eaf44380: Merge "Wi-Fi HAL: fix supplicant start failed issue"
Narayan Kamath [Mon, 17 Mar 2014 15:50:22 +0000 (15:50 +0000)]
am eaf44380: Merge "Wi-Fi HAL: fix supplicant start failed issue"

* commit 'eaf44380422a9d78b0a56a05ab3742dbeee79dd5':
  Wi-Fi HAL: fix supplicant start failed issue

10 years agoam be39c1e4: Merge "audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnu...
Glenn Kasten [Mon, 17 Mar 2014 15:50:02 +0000 (15:50 +0000)]
am be39c1e4: Merge "audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable"

* commit 'be39c1e4cc6b635013553684953d1048d1599a8e':
  audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable

10 years agoam eaf44380: Merge "Wi-Fi HAL: fix supplicant start failed issue"
Narayan Kamath [Mon, 17 Mar 2014 15:50:01 +0000 (15:50 +0000)]
am eaf44380: Merge "Wi-Fi HAL: fix supplicant start failed issue"

* commit 'eaf44380422a9d78b0a56a05ab3742dbeee79dd5':
  Wi-Fi HAL: fix supplicant start failed issue

10 years agoMerge "audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable"
Glenn Kasten [Mon, 17 Mar 2014 14:41:05 +0000 (14:41 +0000)]
Merge "audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable"

10 years agoaudio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable
Peter Yoon [Wed, 11 Sep 2013 08:45:09 +0000 (17:45 +0900)]
audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable

This commit adds AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable[],
It had to be added here, when it was defined in system/core/include/system/audio.h

AudioPolicyManagerBase::loadHwModule() fails to parse device type of
AUDIO_DEVICE_IN_USB_DEVICE in audio_policy.conf.
By applying this commit, AUDIO_DEVICE_IN_USB_DEVICE can be used for
audio policy customization.

Change-Id: I0165956334d7105129dca4c746372dbca0d9e324

10 years agoMerge "Wi-Fi HAL: fix supplicant start failed issue"
Narayan Kamath [Mon, 17 Mar 2014 09:39:58 +0000 (09:39 +0000)]
Merge "Wi-Fi HAL: fix supplicant start failed issue"

10 years agoWi-Fi HAL: fix supplicant start failed issue
jiaguo [Thu, 13 Mar 2014 10:49:14 +0000 (18:49 +0800)]
Wi-Fi HAL: fix supplicant start failed issue

init.svc.*(hostapd, p2p_supplicant) properties are set when starting
STA or uAP via Wi-Fi HAL, after sending ctrl.start command to
property_service, thread called wifi_start_supplicant will yield cpu
for android init process to get scheduled, then init.svc.* status
is read to check if supplicant status is running

there is a chance that after scheld_yield returned, init is not
scheduled, serial value is not updated, __system_property_read got
the "stopped" status, then init is scheduled to update service status
after that back to this loop in Wi-Fi HAL, serial is updated, but
status is not reread, still used "stopped", then Wi-Fi HAL will
report supplicant start failed

as the following schedule sequence:

process A(WifiStateMachine)           process B(init)
1. ctl.start
2. scheld_yield
3. __system_proerty_read
   /*serial1, value1*/
                                      4. __system_property_update
                                         /*serial2, value2*/
5. serial1 != serial2
6. value1 == "stopped"

So after sched_yield, first check if serial is updated, then read
service status

Change-Id: I5181e0d4504c525832c033b9a35bd58ec63e1de8
Signed-off-by: jiaguo <jiaguo@marvell.com>
10 years agoam c32be36f: Merge "wifi: check if supplicant is running before starting it"
Dmitry Shmidt [Tue, 11 Mar 2014 00:38:41 +0000 (00:38 +0000)]
am c32be36f: Merge "wifi: check if supplicant is running before starting it"

* commit 'c32be36fd0981685cc9c33d32ae9babc466e6ae2':
  wifi: check if supplicant is running before starting it

10 years agoam c32be36f: Merge "wifi: check if supplicant is running before starting it"
Dmitry Shmidt [Mon, 24 Feb 2014 18:23:18 +0000 (18:23 +0000)]
am c32be36f: Merge "wifi: check if supplicant is running before starting it"

* commit 'c32be36fd0981685cc9c33d32ae9babc466e6ae2':
  wifi: check if supplicant is running before starting it

10 years agoMerge "wifi: check if supplicant is running before starting it"
Dmitry Shmidt [Mon, 24 Feb 2014 18:17:01 +0000 (18:17 +0000)]
Merge "wifi: check if supplicant is running before starting it"

10 years agoam 84b5cd7c: Merge "hardware/libhardware_legacy: convert LOCAL_MODULE_PATH to LOCAL_M...
Colin Cross [Tue, 28 Jan 2014 00:55:35 +0000 (00:55 +0000)]
am 84b5cd7c: Merge "hardware/libhardware_legacy: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH"

* commit '84b5cd7cded812398aaef8274ecacf0c3bd1907e':
  hardware/libhardware_legacy: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH

10 years agoMerge "hardware/libhardware_legacy: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIV...
Colin Cross [Tue, 28 Jan 2014 00:46:14 +0000 (00:46 +0000)]
Merge "hardware/libhardware_legacy: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH"

10 years agohardware/libhardware_legacy: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
Colin Cross [Sat, 25 Jan 2014 05:00:32 +0000 (21:00 -0800)]
hardware/libhardware_legacy: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH

LOCAL_MODULE_PATH doesn't work for multiarch builds, replace it
with LOCAL_MODULE_RELATIVE_PATH.

Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e

10 years agoam cf68701c: Merge commit \'9d3950389b53452338fab25f2255623ac159b259\' into HEAD
The Android Open Source Project [Fri, 6 Dec 2013 01:27:54 +0000 (17:27 -0800)]
am cf68701c: Merge commit \'9d3950389b53452338fab25f2255623ac159b259\' into HEAD

* commit 'cf68701c3952cc2e6e258005e3cf9e38fe107ede':

10 years agoMerge commit '9d3950389b53452338fab25f2255623ac159b259' into HEAD
The Android Open Source Project [Thu, 5 Dec 2013 20:38:20 +0000 (12:38 -0800)]
Merge commit '9d3950389b53452338fab25f2255623ac159b259' into HEAD

10 years agoam b8fada87: Merge "wifi: Link libwpa_client only if wpa_supplicant was chosen"
Ying Wang [Thu, 5 Dec 2013 19:18:39 +0000 (11:18 -0800)]
am b8fada87: Merge "wifi: Link libwpa_client only if wpa_supplicant was chosen"

* commit 'b8fada8742caed088c4d9f18353c557255701d2f':
  wifi: Link libwpa_client only if wpa_supplicant was chosen

10 years agoMerge "wifi: Link libwpa_client only if wpa_supplicant was chosen"
Ying Wang [Thu, 5 Dec 2013 19:13:04 +0000 (19:13 +0000)]
Merge "wifi: Link libwpa_client only if wpa_supplicant was chosen"

10 years agowifi: Link libwpa_client only if wpa_supplicant was chosen
Dmitry Shmidt [Fri, 22 Nov 2013 23:54:27 +0000 (15:54 -0800)]
wifi: Link libwpa_client only if wpa_supplicant was chosen

Change-Id: Ic487c3767a17299880e83080b79a91dbbaef1234
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoam 3c2559ea: Merge commit \'c0ff7762509131a5a95ee258fa6da881a23100a6\' into HEAD
The Android Open Source Project [Sat, 23 Nov 2013 01:32:01 +0000 (17:32 -0800)]
am 3c2559ea: Merge commit \'c0ff7762509131a5a95ee258fa6da881a23100a6\' into HEAD

* commit '3c2559ea1672acfa17e64bfece1cc3c2dcd636aa':

10 years agoMerge commit 'c0ff7762509131a5a95ee258fa6da881a23100a6' into HEAD
The Android Open Source Project [Fri, 22 Nov 2013 18:35:27 +0000 (10:35 -0800)]
Merge commit 'c0ff7762509131a5a95ee258fa6da881a23100a6' into HEAD

10 years agoam 18fc094c: Define and use DRC-specific volume curves when applicable
Jean-Michel Trivi [Fri, 15 Nov 2013 17:04:54 +0000 (09:04 -0800)]
am 18fc094c: Define and use DRC-specific volume curves when applicable

* commit '18fc094c0ed41851be3d746423c6695dd28d48e1':
  Define and use DRC-specific volume curves when applicable

10 years agoDefine and use DRC-specific volume curves when applicable
Jean-Michel Trivi [Fri, 15 Nov 2013 00:30:20 +0000 (16:30 -0800)]
Define and use DRC-specific volume curves when applicable

Add support for property defining whether a DRC on the speaker path
 is enabled and will boost soft sounds.
Define new volume curves with more attenuations than existing ones
 to compensate for DRC-induced boost on sonification sounds to
 provide a more "linear" control to the user over the applied volume.

Bug 11600699

Change-Id: If23dd097a8b9b5ebb61e75dd8512ff75e63ba899

10 years agoam 376356d4: Merge "audio: do not use GNU old-style field designators"
Nick Kralevich [Thu, 7 Nov 2013 03:29:23 +0000 (19:29 -0800)]
am 376356d4: Merge "audio: do not use GNU old-style field designators"

* commit '376356d4e0c135e710c6232e7e3f5c950247c848':
  audio: do not use GNU old-style field designators

10 years agoMerge "audio: do not use GNU old-style field designators"
Nick Kralevich [Thu, 7 Nov 2013 03:24:59 +0000 (03:24 +0000)]
Merge "audio: do not use GNU old-style field designators"

10 years agoaudio: do not use GNU old-style field designators
synergy dev [Thu, 7 Nov 2013 01:04:01 +0000 (17:04 -0800)]
audio: do not use GNU old-style field designators

Avoiding the use of gnu extensions improves code portability

Change-Id: Ifa8f5d230de20a6284bb943c1ca3c48fd5fd5f2d

10 years agoam 2c14d798: Merge "Revert "audio: do not use GNU old-style field designators""
Elliott Hughes [Thu, 7 Nov 2013 01:41:31 +0000 (17:41 -0800)]
am 2c14d798: Merge "Revert "audio: do not use GNU old-style field designators""

* commit '2c14d79895593d4f8e1241b522cd3ce2d7225aaf':
  Revert "audio: do not use GNU old-style field designators"

10 years agoMerge "Revert "audio: do not use GNU old-style field designators""
Elliott Hughes [Thu, 7 Nov 2013 01:35:01 +0000 (01:35 +0000)]
Merge "Revert "audio: do not use GNU old-style field designators""

10 years agoRevert "audio: do not use GNU old-style field designators"
Elliott Hughes [Thu, 7 Nov 2013 01:34:47 +0000 (01:34 +0000)]
Revert "audio: do not use GNU old-style field designators"

This reverts commit d2bd76e0dabdfbdd33265b68c6b519cce1d673c6.

Change-Id: I6fb884cd0e1efa0c792521b67ed193420f6929ba

10 years agoam 636ab7e2: Merge "audio: do not use GNU old-style field designators"
Nick Kralevich [Thu, 7 Nov 2013 01:10:53 +0000 (17:10 -0800)]
am 636ab7e2: Merge "audio: do not use GNU old-style field designators"

* commit '636ab7e2dd52c3cdad575a49b952c1235d734240':
  audio: do not use GNU old-style field designators

10 years agoMerge "audio: do not use GNU old-style field designators"
Nick Kralevich [Thu, 7 Nov 2013 01:07:03 +0000 (01:07 +0000)]
Merge "audio: do not use GNU old-style field designators"

10 years agoaudio: do not use GNU old-style field designators
synergy dev [Thu, 7 Nov 2013 01:04:01 +0000 (17:04 -0800)]
audio: do not use GNU old-style field designators

Avoiding the use of gnu extensions improves code portability

Change-Id: Ifa8f5d230de20a6284bb943c1ca3c48fd5fd5f2c

10 years agoMerge "audio policy: fix gapless playback when effects enabled" into klp-dev
Eric Laurent [Wed, 30 Oct 2013 01:17:47 +0000 (01:17 +0000)]
Merge "audio policy: fix gapless playback when effects enabled" into klp-dev

10 years agomerge in klp-release (no-op)
Ed Heyl [Thu, 17 Oct 2013 00:43:55 +0000 (17:43 -0700)]
merge in klp-release (no-op)

10 years agoaudio policy: fix gapless playback when effects enabled
Eric Laurent [Sat, 12 Oct 2013 23:29:39 +0000 (16:29 -0700)]
audio policy: fix gapless playback when effects enabled

Do not allow offloading if one non offloadable effect is enabled. This prevents from
creating an offloaded track and tearing it down immediately after start when audioflinger
detects there is an active non offloadable effect.
Not doing so breaks gapless playback because AwesomePlayer will always be able to open
an offloaded track which will not be compatible with the previous PCM track and
Audiosink::open() will not recycle it.

Bug: 11181933.
Change-Id: I6d163806849d9093b9ec701ba8e8c1ccb658e3c8

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 8 Oct 2013 13:00:52 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoaudio policy: fix direct output selection
Eric Laurent [Sun, 6 Oct 2013 19:39:32 +0000 (12:39 -0700)]
audio policy: fix direct output selection

commit a527ffd broke the selection of an available
direct output profile in getProfileForDirectOutput().
getProfileForDirectOutput() should check for direct output profiles
regardless of the flags provided to getOutput().

Bug: 11051912.
Change-Id: I4a84734331bfed03d6024ea1c2e8776c27d0b28f

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 6 Oct 2013 13:01:34 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoaudio policy: fix DTMF tones volume while in call
Eric Laurent [Fri, 4 Oct 2013 01:02:16 +0000 (18:02 -0700)]
audio policy: fix DTMF tones volume while in call

When voice call stream volume is at 0, DTMF are not heard at all.
DTMF volume should follow the behavior of voice call volume which
is never completely muted.

Bug: 10932676.
Change-Id: Iaf0e33284be75b00516a837907e66be3123e5331

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 2 Oct 2013 13:01:21 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoremove audio HAL warning when inserting a headset
Eric Laurent [Tue, 1 Oct 2013 02:20:15 +0000 (19:20 -0700)]
remove audio HAL warning when inserting a headset

A valid offload info structure must be provided when
opening an offload output stream in checkOutputsForDevice()
upon headset insertion.

Bug: 8174034.
Change-Id: Id800a206536e5ce979febf89747a51db581c53b6

10 years agoaudio: fix remote submix sampling rates
Eric Laurent [Thu, 26 Sep 2013 18:28:36 +0000 (11:28 -0700)]
audio: fix remote submix sampling rates

Only list 48000 Hz in supported sampling rates for remote submix
output and input stream profiles to avoid mismatch betwen playback
and capture.

Bug: 10900252.
Change-Id: Id96e914caeb42e8f4aa5fe4e55e19156cdd67b58

10 years agoaudio: fix remote submix sampling rates
Eric Laurent [Thu, 26 Sep 2013 18:28:36 +0000 (11:28 -0700)]
audio: fix remote submix sampling rates

Only list 48000 Hz in supported sampling rates for remote submix
output and input stream profiles to avoid mismatch betwen playback
and capture.

Bug: 10900252.
Change-Id: Id96e914caeb42e8f4aa5fe4e55e19156cdd67b58

10 years agoaudio policy: add support for audio effect offload
Eric Laurent [Fri, 13 Sep 2013 00:39:21 +0000 (17:39 -0700)]
audio policy: add support for audio effect offload

Add rules to select the appropriate output for global
effects.
Move global effects if needed when an offloaded output is
created or released.

Bug: 8174034.

Change-Id: I0bbd8e9f8aa717f672462dd74ba0d01eaef1fda7

10 years agoMerge "AudioPolicyManageBase changes to enable HOTWORD audio source" into klp-dev
Eric Laurent [Thu, 12 Sep 2013 00:15:03 +0000 (00:15 +0000)]
Merge "AudioPolicyManageBase changes to enable HOTWORD audio source" into klp-dev

10 years agoAudioPolicyManageBase changes to enable HOTWORD audio source
Eric Laurent [Mon, 9 Sep 2013 17:42:47 +0000 (10:42 -0700)]
AudioPolicyManageBase changes to enable HOTWORD audio source

- This change enables HOTWORD audio source to be preempted by any other
  audio source

Bug: 10640877.

Change-Id:  I6f7acbe95a6521306db70ad73260d2ba7b38b940

10 years agoaudio policy: extend min duration for offload
Eric Laurent [Mon, 9 Sep 2013 20:24:05 +0000 (13:24 -0700)]
audio policy: extend min duration for offload

Extend minimun duration of offloaded audio content
to 1 minute to avoid offloading short clips like
TTS generated files.

Bug: 8174034.
Change-Id: Ied21557c300af4b27d99388e069576e36804087f

11 years agoaudio policy: remove verbose logging.
Eric Laurent [Fri, 30 Aug 2013 22:47:52 +0000 (15:47 -0700)]
audio policy: remove verbose logging.

Change-Id: I268935bd8f7e58f90c698c098686a04681b43887

11 years agoaudio policy: disable audio offloading with video
Eric Laurent [Fri, 30 Aug 2013 00:29:19 +0000 (17:29 -0700)]
audio policy: disable audio offloading with video

Do not enable offloading of audio decompression when
playing video.

Change-Id: I6ee8b59370219f5ef810a99a27ba4a1cf222b55b

11 years agoaudio policy: allow virtual input even if there are active inputs
Chong Zhang [Sat, 24 Aug 2013 23:44:47 +0000 (16:44 -0700)]
audio policy: allow virtual input even if there are active inputs

Bug: 10460751

Change-Id: Ic6fcd14162e9c6e03366d887063321e21fcf14cd

11 years agoAutomatically enable/disable remote submix when input started.
Jeff Brown [Sat, 17 Aug 2013 03:10:48 +0000 (20:10 -0700)]
Automatically enable/disable remote submix when input started.

When recording from the audio submix begins, enable the remote
audio submit output device.  When it ends, disable it.

Bug: 10265163
Change-Id: Ia0dc2e20623bb834d06561469ce856688991243b

11 years agoUse a single socket to communicate with supplicant
Vinit Deshapnde [Thu, 8 Aug 2013 17:39:25 +0000 (10:39 -0700)]
Use a single socket to communicate with supplicant

This helps to preapre for future updates from external sources.

Bug: 9298955

Change-Id: I4c63ad5fc1ea3564aab38cfce955de19bad75c0c
(cherry picked from commit 759cc323cb586192d591a815b0fb9d839536fcd6)

11 years agoCode changes for audio offload support
Richard Fitzgerald [Mon, 13 May 2013 10:52:24 +0000 (11:52 +0100)]
Code changes for audio offload support

- Share existing offload output if compatible instead of
  creating a new one. Hardware has limited number of
  offload channels (possible only 1) so we must use as
  few as possible

- Changes to routing handling for offloaded outputs

Change-Id: I11111d8f504828595bd8dbf66444cbd1202e7192
Signed-off-by: Eric Laurent <elaurent@google.com>
11 years agoam 4c7db154: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Tue, 16 Jul 2013 18:20:54 +0000 (11:20 -0700)]
am 4c7db154: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge

* commit '4c7db154564031237df705641f27d504d4ae3f11':
  audio policy: apply default device volume

11 years agoReconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Tue, 16 Jul 2013 18:19:23 +0000 (11:19 -0700)]
Reconcile with jb-mr2-zeroday-release - do not merge

Change-Id: I44d1b4bc2d06e2ec3d7837693a1880d7e6cf1774

11 years agoaudio policy: apply default device volume
Eric Laurent [Mon, 15 Jul 2013 22:35:58 +0000 (15:35 -0700)]
audio policy: apply default device volume

Make sure that we apply default device volume to
active outputs in case no specific volume for selected
device is received afterward.

Bug: 9760269.
Change-Id: I216de40396e1075e77493c97e8b192cd3a31d546

11 years agoam 8e7e4254: am e92d6238: audio policy: apply default device volume
Eric Laurent [Tue, 16 Jul 2013 00:26:21 +0000 (17:26 -0700)]
am 8e7e4254: am e92d6238: audio policy: apply default device volume

* commit '8e7e42547116b1d5f49118ba41946b2906ad3936':
  audio policy: apply default device volume

11 years agoam e92d6238: audio policy: apply default device volume
Eric Laurent [Tue, 16 Jul 2013 00:23:36 +0000 (17:23 -0700)]
am e92d6238: audio policy: apply default device volume

* commit 'e92d623811f3fd3e7cc5e5dd8bc93c0c0a8fdf50':
  audio policy: apply default device volume

11 years agoaudio policy: apply default device volume
Eric Laurent [Mon, 15 Jul 2013 22:35:58 +0000 (15:35 -0700)]
audio policy: apply default device volume

Make sure that we apply default device volume to
active outputs in case no specific volume for selected
device is received afterward.

Bug: 9760269.
Change-Id: I216de40396e1075e77493c97e8b192cd3a31d546

11 years agowifi: Sync with wpa_supplicant commit 1075b29
Dmitry Shmidt [Fri, 12 Jul 2013 17:10:40 +0000 (10:10 -0700)]
wifi: Sync with wpa_supplicant commit 1075b29

Change-Id: I502a925054c13f3ceb43445e1c4703427ed4ca7f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoInclude header files used by this header
Glenn Kasten [Tue, 2 Jul 2013 21:08:21 +0000 (14:08 -0700)]
Include header files used by this header

Change-Id: I36c6f580c698706b961150978e2124f9235eab12

11 years agoAdd audio policy API changes for audio offload
Richard Fitzgerald [Mon, 25 Mar 2013 16:18:26 +0000 (16:18 +0000)]
Add audio policy API changes for audio offload

Changes to the API of audio policy for audio offload support:
- Add isOffloadSupported() function
- Add OUTPUT_FLAG_OFFLOAD
- Extend AudioOutputDescriptor to include a sharing count for direct outputs
- Pass audio_offload_info_t when opening output streams

Change-Id: I5ad26418fdb286eb7ae299d586dd1fd525d48ab9
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Eric Laurent <elaurent@google.com>
11 years agoam 248c9aa9: am 2769ce79: Merge "Use accessor to read property serial numbers"
Colin Cross [Tue, 18 Jun 2013 01:33:50 +0000 (18:33 -0700)]
am 248c9aa9: am 2769ce79: Merge "Use accessor to read property serial numbers"

* commit '248c9aa92c8f3e2f33a0e8a02436ea366266495f':
  Use accessor to read property serial numbers

11 years agoam 2769ce79: Merge "Use accessor to read property serial numbers"
Colin Cross [Tue, 18 Jun 2013 01:21:38 +0000 (18:21 -0700)]
am 2769ce79: Merge "Use accessor to read property serial numbers"

* commit '2769ce79def80023e454708deec176e3259dc586':
  Use accessor to read property serial numbers

11 years agoMerge "Use accessor to read property serial numbers"
Colin Cross [Tue, 18 Jun 2013 01:11:56 +0000 (01:11 +0000)]
Merge "Use accessor to read property serial numbers"

11 years agoUse accessor to read property serial numbers
Colin Cross [Mon, 4 Feb 2013 20:34:20 +0000 (12:34 -0800)]
Use accessor to read property serial numbers

Hide the implementation of the property structures by using
an accessor.

(cherry picked from commit 14c02f245e56687b765487d25a034d71196d33b6)

Change-Id: Id86ff99d8430fa73bbc745aaa0ff2b7713ca7885

11 years agoUse accessor to read property serial numbers
Colin Cross [Mon, 4 Feb 2013 20:34:20 +0000 (12:34 -0800)]
Use accessor to read property serial numbers

Hide the implementation of the property structures by using
an accessor.

Change-Id: Ic604935882f6085e3d082baa651bad9bafe0a54a

11 years agowifi: Move common file from wpa_supplicant_lib
Dmitry Shmidt [Thu, 6 Jun 2013 23:51:59 +0000 (16:51 -0700)]
wifi: Move common file from wpa_supplicant_lib

Change-Id: I902f864da4317fd637fbc31036133c49a8ae0724
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowifi: Skip adding interface prefix if exists
Dmitry Shmidt [Thu, 6 Jun 2013 17:45:48 +0000 (10:45 -0700)]
wifi: Skip adding interface prefix if exists

Bug: 9313188

Change-Id: I63784493c84ac4ffcc9810a7798b1c0de1b0f68b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowifi: Use global control socket
Dmitry Shmidt [Wed, 29 May 2013 17:34:39 +0000 (10:34 -0700)]
wifi: Use global control socket

Change-Id: I11e4438ec0b36575e1b5a563ac4da57303d028c7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowifi: Add command buffer length parameter to wifi_command()
Dmitry Shmidt [Thu, 30 May 2013 17:49:15 +0000 (10:49 -0700)]
wifi: Add command buffer length parameter to wifi_command()

Change-Id: I832bc51279e0fb7d3002298f87a35b816b666ad5
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agowifi: Use wpa_ctrl_cleanup() function from wpa_supplicant
Dmitry Shmidt [Wed, 22 May 2013 23:45:57 +0000 (16:45 -0700)]
wifi: Use wpa_ctrl_cleanup() function from wpa_supplicant

Change-Id: I24af9ec380e138f24864cd9359c6901b8b29e5ee
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam 66707435: audio policy: fix device selection in startInput()
Eric Laurent [Tue, 21 May 2013 15:55:38 +0000 (08:55 -0700)]
am 66707435: audio policy: fix device selection in startInput()

* commit '66707435156d8d99d795271a7bd54943065b4c2d':
  audio policy: fix device selection in startInput()

11 years agoaudio policy: fix device selection in startInput()
Eric Laurent [Fri, 17 May 2013 21:11:27 +0000 (14:11 -0700)]
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

11 years agoam a776ffd2: Rewrite an invalid config file
Irfan Sheriff [Fri, 12 Apr 2013 23:09:04 +0000 (16:09 -0700)]
am a776ffd2: Rewrite an invalid config file

* commit 'a776ffd243bbd02948ebefd43f4ac2690ebb11e6':
  Rewrite an invalid config file

11 years agoRewrite an invalid config file
Irfan Sheriff [Fri, 12 Apr 2013 22:46:29 +0000 (15:46 -0700)]
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

11 years agoam e5d72df1: Add liblog
Ying Wang [Wed, 10 Apr 2013 05:33:14 +0000 (22:33 -0700)]
am e5d72df1: Add liblog

* commit 'e5d72df1f1107653627674347475c7cbcc4bf8ba':
  Add liblog

11 years agoAdd liblog
Ying Wang [Wed, 10 Apr 2013 04:57:48 +0000 (21:57 -0700)]
Add liblog

Bug: 8580410
Change-Id: Ib86983540b34e8c9083979fdd21a17715ec53f80

11 years agoam 5a950c96: audio policy: reuse direct output when possible
Eric Laurent [Thu, 4 Apr 2013 21:59:22 +0000 (14:59 -0700)]
am 5a950c96: audio policy: reuse direct output when possible

* commit '5a950c960cd40648cc3ab8defe817f88e0a7ecf4':
  audio policy: reuse direct output when possible

11 years agoaudio policy: reuse direct output when possible
Eric Laurent [Thu, 4 Apr 2013 00:31:04 +0000 (17:31 -0700)]
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

11 years agoam 80f5b040: audio policy: fix music glitch when starting call
Eric Laurent [Tue, 26 Mar 2013 00:26:46 +0000 (00:26 +0000)]
am 80f5b040: audio policy: fix music glitch when starting call

* commit '80f5b0400f86d49e70aa1a793b34f34492f005bc':
  audio policy: fix music glitch when starting call

11 years agoaudio policy: fix music glitch when starting call
Eric Laurent [Mon, 25 Mar 2013 16:58:09 +0000 (09:58 -0700)]
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

11 years agoam 58d6b9eb: (-s ours) am 10f06dc0: am 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours...
Jean-Baptiste Queru [Mon, 11 Mar 2013 20:56:10 +0000 (20:56 +0000)]
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':

11 years agoam 10f06dc0: am 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours...
Jean-Baptiste Queru [Mon, 11 Mar 2013 20:44:29 +0000 (13:44 -0700)]
am 10f06dc0: am 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '10f06dc0787c20d9ffab07e59654322b9348c056':

11 years agoam 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile...
Jean-Baptiste Queru [Mon, 11 Mar 2013 20:13:35 +0000 (13:13 -0700)]
am 0b904fda: am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '0b904fdaa636372e9173f1fb4a5dae5c382aabb8':

11 years agoam 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1...
Jean-Baptiste Queru [Mon, 11 Mar 2013 20:00:42 +0000 (13:00 -0700)]
am 93bb0058: am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '93bb0058bd3e5c0703797289f88a033789249766':

11 years agoam 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do...
Jean-Baptiste Queru [Mon, 11 Mar 2013 19:42:00 +0000 (12:42 -0700)]
am 4bcc1fdb: (-s ours) am b25a2fcf: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '4bcc1fdb8ef242e6f8fe55181e16c18c5cd220ad':