| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This reverts commit 95511add8ad4d440c67272503559f5042c4e6f1f.
Change-Id: I76a8b86790b06b08d8ca0f8d374e585f964ffba8
|
|
|
|
|
| |
Bug: 17931716.
Change-Id: Ife170f20f5d02b71059fbd384bd29759fafee826
|
|
|
|
|
|
|
|
|
|
|
| |
commit b732cf5a broke the selection mechanism for the
HW A/V sync direct output.
Add a rule to only select a mixed output for basic PCM
stereo content when a direct output is not explicitly requested.
Bug: 17702382.
Change-Id: I1387690ace77cd4d6a8faf0b525c3d1008fba3f1
|
|
|
|
|
|
|
|
|
|
|
| |
modify getOutputForDevice() to skip direct output selection
if the request can obviously be attached to a mixed output
This prevents from selecting a direct output profile that
can manage stereo PCM format if a mixer output is available
to reach the same device.
Bug: 17628413.
Change-Id: I02e9a0b02c9ae5f44ff5768ac4ed02ce84d521c5
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Audio input profiles can indicate flag AUDIO_INPUT_FLAG_HW_HOTWORD
meaning they allow capture from the same source as HW hotword
detection.
When a client requests capture with this flag, the policy will
try to find an input profile matching this request first and
fallback to a regular input if not found.
Bug: 17575019.
Change-Id: Ia463211597d7fa363527d776389f2257f0ced9a2
|
|
|
|
|
|
|
|
|
|
|
|
| |
Consider all supported devices in an io profile and
not only the first one when looking for a match with attached
devices.
Failing to do so would cause the device validation to fail
if supported devices are not declared in a specific order
in the io profile descriptor in audio_policy.conf
Bug: 17532764.
Change-Id: Id27c9192e21de7f075076e17eb8c48e7e42847f6
|
|
|
|
|
|
|
|
|
| |
ENFORCED_AUDIBLE should only be highest priority if system tones
are being forced. Otherwise it should behave like SONIFICATION.
Bug: 17474485.
Change-Id: Ia651779870d51100cc3179c96fa09694bc691ba7
|
|
|
|
|
| |
Bug: 17488759.
Change-Id: I9dd2c3ca7f83de4b3573f4fb0e9934e1bc37c3bc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On particularly loud devices, unexpected audio bursts can be harmful.
For longer audio events, the conventional mitigation strategy is to
somehow soft-start (ramp) the loudspeaker volume, but this strategy
can severely impact the audibility of short audio events.
Use of the "safe" speaker path hints to AudioHAL to immediately output
at best allowable level for transient audio events.
SPEAKER_SAFE is aliased to SPEAKER for purposes of volume control.
Bug: 17319721
Change-Id: I75187c23f3d1f18e9f638c5d14e7b0bf805a67bc
|
|
|
|
|
|
|
|
|
| |
Make sure that all outputs considered by selectOutput()
when called from AudioPolicyManager::getOutputForDevice()
support the requested audio format.
Bug: 17340382.
Change-Id: I76520ce60e9a8fe4d2d23125d6143bb016522754
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Do not select maximum sampling rate and channel count
when opening a direct output for the first time
to make sure that the combination of sampling rate
and channel count is supported by the connected sink.
Bug: 17047809.
Change-Id: I077a3c1436158378f2762343469ceb39fab9775e
|
|/
|
|
|
|
|
|
|
|
|
| |
HDMI-CEC system audio mode removes speaker from output
list. It also has multiple outputs by connected outputs.
However, getDeviceForVolume() doesn't cover multiple
output with no speaker or bluetooth case.
This change picks one of system audio outputs in order.
Bug: 17400026
Change-Id: I102fd0052c9c4c9543f9e8f3b16ec6815d7485d8
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The input source passed to openInput() must be
modified from HOTWORD to VOICE_RECOGNITION if the capture does not
correspond to a sound trigger session.
Bug: 16731718.
Change-Id: I48aa4180e75dd5335cd096b48da1c15f2236e6ed
|
|/
|
|
|
|
|
|
| |
pre-processing
Bug: 17129715
Change-Id: I1fd938cce0b85241c80ea00f3d013a98948d3975
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Bug 17136569
Change-Id: I7f69cb24168c7d27ce28679735f53c1ece4014c1
|
|\ \
| |/
|/|
| | |
lmp-dev
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make sure that an audio patch having an output as source or input as sink
is removed when this input or output is closed.
Bug: 17303725.
Change-Id: I234d54a25ce0b579eeeafdcfda3a0594f048768c
|
|/
|
|
|
|
|
|
| |
Turns out having an sp<> point at the containing object doesn't really
work so well.
Bug: 17210991
Change-Id: I4bcb0c38adffc574d661f0772583357868f6c5b4
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: 10549017.
Change-Id: I896c8e16c8cf7490bab75295903620a76236f571
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When opening an output, import the profile capabilities associated
with the device into the AudioPort.
Bug 10549017
Change-Id: If102f5623457542d2c1407ada303c71e43d19a08
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Allow creation of audio patches with more than one sink.
More than one sink is enabled when:
- Connecting an input device to output devices on the same audio HW module.
- Connecting an output mix to output devices on the same audio HA module.
All other patches are limited to one sink.
Bug: 16879363.
Change-Id: I95be6948ef29df64e51e5b8ace38c2db7f3e89f2
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add possibility to use sink and source devices not on
the primary HW module for voice calls (e.g. USB headsets).
Bug: 15520724.
Change-Id: Ib27db4ba759b6d91ea1104dc2e35c87733517b30
|
|/
|
|
|
|
|
|
|
|
|
| |
Add a method to query from the audio HAL the HW sync
source used for a given audio session.
Modify audio policy to select a direct output with HW sync
when requested.
Bug: 16132368.
Change-Id: I03038f9188f2d389f8a5fd76a671854013a4513e
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Audio policy:
Replace unknown device assertion by debug log in setDeviceConnectionState().
It is possible that some kernels indicate connection of a legacy device type
when a USB audio device is connected.
We should just ignore this device.
- Audio flinger:
Make sure FastMixer thread is idle before exiting the normal mixer thread and
closing the output stream.
Change-Id: Ia10a20176a60a8aa56765538093a555fc998508a
|
|/
|
|
| |
Change-Id: If46b8d13f216bad4aa62598531d406d3303134f5
|
|
|
|
| |
Change-Id: Iddf1b6486430270d871a45c75615e54339a818e9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Audio policy:
- Added active capture indication to sound trigger service:
recognition stops if concurrent capture is not supported.
- Added generation of reserved I/O handle and session ID for
utterance capture.
Sound trigger service
- Added sound model update callback handling.
- Added service state callback
- Simplified callback shared memory allocation.
Bug: 12378680.
Change-Id: Ib0292c2733e6df90fdae480633dd9953d0016ef1
|
|
|
|
|
|
|
|
| |
Added check for NULL pointer to avoid crash
in AudioPolicyManager when playing AC3 data.
Change-Id: Ie56788f6277be6da47d4218b1b4a6b359fce6473
Signed-off-by: Phil Burk <philburk@google.com>
|
|
|
|
|
| |
Bug: 13744391.
Change-Id: I2430e09ad00476b9ac28dc55466942c61fb0531d
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Matches some USB device configurations.
Change-Id: I2429f9de87816b4ad1d39516e3821562617c76ee
|
| |
| |
| |
| | |
Change-Id: I4edd6cde11de62c9c19dfa623d08cddf42c953db
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Ensure AUDIO_FORMAT_PCM_FLOAT and AUDIO_FORMAT_PCM_32_BIT
have proper precedence.
Allow more mixer channels than 2.
Change-Id: I02af97dad6218b25cbada4d93077a213314c6725
|
| |
| |
| |
| |
| |
| |
| |
| | |
Indicate the audio session ID when calling getInput(),
startInput(), stopInput(), releaseInput().
Bug: 12378680.
Change-Id: I763793752f93e2f4e1445a5ab217c895af011038
|
|/
|
|
|
|
|
|
|
|
| |
Add parameters to openInput() and openOutput(): device address,
input source.
Allow caller to specify a given I/O handle
Group parameters in a struct audio_config.
Bug: 12378680.
Change-Id: I7e9af74c0d996561cc13cbee7d9012d2daf33025
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I50d068a968aa6bd9e53e5b3111a1b09a6c2d219c
|
|/
|
|
|
|
|
|
| |
Fix two problems in output stream audio format selection
added by commit 1e693b55:
- flags must be set before picking the format.
- fix logic error in best format selection.
Change-Id: I6458b32725f771da5a08108932d64e71964ae9f1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the notion of device types that cause the device address
to be taken into account, i.e. multiple devices of the
same type but with a different address can be connected/
disconnected.
AUDIO_DEVICE_OUT_REMOTE_SUBMIX is such a device type.
When making those devices available / unavailable, look for
all outputs with a matching address.
Bug 16009464
Change-Id: I260f8248b7794c4932094e876afdf29fdea007a3
|
|
|
|
| |
Change-Id: I85cc089df32e6d469e8aef307599f1021ea5b835
|
|
|
|
| |
Change-Id: I5f9c7b5ebf03b9bc94efe70d3677edfabb99c194
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for audio device connections between different audio
hw modules.
The patch is performed by creating a bridge between the playback
thread connected to the sink device and the record thread connected
to the source device using a pair of specialized PlaybackTrack and
RecordTrack.
- Added PatchTrack and PatchRecord classes.
- Added TrackBase type to indicate more clearly the track behavior.
- A TrackBase can allocate the buffer or reuse an existing one.
- Factored some code in openOutput() and openInput() for internal use
by PatchPanel.
Bug: 14815883.
Change-Id: Ib9515fcda864610458a4bc81fa8f59096ff4d7db
|