OSDN Git Service

android-x86/hardware-libhardware_legacy.git
11 years agoam da06cb61: audio policy: fix dynamic parameter - DO NOT MERGE
John Grossman [Thu, 8 Nov 2012 18:09:04 +0000 (10:09 -0800)]
am da06cb61: audio policy: fix dynamic parameter - DO NOT MERGE

* commit 'da06cb6142faa3e09cbf7226ca9c75e45661095b':
  audio policy: fix dynamic parameter - DO NOT MERGE

11 years agoam e912bfd7: audio policy: direct output fix - DO NOT MERGE
Jason Simmons [Thu, 8 Nov 2012 18:06:35 +0000 (10:06 -0800)]
am e912bfd7: audio policy: direct output fix - DO NOT MERGE

* commit 'e912bfd79880ea5faac0fbcdb4e696125e151e18':
  audio policy: direct output fix - DO NOT MERGE

11 years agoaudio policy: fix dynamic parameter - DO NOT MERGE
John Grossman [Tue, 30 Oct 2012 01:42:43 +0000 (18:42 -0700)]
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>
11 years agoaudio policy: direct output fix - DO NOT MERGE
Jason Simmons [Wed, 31 Oct 2012 17:50:12 +0000 (10:50 -0700)]
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

11 years agoam 745e7fd4: Fix stop supplicant api
Irfan Sheriff [Wed, 7 Nov 2012 01:41:35 +0000 (17:41 -0800)]
am 745e7fd4: Fix stop supplicant api

* commit '745e7fd4e09db2b47371338ee54c54255e286473':
  Fix stop supplicant api

11 years agoFix stop supplicant api
Irfan Sheriff [Sun, 4 Nov 2012 06:21:39 +0000 (23:21 -0700)]
Fix stop supplicant api

Bug: 7227463
Change-Id: I4576e223c69dd67bd714fefecf0a1047770362fd

11 years agoMerge "Close a newly opened direct output if its parameters are invalid" into jb...
Jason Simmons [Tue, 6 Nov 2012 21:23:13 +0000 (13:23 -0800)]
Merge "Close a newly opened direct output if its parameters are invalid" into jb-mr1-aah-dev

11 years agoam 62fcb215: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
The Android Open Source Project [Tue, 6 Nov 2012 20:20:39 +0000 (12:20 -0800)]
am 62fcb215: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

* commit '62fcb21577ccdd68dddd6b6984ad0ce58ee0c228':

11 years agoReconcile with jb-mr1-factory-release jb-mr1-release - do not merge
The Android Open Source Project [Tue, 6 Nov 2012 20:17:42 +0000 (12:17 -0800)]
Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

Change-Id: Ia0e74b5de81f7a112a2e4d829111c6cc7d937617

11 years agoClose a newly opened direct output if its parameters are invalid
Jason Simmons [Wed, 31 Oct 2012 17:50:12 +0000 (10:50 -0700)]
Close a newly opened direct output if its parameters are invalid

Change-Id: I27ac015217480a854d25273ab9498949971b411a

