| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- This change enables HOTWORD audio source to be preempted by any other
audio source
Bug: 10640877.
Change-Id: I6f7acbe95a6521306db70ad73260d2ba7b38b940
|
| |
| |
| |
| | |
Change-Id: I268935bd8f7e58f90c698c098686a04681b43887
|
| |
| |
| |
| |
| |
| |
| | |
Do not enable offloading of audio decompression when
playing video.
Change-Id: I6ee8b59370219f5ef810a99a27ba4a1cf222b55b
|
| |
| |
| |
| |
| |
| | |
Bug: 10460751
Change-Id: Ic6fcd14162e9c6e03366d887063321e21fcf14cd
|
| |
| |
| |
| |
| |
| |
| |
| | |
When recording from the audio submix begins, enable the remote
audio submit output device. When it ends, disable it.
Bug: 10265163
Change-Id: Ia0dc2e20623bb834d06561469ce856688991243b
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
|\ \
| |/
| |
| |
| | |
* commit '8e7e42547116b1d5f49118ba41946b2906ad3936':
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
|
|/
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 8580410
Change-Id: Ib86983540b34e8c9083979fdd21a17715ec53f80
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Added definition to parse front + back mic from input descriptors
in audio_policy.conf file.
Change-Id: I9ebdeac664e12104589a52d15acbbfc4db787923
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/|
| |
| |
| |
| | |
parameters are invalid" into jb-mr1-aah-dev
* commit 'c8bc22869096ee413717102d3f5d0ca804cc3174':
Close a newly opened direct output if its parameters are invalid
|
| |
| |
| |
| | |
Change-Id: I27ac015217480a854d25273ab9498949971b411a
|
|/
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Qualify the selection of the analog dock for media by the force use.
Bug 7302106.
Change-Id: I2ea48fd43866ce8491085bba72a27751b2203401
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add new volume curves for VOICE_CALL stream type
to improve voice/video chat volume on speakers.
Bug 7346643.
Change-Id: Ib282a97570d2234deec6b58391bdfc45846d9cc0
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
Valgrind found this
Change-Id: I24c640c2b0b6cac129c23bfc18828aff005ec952
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Add support for querying whether there is currently a recording
underway from the specified audio source.
Bug 7314859
Change-Id: I8894845b176241134870af5df2bebc5ef27e4de4
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
When a direct output is closed, the vector containing
the previously opened outputs must also be updated.
Bug 7157451.
Change-Id: I575b1f4928cf7527a4a98632fdec7600664a1e1c
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I734155d4cebb22b180f25290332c7c48be1e2b36
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I0a274ab9f30a9380bc00eae69988224721fea177
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|