Commit graph

29 commits

Author SHA1 Message Date
Glenn Kasten
5082dbeb19 Use audio_format_t in AudioPolicy
Also remove unnecessary default parameters

Change-Id: I553c01a98b8c2a3f3fd2ac98724aded3ad3c3022
2013-12-10 10:06:28 -08:00
Nick Kralevich
a8809cd068 am 376356d4: Merge "audio: do not use GNU old-style field designators"
* commit '376356d4e0c135e710c6232e7e3f5c950247c848':
  audio: do not use GNU old-style field designators
2013-11-06 19:29:23 -08:00
synergy dev
c9f04f9cb4 audio: do not use GNU old-style field designators
Avoiding the use of gnu extensions improves code portability

Change-Id: Ifa8f5d230de20a6284bb943c1ca3c48fd5fd5f2d
2013-11-06 18:04:54 -08:00
Elliott Hughes
7e7add707a 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"
2013-11-06 17:41:31 -08:00
Elliott Hughes
5d5a2805e0 Revert "audio: do not use GNU old-style field designators"
This reverts commit d2bd76e0da.

Change-Id: I6fb884cd0e1efa0c792521b67ed193420f6929ba
2013-11-07 01:34:47 +00:00
Nick Kralevich
e1ffc9aa46 am 636ab7e2: Merge "audio: do not use GNU old-style field designators"
* commit '636ab7e2dd52c3cdad575a49b952c1235d734240':
  audio: do not use GNU old-style field designators
2013-11-06 17:10:53 -08:00
synergy dev
d2bd76e0da audio: do not use GNU old-style field designators
Avoiding the use of gnu extensions improves code portability

Change-Id: Ifa8f5d230de20a6284bb943c1ca3c48fd5fd5f2c
2013-11-06 17:05:37 -08:00
Richard Fitzgerald
b4d07b97d2 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>
2013-06-27 17:16:25 -07: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
Jean-Michel Trivi
abc55c6983 AudioPolicyManager supports querying active record sources
Add support for querying whether there is currently a recording
  underway from the specified audio source.

Bug 7314859

Change-Id: I8894845b176241134870af5df2bebc5ef27e4de4
2012-10-10 15:19:35 -07:00
Glenn Kasten
c94dccc97c effect_descriptor_t const correctness
Change-Id: I734155d4cebb22b180f25290332c7c48be1e2b36
2012-07-24 07:51:26 -07:00
Glenn Kasten
551b6a3b5c Use audio_channel_mask_t consistently
Change-Id: I0a274ab9f30a9380bc00eae69988224721fea177
2012-06-19 12:29:39 -07:00
Eric Laurent
0977cf534f rename audio policy flags
Change-Id: Ic42eba3432671f651c9703a07fe7b429a8ec0dff
2012-04-18 10:42:04 -07:00
Eric Laurent
f9a4e2eccf audio policy: use audio_devices_t when appropriate
Change-Id: I0b4e2ff705fce96b40fdda28b1bc4b514438bec6
2012-03-08 13:41:38 -08:00
Glenn Kasten
f3b5a0736e Use audio_source_t consistently
Change-Id: I11de4e92254e128643d8f158c74dcfee97e51005
2012-01-26 16:46:31 -08:00
Glenn Kasten
c97d4bb2bd Merge "Use audio_format_t consistently" 2012-01-20 14:50:30 -08:00
Glenn Kasten
ca0657a1ca Audio policy HAL set_ringer_mode is deprecated
Change-Id: I66ef40ed381151ba61debe20edaa53bece0cc139
2012-01-18 15:24:50 -08:00
Eric Laurent
f6fc420a79 Merge "audio policy manager: stream volume per device" 2012-01-17 17:34:58 -08:00
Eric Laurent
c6f331b3f4 audio policy manager: stream volume per device
Improve volume management by keeping track of volume for each type
of device independently.

AudioPolicyManagerBase now keeps track of stream volumes for each device
and apply volume according to current device selection.
Methods to set and get stream volume now specify the device class.
A value for "default" device is always present for each stream and is used
if a device is selected and no specific volume was ever set for this device.

Change-Id: I06d8f43aa151a09014f7e47e81304c73ff82e9f8
2012-01-17 16:00:01 -08:00
Glenn Kasten
9038c346d7 Merge "Use audio_mode_t consistently" 2012-01-17 11:33:14 -08:00
Glenn Kasten
d97809bca3 Use audio_stream_type_t consistently
Change-Id: Ibeb4071cedb930c76dd62222b29844733bdc1548
2012-01-12 15:02:55 -08:00
Glenn Kasten
53e2cfab45 Use audio_format_t consistently
Was int

Change-Id: I8cc1beaa8006fb0a135cf1135955155090c8e87e
2012-01-12 15:01:42 -08:00
Glenn Kasten
5c1ebdc9db Use audio_mode_t consistently
Change-Id: I62e23b81e3a411a0d9f012b363373d938827a2e4
2012-01-12 10:49:45 -08:00
Steve Block
6a70518b93 Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I953e5eabaf5023a4dcd76339c336d9132f257f8c
2011-10-25 18:16:13 +01:00
Eric Laurent
582a15744b AudioPolicyManager: register effect CPU on enable
Audio effect CPU usage is now registered on enable and
unregistered on disable instead of when the effect is
created or destroyed.

Change-Id: Icffcede9558d8d41887278f0efef2df430927381
2011-08-11 09:17:07 -07:00
Eric Laurent
1c65a49da0 Audio effects: support for audio pre processing
Audio policy manager: allow registration of audio effects on
inputs too.

Change-Id: I92efa5b51cfde591052a5c56ba2b0b84de80df0f
2011-07-12 17:19:08 -07:00
Dima Zavin
d17f66f332 audio: update for audio/audio_policy header names/locations
Change-Id: I7a414a2e173c2bfd72ae70d57b251fa0d4dbdfa0
Signed-off-by: Dima Zavin <dima@android.com>
2011-06-13 18:18:55 -07:00
Dima Zavin
4a0748be28 update for new audio.h header location
Change-Id: Ia0859cc22cfd50a334235aac5b1e8688bc3d52f4
Signed-off-by: Dima Zavin <dima@android.com>
2011-05-11 14:16:14 -07:00
Dima Zavin
e81531e91e hardware_legacy: provide HAL helpers for legacy audio users
This doesn't actually create a HAL, but rather a set of helper static
libraries that device specific libraries (i.e. the old libaudio pieces)
can link against to create a proper audio HAL module.

We provide an audio_policy static wrapper and audio hardware interface
static wrapper.

Change-Id: Ie56195447ad24b83888f752dca24674b0afd8a76
Signed-off-by: Dima Zavin <dima@android.com>
2011-04-27 10:48:25 -07:00