11 years agoFix a parse error in checkOutputForDevice
John Grossman [Tue, 30 Oct 2012 01:42:43 +0000 (18:42 -0700)]
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>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Mon, 29 Oct 2012 18:20:03 +0000 (11:20 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoaudio policy: active analog dock force usage
Eric Laurent [Sat, 27 Oct 2012 01:04:03 +0000 (18:04 -0700)]
audio policy: active analog dock force usage

Qualify the selection of the analog dock for media by the force use.

Bug 7302106.

Change-Id: I2ea48fd43866ce8491085bba72a27751b2203401

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 19 Oct 2012 13:59:44 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoMerge "Fix native crash when driver commands time out" into jb-mr1-dev
Irfan Sheriff [Thu, 18 Oct 2012 23:27:35 +0000 (16:27 -0700)]
Merge "Fix native crash when driver commands time out" into jb-mr1-dev

11 years agoFix native crash when driver commands time out
Irfan Sheriff [Thu, 18 Oct 2012 23:16:21 +0000 (16:16 -0700)]
Fix native crash when driver commands time out

Bug: 7361130
Change-Id: Ia076b4ec84a4a0e05ba9eaa53ed732fa041fca6a

11 years agoMerge "audio policy: fix scanning of supported devices" into jb-mr1-dev
Eric Laurent [Thu, 18 Oct 2012 18:38:54 +0000 (11:38 -0700)]
Merge "audio policy: fix scanning of supported devices" into jb-mr1-dev

11 years agoMerge "audio policy: tune voice/video chat volumes" into jb-mr1-dev
Eric Laurent [Thu, 18 Oct 2012 17:54:44 +0000 (10:54 -0700)]
Merge "audio policy: tune voice/video chat volumes" into jb-mr1-dev

11 years agoaudio policy: fix scanning of supported devices
Eric Laurent [Thu, 18 Oct 2012 00:49:41 +0000 (17:49 -0700)]
audio policy: fix scanning of supported devices

Fix is a bug in checkOutputsForDevice() which makes that we can
try to reopen an output stream after a new device is connected because
we believe that no opened output is available for this device.

Bug 7369475.

Change-Id: I2290a9b5ba102657cda495fbb8a995e0003b883a

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 17 Oct 2012 23:07:17 +0000 (16:07 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoaudio policy: tune voice/video chat volumes
Eric Laurent [Wed, 17 Oct 2012 17:14:14 +0000 (10:14 -0700)]
audio policy: tune voice/video chat volumes

Add new volume curves for VOICE_CALL stream type
to improve voice/video chat volume on speakers.

Bug 7346643.

Change-Id: Ib282a97570d2234deec6b58391bdfc45846d9cc0

11 years agoaudio policy: update output delayMs in setPhoneState
SathishKumar Mani [Thu, 11 Oct 2012 01:58:40 +0000 (18:58 -0700)]
audio policy: update output delayMs in setPhoneState

- Issue: When call is connected in HDMI while playing music,
  Playback is routed to phone shortly
- Cause: delayMs is not updated correctly, and no delay is
  set when setOutputDevice is called
- Fix: update delayMs with biggest mOutput latency and mute
  STRATEGY_MEDIA on all outputs

Bug: 7268860
Change-Id: I12b75443a29ab8485314bd0cbfe5ee4789be5c29
Signed-off-by: Iliyan Malchev <malchev@google.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 17 Oct 2012 13:59:34 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoMerge "audio policy: do not route in call audio to HDMI" into jb-mr1-dev
Eric Laurent [Wed, 17 Oct 2012 00:12:44 +0000 (17:12 -0700)]
Merge "audio policy: do not route in call audio to HDMI" into jb-mr1-dev

11 years agoInitialize mStrategyMutedByDevice
Marco Nelissen [Tue, 16 Oct 2012 22:00:37 +0000 (15:00 -0700)]
Initialize mStrategyMutedByDevice

Valgrind found this

Change-Id: I24c640c2b0b6cac129c23bfc18828aff005ec952

11 years agoaudio policy: do not route in call audio to HDMI
Eric Laurent [Tue, 16 Oct 2012 21:59:36 +0000 (14:59 -0700)]
audio policy: do not route in call audio to HDMI

In call audio shuold not be routed to HDMI, S/PDIF or USB
by default as most platform do not support it.

Bug 7339490.

Change-Id: Iac4803f3fbde0c321fc7b37ab7ba34af6a16b4aa

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 16 Oct 2012 13:59:32 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoMerge "Remote audio submix always has priority for media, only plays media" into...
Jean-Michel Trivi [Mon, 15 Oct 2012 23:26:15 +0000 (16:26 -0700)]
Merge "Remote audio submix always has priority for media, only plays media" into jb-mr1-dev

11 years agomerge in jb-mr1-factory-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 12 Oct 2012 23:34:35 +0000 (16:34 -0700)]
merge in jb-mr1-factory-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 12 Oct 2012 23:32:49 +0000 (16:32 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoMerge "Fix native crash" into jb-mr1-dev
Irfan Sheriff [Fri, 12 Oct 2012 18:58:01 +0000 (11:58 -0700)]
Merge "Fix native crash" into jb-mr1-dev

11 years agoRemote audio submix always has priority for media, only plays media
Jean-Michel Trivi [Fri, 12 Oct 2012 01:06:33 +0000 (18:06 -0700)]
Remote audio submix always has priority for media, only plays media

Don't use force use mechanism for remote audio submix routing.

Prevent streams of strategy sonification to be played over
 remote audio submix (e.g. WFD) and HDMI

Bug 7318180

Change-Id: Ic5c87d3c568873dffea9002cf87ecf42b403cde6

11 years agoFix native crash
Irfan Sheriff [Wed, 10 Oct 2012 22:41:13 +0000 (15:41 -0700)]
Fix native crash

Bug: 6404766
Change-Id: I8d2199fe2f4d48840a237b1ec2d085fe40c06517

11 years agomerge in jb-mr1-factory-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 11 Oct 2012 15:19:21 +0000 (08:19 -0700)]
merge in jb-mr1-factory-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 11 Oct 2012 14:03:54 +0000 (07:03 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoAudioPolicyManager supports querying active record sources
Jean-Michel Trivi [Wed, 10 Oct 2012 19:39:04 +0000 (12:39 -0700)]
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

11 years agomerge in jb-mr1-factory-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 10 Oct 2012 15:55:57 +0000 (08:55 -0700)]
merge in jb-mr1-factory-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 10 Oct 2012 13:59:31 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 9 Oct 2012 23:07:23 +0000 (16:07 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoaudio policy: add forced uses for system
Eric Laurent [Mon, 8 Oct 2012 22:53:09 +0000 (15:53 -0700)]
audio policy: add forced uses for system

The volume and routing policy of AUDIO_STREAM_ENFORCED_AUDIBLE is
now controlled by AudioService by means of new forced use type
AUDIO_POLICY_FORCE_FOR_SYSTEM with config
AUDIO_POLICY_FORCE_SYSTEM_ENFORCED.

Property ro.camera.sound.forced is not used anymore.

Bug 7032634.

Change-Id: I742b0eebbe6b013f61d199846454a06411b52bc8

11 years agofix a typo in uevent_next_eventi
Mathias Agopian [Mon, 1 Oct 2012 21:53:18 +0000 (14:53 -0700)]
fix a typo in uevent_next_eventi

Bug: 7114973
Change-Id: I15a4c714b59aeb1d02db00517d70b5f0e5ab22c2

11 years agoaudio policy: force device update if disconnected
Eric Laurent [Thu, 27 Sep 2012 01:50:09 +0000 (18:50 -0700)]
audio policy: force device update if disconnected

Force the new device selection to be applied when a device is disconnected
even if none is select. This is to indicate to the audio HAL that current
device selection is not valid anymore even if no new device is selected because
no audio track is active.

Bug 7141149.

Change-Id: Iade02fb53a4cc2051fce9da07870c5391396b696

11 years agoaudio policy: fix crash when closing HDMI output
Eric Laurent [Tue, 25 Sep 2012 23:52:22 +0000 (16:52 -0700)]
audio policy: fix crash when closing HDMI output

When a direct output is closed, the vector containing
the previously opened outputs must also be updated.

Bug 7157451.

Change-Id: I575b1f4928cf7527a4a98632fdec7600664a1e1c

11 years agoam e0232039: Merge "Restore the ability to use ctrl_interface directory"
Jean-Baptiste Queru [Thu, 20 Sep 2012 23:17:28 +0000 (16:17 -0700)]
am e0232039: Merge "Restore the ability to use ctrl_interface directory"

* commit 'e0232039e0a59f7ef4fc67dad178387b2d5fffba':
  Restore the ability to use ctrl_interface directory

11 years agoMerge "Restore the ability to use ctrl_interface directory"
Jean-Baptiste Queru [Thu, 20 Sep 2012 22:51:37 +0000 (15:51 -0700)]
Merge "Restore the ability to use ctrl_interface directory"

11 years agoSupport audio recording while remote submix is active
Jean-Michel Trivi [Mon, 17 Sep 2012 20:40:35 +0000 (13:40 -0700)]
Support audio recording while remote submix is active

When evaluating if an audio record is active, do not count inputs
 opened on "virtual" devices, such as remote submix, as active.

Change-Id: If19c321cf673e3bdf4c3f81e73c163190df7c21e

11 years agoaudio: new audio devices enums
Eric Laurent [Tue, 28 Aug 2012 21:32:21 +0000 (14:32 -0700)]
audio: new audio devices enums

Changes for new audio devices enums:
- legacy audio HAL wrapper provides conversion between new and
old device enums. It exposes a rev 2.0 audio device API to the
audio framework and allow legacy implementation to use old device enums.
- AudioPolicyManager: use standard enum value for no device (0).

Change-Id: I855d72291d672cdd8a6641bedb228634a54b7d9d

11 years agoUpdate Audio Policy Manager for remote submix
Jean-Michel Trivi [Mon, 20 Aug 2012 21:40:08 +0000 (14:40 -0700)]
Update Audio Policy Manager for remote submix

Define a new forced mode to route media to remote submix.
Update media routing rules according to mode.
Modify device connection management for remote submix.

Note that this CL doesn't implement changes to not prevent audio
 recording when WFD is on, as audio recording is currently limited
 to one input.

Change-Id: I458fe1802705da2d091ff82e536dc3e7f092f291

11 years agoaudio policy: fix ringtone volume on headphones
Eric Laurent [Thu, 6 Sep 2012 01:13:06 +0000 (18:13 -0700)]
audio policy: fix ringtone volume on headphones

When limiting ringtone volume because headphones are connected
and music is playing, the volume was not limited against the right
music volume. The is because the device used for music (headphone)
is not the same as the one used for ringtone (headphone + speaker).

Bug 6816207.

Change-Id: I3342be1789a1b7c58705812335b788f030bc6d76

11 years agoUpdate AudioPolicyManagerBase to only use audio_devices_t
Jean-Michel Trivi [Fri, 24 Aug 2012 18:45:04 +0000 (11:45 -0700)]
Update AudioPolicyManagerBase to only use audio_devices_t

The AudioPolicyManagerBase implementation was using some device
 enum values from AudioSystemLegacy.h, of type audio_devices,
 and some from /system/audio.h, of type audio_devices_t.
Now only uses audio_devices_t, and associated functions to
 inspect what audio device type they correspond to.
Added #define to represent "no audio device" to clarify code.
Removed unused variable in AudioPolicyManagerBase::startOutput()

Change-Id: Ibec311dac550d6a806397377206a43bc708914c0

11 years agoRestore the ability to use ctrl_interface directory
Paul Drews [Tue, 24 Jul 2012 23:17:53 +0000 (16:17 -0700)]
Restore the ability to use ctrl_interface directory

lihardware_legacy was ALWAYS re-writing the
wpa_supplicant.conf file's "ctrl_interface" entry to the
value specified as the property wifi.interface, whose value
was typically "wlan0".  This was designed to allow the
wpa_supplicant service to be started with a "socket"
directive in its service description in an init.rc file.
Under these circumstances, the socket name is exchanged
between wpa_supplicant and its WifiService client through an
environment variable whose name is derived from
wifi.interface and a standard prefix.

However, since the "ctrl_interface" entry was always
re-written in this way, it broke the ability to use
"ctrl_interface" in its standard usage as a directory where
the (unix-domain) socket will be exchanged.

This change restores the ability to use the standard
directory-form ctrl_interface usage by limiting the
re-writing of the ctrl_interface entry to cases where it
does not look like an absolute path or the "DIR=" form of
directory.

Change-Id: I96c8656d144c1ea41e25ab0eb0807f7b49193b49
Signed-off-by: Paul Drews <paul.drews@intel.com>
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
11 years agoRemove unused member variables in AudioPolicyManagerBase
Jean-Michel Trivi [Tue, 21 Aug 2012 00:02:39 +0000 (17:02 -0700)]
Remove unused member variables in AudioPolicyManagerBase

The fields for the lists of input and output IOProfile are
 not used in the AudioPolicyManagerBase class. Those are
 actually stored inside each HwModule instance.

Change-Id: Iebb9fa5b7599a74013fd785a87de692890a89758

11 years agoeffect_descriptor_t const correctness
Glenn Kasten [Tue, 24 Jul 2012 14:51:26 +0000 (07:51 -0700)]
effect_descriptor_t const correctness

Change-Id: I734155d4cebb22b180f25290332c7c48be1e2b36

11 years agoMerge "Use audio_channel_mask_t consistently"
Glenn Kasten [Tue, 26 Jun 2012 00:28:38 +0000 (17:28 -0700)]
Merge "Use audio_channel_mask_t consistently"

11 years agoaudio policy: fix HDMI hot plug
Eric Laurent [Thu, 21 Jun 2012 16:55:49 +0000 (09:55 -0700)]
audio policy: fix HDMI hot plug

When an HDMI sink is connected it is possible that
a direct output is made available for multichannel audio.
In this case, the list of outputs available to reach the HDMI device
after the connection is different from before. checkOutputForStrategy()
must take this into account in order to invalidate tracks so that
they can be re connected to the multi channel output if necessary.

Change-Id: Id0baeb51688eba8017fe96bf92aaac52eb8e0f59

11 years agoUse audio_channel_mask_t consistently
Glenn Kasten [Tue, 19 Jun 2012 19:29:39 +0000 (12:29 -0700)]
Use audio_channel_mask_t consistently

Change-Id: I0a274ab9f30a9380bc00eae69988224721fea177

11 years agoReconcile with jb-release
The Android Open Source Project [Tue, 19 Jun 2012 13:13:45 +0000 (06:13 -0700)]
Reconcile with jb-release

Change-Id: I2c7b504ccf7c3d9f7d0b17824f228c1a9ed87a0d

11 years agoaudio policy: fix volume upon A2DP connection
Eric Laurent [Wed, 13 Jun 2012 22:19:32 +0000 (15:19 -0700)]
audio policy: fix volume upon A2DP connection

setForceUse() should not force new device selection on outputs
if the selected device is 0. If a device 0 (no device) selection
is forced on a duplicated output, this causes volumes to be reset to
their default on outputs the duplicated output is connected to.

Also force reapply volumes when a new output is created. It is safer and more
explicit than relying on the fact that the selected volume is different
from default volume and thus is actually sent to audioflinger.

Bug 6658021.

Change-Id: I0a14d5229847e001b0d44f60d41c241efdb9946a

11 years agoam 4366b4a6: audio policy: fix volume upon A2DP connection
Eric Laurent [Thu, 14 Jun 2012 15:41:07 +0000 (08:41 -0700)]
am 4366b4a6: audio policy: fix volume upon A2DP connection

* commit '4366b4a6735e5da342b56773073f0b41197c777f':
  audio policy: fix volume upon A2DP connection

11 years agoaudio policy: fix volume upon A2DP connection
Eric Laurent [Wed, 13 Jun 2012 22:19:32 +0000 (15:19 -0700)]
audio policy: fix volume upon A2DP connection

setForceUse() should not force new device selection on outputs
if the selected device is 0. If a device 0 (no device) selection
is forced on a duplicated output, this causes volumes to be reset to
their default on outputs the duplicated output is connected to.

Also force reapply volumes when a new output is created. It is safer and more
explicit than relying on the fact that the selected volume is different
from default volume and thus is actually sent to audioflinger.

Bug 6658021.

Change-Id: I0a14d5229847e001b0d44f60d41c241efdb9946a

11 years agoReconcile with jb-release
The Android Open Source Project [Mon, 11 Jun 2012 16:22:36 +0000 (09:22 -0700)]
Reconcile with jb-release

Change-Id: Ia53e5d26bd13718633bfe4931243ee2d9b1bdb6f

11 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Fri, 8 Jun 2012 15:20:44 +0000 (08:20 -0700)]
merge in jb-release history after reset to jb-dev

11 years agoam e3ce4e99: Merge "Increase system stream volume on speaker" into jb-dev
Jean-Michel Trivi [Thu, 7 Jun 2012 23:34:37 +0000 (16:34 -0700)]
am e3ce4e99: Merge "Increase system stream volume on speaker" into jb-dev

* commit 'e3ce4e99970bd2820f91345b769e6f57353e02f0':
  Increase system stream volume on speaker

11 years agoMerge "Increase system stream volume on speaker" into jb-dev
Jean-Michel Trivi [Thu, 7 Jun 2012 22:29:09 +0000 (15:29 -0700)]
Merge "Increase system stream volume on speaker" into jb-dev

11 years agoam 5568b826: Merge "audio policy: fix notification volume limitation" into jb-dev
Eric Laurent [Thu, 7 Jun 2012 16:12:34 +0000 (09:12 -0700)]
am 5568b826: Merge "audio policy: fix notification volume limitation" into jb-dev

* commit '5568b826b6b9b084f76b777db8b0411c7565e870':
  audio policy: fix notification volume limitation

11 years agoam fa3697d7: audio policy: remove delay when enabling speaker
Eric Laurent [Thu, 7 Jun 2012 16:12:33 +0000 (09:12 -0700)]
am fa3697d7: audio policy: remove delay when enabling speaker

* commit 'fa3697d716b444bbea6be480801536c44bf69214':
  audio policy: remove delay when enabling speaker

11 years agoMerge "audio policy: fix notification volume limitation" into jb-dev
Eric Laurent [Thu, 7 Jun 2012 16:10:26 +0000 (09:10 -0700)]
Merge "audio policy: fix notification volume limitation" into jb-dev

11 years agoReconcile with jb-release
The Android Open Source Project [Thu, 7 Jun 2012 14:51:02 +0000 (07:51 -0700)]
Reconcile with jb-release

Change-Id: Iee868b6fbd8dda16cb70e4ea22d5a49ee927f3ce

11 years agoaudio policy: fix notification volume limitation
Eric Laurent [Thu, 7 Jun 2012 00:39:16 +0000 (17:39 -0700)]
audio policy: fix notification volume limitation

The limitation of notification volume when playing music over headphones
has been broken for devices where notifications and music are played over
separate output streams.

Fix computeVolume() to check music stream activity on all outputs.

Bug 6623707.

Change-Id: Ie25f9b428ea086efe0be5fea2d31551d2528b655

11 years agoaudio policy: remove delay when enabling speaker
Eric Laurent [Wed, 6 Jun 2012 23:09:03 +0000 (16:09 -0700)]
audio policy: remove delay when enabling speaker

Do not force mute on a strategy when moving it from one output
stream to another if no stream is active.

Bug 6611972.

Change-Id: I21f72b0ef3600639de66e6b0a1c3ae44045fd81f

11 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Wed, 6 Jun 2012 14:02:52 +0000 (07:02 -0700)]
merge in jb-release history after reset to jb-dev

11 years agoIncrease system stream volume on speaker
Jean-Michel Trivi [Tue, 5 Jun 2012 18:35:24 +0000 (11:35 -0700)]
Increase system stream volume on speaker

Increase the volume of the system stream for speaker output, so
 sounds played on this stream can be louder on devices that
 need it.
Additional changes in the rest of the framework will define properties
 to tune sound effect levels on a per-device basis.

Bug 6448481

Change-Id: Ia6c1ff314a321c6e271a682e3f4ff64c250b184e

11 years agoam 3cdfddf1: audio policy: improve support for direct outputs
Eric Laurent [Tue, 5 Jun 2012 16:34:09 +0000 (09:34 -0700)]
am 3cdfddf1: audio policy: improve support for direct outputs

* commit '3cdfddf1b27bcb5408ca3a04fcdf206447ba07ba':
  audio policy: improve support for direct outputs

11 years agoaudio policy: improve support for direct outputs
Eric Laurent [Tue, 1 May 2012 01:28:24 +0000 (18:28 -0700)]
audio policy: improve support for direct outputs

Add the capability to query supported parameters for
direct outputs after a device is connected. This allows
to dynamically update the output profile for devices like
HDMI where the capabilities depend on the connected sink.

Also added very verbose log mode for volume and mute.

Change-Id: I1d4ba8e7dbc3e1af883582857ce93240441e551c

11 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Sun, 3 Jun 2012 13:03:23 +0000 (06:03 -0700)]
merge in jb-release history after reset to jb-dev

11 years agoam 46604553: Ensure global effects are on the correct output
Marco Nelissen [Sat, 2 Jun 2012 02:00:32 +0000 (19:00 -0700)]
am 46604553: Ensure global effects are on the correct output

* commit '4660455366d2ee64cb65f0ecd6f7ddeb1c17bac6':
  Ensure global effects are on the correct output

11 years agoEnsure global effects are on the correct output
Marco Nelissen [Thu, 31 May 2012 17:50:29 +0000 (10:50 -0700)]
Ensure global effects are on the correct output

Global effects such as the visualizer would sometimes not be on the
right output, for example when switching from a2dp to wired headset
or back, when there are both regular and deep buffer outputs available.
We now check which of the available outputs the global effect should
be on when more than one is available.
b/6528772

Change-Id: Ie268e32ef41e7888da67c24730dc93750a2cf579

11 years agoReconcile with jb-release
The Android Open Source Project [Tue, 29 May 2012 16:41:03 +0000 (09:41 -0700)]
Reconcile with jb-release

Change-Id: Ib51f8d004df9740327110e2dfd9a3be26cee5800

11 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Tue, 29 May 2012 15:58:27 +0000 (08:58 -0700)]
merge in jb-release history after reset to jb-dev

11 years agoam 1afd84f6: audio policy: allow disabling A2DP for media.
Eric Laurent [Thu, 24 May 2012 18:42:55 +0000 (11:42 -0700)]
am 1afd84f6: audio policy: allow disabling A2DP for media.

* commit '1afd84f62291d20414cbf58c7af01462a8fdca60':
  audio policy: allow disabling A2DP for media.

11 years agoReconcile with jb-release
The Android Open Source Project [Tue, 22 May 2012 20:06:36 +0000 (13:06 -0700)]
Reconcile with jb-release

Change-Id: Idddf82739bdf873cc163171dd5469f017f7d07a6

11 years agoaudio policy: allow disabling A2DP for media.
Eric Laurent [Mon, 21 May 2012 15:50:50 +0000 (08:50 -0700)]
audio policy: allow disabling A2DP for media.

Added FORCE_NO_BT_A2DP forced use to allow applications to
override default policy to use A2DP whenever connected.

Bug 6485897.

Change-Id: I784271c062294fbe1aff7884965075b40c68dc24

11 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Sun, 20 May 2012 14:39:47 +0000 (07:39 -0700)]
merge in jb-release history after reset to jb-dev

11 years agoam 01e6272f: audio policy: fix in call volume problem.
Eric Laurent [Fri, 18 May 2012 02:09:21 +0000 (19:09 -0700)]
am 01e6272f: audio policy: fix in call volume problem.

* commit '01e6272f0a3a7d1d53e826012377ff9269b03b06':
  audio policy: fix in call volume problem.

11 years agoReconcile with jb-release nakasi-factoryrom-release
The Android Open Source Project [Wed, 16 May 2012 15:40:49 +0000 (08:40 -0700)]
Reconcile with jb-release nakasi-factoryrom-release

Change-Id: I4d5083c87b3e9fc0bc5168dca5328db64ee5b936

11 years agoaudio policy: fix in call volume problem.
Eric Laurent [Wed, 16 May 2012 02:16:30 +0000 (19:16 -0700)]
audio policy: fix in call volume problem.

When switching audio path, it is sometimes required
to temporarily mute certain streams to avoid glitches.
The unmute command is sent with a delay but the volume applied
when unmuting is computed according to the state at the time of mute.
If the device selection changes after the delayed unmute is programmed
the new volume will not correspond to the new device.

setStreamMute() now accepts a device selection as input parameter which is
used instead of current device for volume computation.

Bug 6497819.

Change-Id: I355ebf9e1afe814fa5c2723bda9c40e58f921b46

11 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Mon, 14 May 2012 14:03:47 +0000 (07:03 -0700)]
merge in jb-release history after reset to jb-dev

12 years agoDelete unused function.
Jeff Brown [Sat, 12 May 2012 00:40:45 +0000 (17:40 -0700)]
Delete unused function.

set_last_user_activity_timeout() is no longer used or useful.
It opens a sysfs node that no longer exists that used to
be published by a daemon that is no longer even compiled
and that is about to be deleted.  It used to be called
by the power manager with a huge value whose purpose was
essentially to disable the timeout feature altogether.

Long live dead code!

Bug: 6435382
Change-Id: If8f97a66f4e963a11e1c6b67ad97b41b2613043e

12 years agoReduce system stream volume.
Eric Laurent [Thu, 10 May 2012 17:12:19 +0000 (10:12 -0700)]
Reduce system stream volume.

Reduce system stream volume by 6dB as
UI sounds are now perceived as being too loud.

Issue 6448481.

Change-Id: I0237eb94245014724dfdf55253049340e2162af8

12 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Mon, 30 Apr 2012 14:03:22 +0000 (07:03 -0700)]
merge in jb-release history after reset to jb-dev

12 years agosystem and UI sounds volume policy
Eric Laurent [Wed, 25 Apr 2012 22:47:56 +0000 (15:47 -0700)]
system and UI sounds volume policy

Added specific volume curves for AUDIO_STREAM_SYSTEM,
AUDIO_STREAM_ENFORCED_AUDIBLE and AUDIO_STREAM_DTMF.
Volume for these streams tracks AUDIO_STREAM_RING on phones
and AUDIO_STREAM_MUSIC on tablets but is contrained in the range
-24dB to -6dB on speaker and -24dB to -12dB on headset.

STRATEGY_ENFORCED_AUDIBLE routing policy is now the same as
STRATEGY_MEDIA in countries where not enforced.

Change-Id: If58d96559bfe2bbff4cd94c631d5933bd940778e

12 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Wed, 25 Apr 2012 14:48:27 +0000 (07:48 -0700)]
merge in jb-release history after reset to jb-dev

12 years agoaudio_policy: set some reasonable defaults if audio_policy.conf is not found
Dima Zavin [Tue, 24 Apr 2012 07:21:59 +0000 (00:21 -0700)]
audio_policy: set some reasonable defaults if audio_policy.conf is not found

Change-Id: I25f7407c34b3032d4e77a27a4ac47b648098d9b0
Signed-off-by: Dima Zavin <dima@android.com>
12 years agomerge in jb-release history after reset to master
The Android Automerger [Tue, 24 Apr 2012 14:03:27 +0000 (07:03 -0700)]
merge in jb-release history after reset to master

12 years agoaudio_policy: look for config file in /vendor first
Dima Zavin [Mon, 23 Apr 2012 23:51:00 +0000 (16:51 -0700)]
audio_policy: look for config file in /vendor first

Change-Id: If10308f688437e1682e4104120772cfce16e9d89
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoaudio policy: volume burst when switching device
Eric Laurent [Sun, 22 Apr 2012 20:57:53 +0000 (13:57 -0700)]
audio policy: volume burst when switching device

The addition of the per device volume feature has introduced
a problem where a volume burst can be heard in the headphones
just after insertion if the speaker volume is much higher than the
headphones volume.

Added a temporary mute of the output when switching device to force
volume ramp to 0 and back up to new volume.

Issue 5984108.

Change-Id: I5c9ffbbcadd12d25c78cc2614d351346b8186c55

12 years agomerge in jb-release history after reset to master
The Android Automerger [Mon, 23 Apr 2012 14:04:26 +0000 (07:04 -0700)]
merge in jb-release history after reset to master

12 years agoaudio policy: add support for deep audio buffers
Eric Laurent [Sat, 14 Apr 2012 01:48:06 +0000 (18:48 -0700)]
audio policy: add support for deep audio buffers

Added definitions for parsing deep buffer flags in output profiles.

Make sure that sound start is delayed enough to allow
duck/mute effect to apply before starting a notification on an output
with lower latency.

Change-Id: I1578e245da19d1a0f9ec62a2ea6dddaf82ea282b

12 years agomerge in jb-release history after reset to master
The Android Automerger [Thu, 19 Apr 2012 14:03:25 +0000 (07:03 -0700)]
merge in jb-release history after reset to master

12 years agorename audio policy flags
Eric Laurent [Wed, 18 Apr 2012 16:28:52 +0000 (09:28 -0700)]
rename audio policy flags

Change-Id: Ic42eba3432671f651c9703a07fe7b429a8ec0dff