History log of /hardware/qcom/audio/hal/audio_hw.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d2305287be8947b4f3059795f5aab8d206ef48e4 28-Oct-2014 Eric Laurent <elaurent@google.com> audio: use pcm_ioctl() from tinyalsa

Bug: 18137488.
Change-Id: Ic0887837edaf2135ec195cbf863d0840ffdbc521
/hardware/qcom/audio/hal/audio_hw.h
cefbbac40220d4e7690d204eecff5f6ae3f63069 04-Sep-2014 Eric Laurent <elaurent@google.com> hal: update EC reference handling

Change-Id: I745e28c14902f810754887f9db195cf4f5261713
/hardware/qcom/audio/hal/audio_hw.h
7b2b5ab2921c4679455faa3bfbeb1457e5eb5f0d 14-Sep-2014 Eric Laurent <elaurent@google.com> audio: fix mic mute for SIP calls

Do not allow mic mute only when in PSTN calls.

Bug: 17321604.
Change-Id: Ie82d4ea4de767c38e5d476d5827ebb9ae0c45c63
/hardware/qcom/audio/hal/audio_hw.h
0499d4fc40cafb9fbb0e8eace1657cfaf79c5699 26-Aug-2014 Eric Laurent <elaurent@google.com> hal: add support for external speaker driver library

Change-Id: I599c96793097ab6202412cbd55c8e9165c226eed

Bug: 17319721
/hardware/qcom/audio/hal/audio_hw.h
99c752d87eb818fc3cfb2e5c6790b1ea0bc88da5 21-Aug-2014 Ravi Kumar Alamanda <ralama@codeaurora.org> Revert "Revert "audio: add support for routing to/from voice TX/RX paths""

This reverts commit 55a1293b422d181281cf0f7d37c6c15c5d921ef3.

Bug: 15520724.

Change-Id: I46c2402bedd513c148b2c309c6f18a7ef3aa4d2a
/hardware/qcom/audio/hal/audio_hw.h
3ad4e1b9949d04ad90d053458b10fa4dfbfa088e 03-Jun-2014 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Add support for dualmic fluence for voice communication

Add support for noise suppression preprocessing effect.
Add support for dualmic fluence for voice communication.
Reorganize input sound devices for more readability.
Remove invalid and unused legacy sound devices.

Bug: 14088317
Change-Id: Id9859de56780a8952d6e9acac84faa9b8ef1fdde
/hardware/qcom/audio/hal/audio_hw.h
08dbcfc116e62f5b4007cade7311430ea235a09e 21-Aug-2014 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: avoid usage of extern functions and tables

If there is any difference in the signature of a function declared
as extern, it will not be reported by the compiler and may result
in unexpected results when executed.
All the API functions should be declared in a header file.

Change-Id: I89662e23da8118c3a9eac728b389498ed52e19c2
/hardware/qcom/audio/hal/audio_hw.h
55a1293b422d181281cf0f7d37c6c15c5d921ef3 11-Aug-2014 Vineeta Srivastava <vsrivastava@google.com> Revert "audio: add support for routing to/from voice TX/RX paths"

This reverts commit 8edfd66a7b1d033e65e5621d25ef3cbf1f40316e.

Bug: 16949514
/hardware/qcom/audio/hal/audio_hw.h
b37e36b918e1ead5cc13faaed9b21ca1403a9653 07-Aug-2014 Eric Laurent <elaurent@google.com> Merge "audio: add support for routing to/from voice TX/RX paths" into lmp-dev
8edfd66a7b1d033e65e5621d25ef3cbf1f40316e 10-Jul-2014 Eric Laurent <elaurent@google.com> audio: add support for routing to/from voice TX/RX paths

Add support for routing voice calls to devices in other audio
HALs by allowing playback and captuer to/from AFE proxy.

Bug: 15520724.

Change-Id: Ia4a4428001ea06f7c7b213db861ec281ebd25174
/hardware/qcom/audio/hal/audio_hw.h
41f86651e362abc62d9d03f5c612c986bf15298f 17-Jun-2014 Haynes Mathew George <hgeorge@codeaurora.org> post_proc: Offload effects combined patchset

* Support effects in DSP for tunnel mode playback

Add interface to support configuring equlaizer, bass boost,
virtualizer and reverb effects in DSP for tunnel mode of
playback.
(cherry-picked from CAF commit 3eedc004e9adf5967f393d65c22b7806d0c63e6c)

* post_proc: Enable effects param in DSP to start effect

-During switch to tunnel playback, offload effects-flags remain
disabled. This stops effects being applied on tunnel playback.
-Send effects enable params to DSP to start effects during switch.

(cherry-picked from CAF commit d02f2cd710334cc2be6a866da537a595256ae623)

* post_proc: disable adsp reverb when preset is 'None'

Audio HAL set corresponding preset id into adsp, but doesn't disabe
reverb explicitly when 'None' preset is chosen. However, preset=0
means custom preset in adsp, so adsp won't stop reverb processing.

(cherry-picked from CAF commit b27e25f062edfeebb6860078013c7b413b8c4301)

* post_proc: send ENABLE_FLAG directly to offload effect driver

Enable flag should be sent directly through offload effect driver to
adsp whenever bundle receives EFFECT_CMD_ENABLE. Otherwise enablement
will only take effect in adsp after subsequent parameters being set, and
that's not expected.

(cherry-picked from CAF commit d45948e2153c03b41f55577debd943408f9c8280)

* post_proc: reverb preset id is not mapped correctly

Array index is not correct and causes uninitialized value being used
when 'Plate' is chosen. Correct index to retrieve the right preset id.

(cherry-picked from CAF commit ca2685b2a0a695a7c4ac78883e750a92dcad0515)

* post_proc: disable Bassboost and Virtualizer for certain devices

WFD, Hdmi and usb audio are not intended to be applied with
SA+ bassboost and virtualizer, so add into invalid device list.

(cherry-picked from CAF ee2ff9621d25d83151ccb24a416f21533fdfbd31)

* post_proc: disable effect immediately when routed to invalid devices

Offload effect is still perceived when invalid output device is
connected. We should send disable command immediately once phone is
routed to unexpected device and forbid effect enablement during
temporary disabled state.

(cherry-picked from CAF commit 95d74c2232721631f3a04f6ccf35760b37b33fea)

* post_proc: Enable reverb in DSP to start effect

During switch to tunnel playback, reverb enable command is not sent to
DSP and causes reverb effect not applied continuously.

Send reverb enable params to DSP to start effects during switch.

(cherry-picked from CAF commit c37c260fa174453f4822261bcd531ddb2706ab2c)

* post_proc: include audio_effects.h from kernel exported headers

Currently, audio_effects.h header file is included with reference
to the absolute path. Instead, reference it from the kernel
exported headers.

(cherry-picked from CAF commit 090a2aa3f38298196ad9f47e3b6578535e1f7e10)

* hal: Add support for audio effects in DSP for tunnel mode playback

Add support to enable or disable audio post processing effects
in DSP for tunnel mode playback.

(cherry-picked from CAF commit 1d0891672175d431e8872dd7dff21e0ce507361a)
Change-Id: I7ead6da4c216fd87e8ca1884811c4e0155053f49
/hardware/qcom/audio/hal/audio_hw.h
4b89e37ad290ef955abf8ac1d151728303311345 19-Jun-2014 Vineeta Srivastava <vsrivastava@google.com> Revert "Revert "hal: Add support for IMS calls""

This reverts commit a609e8ebdfeca875b6d35ccfb3fb8b87710f3499.
/hardware/qcom/audio/hal/audio_hw.h
a609e8ebdfeca875b6d35ccfb3fb8b87710f3499 18-Jun-2014 Eric Laurent <elaurent@google.com> Revert "hal: Add support for IMS calls"

This reverts commit cedf1ac3c00e331b5f51b077f26c1367544ddd65.

Change-Id: I5f92f28c8b97265263a0bce5b38ff60d4655b68b
/hardware/qcom/audio/hal/audio_hw.h
cedf1ac3c00e331b5f51b077f26c1367544ddd65 11-Jun-2014 Haynes Mathew George <hgeorge@codeaurora.org> hal: Add support for IMS calls

Move all the voice call specific code to a new file.
Add voice extension files to support IMS calls.

Change-Id: I1b7235500c8e3c2285b726b351d996dc3e5ebdf6
/hardware/qcom/audio/hal/audio_hw.h
8e6e98fc5af6d6f79bc71eb37df470380ae82fad 06-Nov-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Add support for HFP feature

- Add set_parameters to be set from hfp app to enable
and disable hfp session.
- Implement start and stop hfp session which takes
care of switching device and setting the session

Change-Id: Ie8697328ccbfee09d0d162f6fad01ddb552e4f83
/hardware/qcom/audio/hal/audio_hw.h
9f3065480c81bf01d3af65bfd3da09e1fb74b520 03-Apr-2014 Ravi Kumar Alamanda <ralama@codeaurora.org> audio: support for wide-band speech audio over BT

Adding support for WB audio with BT devices

Change-Id: Ibaab69a8eb52f42f214c9c1f8f26ad3494728695
Bug: 13763881
/hardware/qcom/audio/hal/audio_hw.h
31aca91506be3beb30ae598cf22f6f940c2aac0b 21-Mar-2014 Andy Hung <hunga@google.com> Scan and verify audio device parameters on open

Scanning is default disabled at this time.
Verbose logs will display device params found.

Change-Id: Id188d096ec68d2058c66ae3a51fe57d9645d03ef
Signed-off-by: Andy Hung <hunga@google.com>
/hardware/qcom/audio/hal/audio_hw.h
c58bb27d9228dd1993523769b73001e935b78441 27-Nov-2013 Eric Laurent <elaurent@google.com> audio: remove unused struct member

Removed unused member out_device from struct audio_device.

Change-Id: Id5ae06aed7d38aa85aefe09b9ff733bde1e52f57
/hardware/qcom/audio/hal/audio_hw.h
07eeafd9390a85c5b9ad1642e89d3973615584cb 06-Oct-2013 Eric Laurent <elaurent@google.com> audio/hal: Configure HDMI channels based on output stream channels

- Current HAL configures HDMI channels based on sink capabilities,
even when the output content is stereo. DSP upmixes the content
if the HDMI backend is configured for 5.1 channels.
- This change ensures that HDMI backend is configured based on
output stream channels.

Bug: 7290997.
Change-Id: I42b2773b8f4ccc62203c13ff9ac6a6511df0705f
/hardware/qcom/audio/hal/audio_hw.h
c4aef75c2c5a0d49cac941d22235ac0b9e435ca0 13-Sep-2013 Eric Laurent <elaurent@google.com> add offloaded audio visualizer

Add library for visualizer effect used when
audio decompression is offloaded to QCOM audio DSP.
The implementation reads PCM back from the proxy port
in the audio DSP.
The audio HAL dynamically loads the effect library if present
and indicates offloaded output activity.
The PCM capture is only active when an offloaded output
is active and at least one effect is enabled on this output.

Bug: 8174410.

Change-Id: Ic78de932f9116e246494f9171c1cc7c3e35a0ea1
/hardware/qcom/audio/hal/audio_hw.h
352f27bea3ea82b64234485de7a0f87a1991ab06 26-Jul-2013 Haynes Mathew George <hgeorge@codeaurora.org> audio: compress offload enhancements

1) Parse and set encoder metadata (delay, padding)
2) Call compress_next_track to allow partial drain
3) Do not flush output on returning succesfully from partial drain

Change-Id: I0fa1a2c968a5590dff9b6c58bd52bb111dcf3e9b
Bug: 8174410
/hardware/qcom/audio/hal/audio_hw.h
2ccd7babcde54a8073945dec69660cb60e66a931 10-Sep-2013 Glenn Kasten <gkasten@google.com> Implement HAL API get_presentation_position

This does _not_ address bug 10551158 (to include DSP buffering)

Change-Id: Ifbc5ca21c46eced3f93a891200c763a062625dd9
/hardware/qcom/audio/hal/audio_hw.h
4e02e5575f2eb440632a60fb8bed0a44ddae83af 18-Jul-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Add support for Tunnel mode audio playback

- Initial implementation to support audio playback in tunnel mode.

Change-Id: I4ffa660bd9beb855fdfe6a7572d8f6b7eade7bd9
/hardware/qcom/audio/hal/audio_hw.h
b23d5286490ad2dc0edf919d52428fa02dc2b2dc 15-May-2013 Eric Laurent <elaurent@google.com> audio HAL: separate platform specific code

Separate platform specific code from generic audio HAL code.
Platform specific code is:
- platform initialization
- pcm device selection
- pcm stream configuration
- sound device selection
- acdb ID selection
- HDMI configuration

Change-Id: Iaf327943fa8674aad0c22a71e7cbf4288a138c7d

Conflicts:
hal/audio_hw.c
hal/audio_hw.h
/hardware/qcom/audio/hal/audio_hw.h
e402fdd61ea5f231a323de3a14a0dca3e31bc192 31-May-2013 Jean-Michel Trivi <jmtrivi@google.com> resolved conflicts for merge of 5b875cdd to master

Change-Id: Ic61cb0062d587851d2f0b4963a45cd3e4a73afa8
c56336bfad4661796b749fc4db7de3a1e6aba06f 25-May-2013 Jean-Michel Trivi <jmtrivi@google.com> QC audio HAL handles device rotation

Use the "speaker-reverse" configuration when the device rotation
requires it. Device rotation is received through a parameter to
parse.

Bug 9095903

Change-Id: Ie24a625a18e1fc1093f6f564ba0ff0f5cbb5cce0
/hardware/qcom/audio/hal/audio_hw.h
9ac4be47317acb19a4077de3723118d879374018 15-May-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> am 2c921376: am f70ffb40: hal: Add support for pre-processing effects

* commit '2c9213763f7b7423c26dacbc59c61635bf01d4f4':
hal: Add support for pre-processing effects
f70ffb40ca0c4e8cce15c77fd9edff7f2b6980de 17-Apr-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Add support for pre-processing effects

- Add support for AEC audio effect for voice communication.

Bug: 7241490
Bug: 8325112
Change-Id: Ic33d2f1f7be86484f748627d9afabbe10c369c21
Signed-off-by: Eric Laurent <elaurent@google.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.h
87f6ee0a0074149c8060a4c1672d2907d1a50a1a 07-May-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Add support for voice call volume and mute

- Set mixer controls to support mute/unmute and volume
for voice call for non-fusion targets.
- Non-fusion targets do not need CSD library for voice
call functionality.

Change-Id: Ie232d89691c3ca91a9a366ece020588d82fba679
/hardware/qcom/audio/hal/audio_hw.h
6336b0d02f1d8f136e2ab35d6222263ff54334bd 11-Apr-2013 Sungmin Choi <sungmin.choi@lge.com> audio: enable recording

Update audio-record config, align with kernel hw parameter

Change-Id: I428d98f5d28edc26de335be1ac4667dcc4ffa4ea
Signed-off-by: Cong Zhou <cong.zhou@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
/hardware/qcom/audio/hal/audio_hw.h
5195a4b2f95ad704d2408b7cdcbb537c362a748b 04-Apr-2013 Sungmin Choi <sungmin.choi@lge.com> audio: enable audio using tinyalsa on MSM8974

Change-Id: I003dedd9f29de5aec1b620442aa8b3c3c7b7a816
/hardware/qcom/audio/hal/audio_hw.h
a9024defa11f6502ca55425a4803cd00441d51e7 04-Apr-2013 Eric Laurent <elaurent@google.com> audio: implement mute on hdmi multichannel

On direct output streams the audio HAL must implement
the volume function. In the case of HDMI the only function
required is to mute audio when volume is 0 as volume
is defined as fixed on digital output streams.

Bug 8541062

Change-Id: Ia1342f6ffb7b7c95c7c386e3e2ee5243fe65051b
/hardware/qcom/audio/hal/audio_hw.h
c301186b49201c8ebf1dc05b336ba0a5e3877408 20-Mar-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> audio/hal: Set playback buffer sizes to integral multiple msec

- The call to pcm_write was taking varying time to complete.
This was because DSP always expects the buffer duration to
be an integral multiple msec. When this is not the case,
DSP waits for the rest of the data to be filled too.
This accumalates the delay and causes the variation
in timing.
- Change the deep buffer playback buffer size to 960 samples(20msec)
and low latency to 240 samples (5msec) to fix the issue.

Change-Id: I9448920e89595a65cf92a5abd9187e02043b699a
/hardware/qcom/audio/hal/audio_hw.h
b199506991c9a93103ed149c6e1ab42c47bb8fc3 22-Mar-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Fix ringtone playback issue on Speaker

- Start music playback on HDMI, go to settings-->sound-->ringtone
and select a ringtone for playback. The ringtone audio playback
starts only after 15sec.
- When ringtone is selected, the low latency path is switched from
HDMI to Speaker device. The low latency path uses only 2 buffers
of 10.3msec each. If the device switch takes more time, the data
filled kernel buffers meet the stop threshold and the ALSA
framework triggers auto stop on the stream. This results PCM
stream to be blocked for more than 10sec and hence no audio
heard until the write is unblocked.
- Fix the issue by setting the stop threshold to INT_MAX to avoid
auto stop.
- This change also ensures that open_output_stream fails if the
HDMI sink does not support 5.1 or 7.1 playback.

Bug: 8401042
Change-Id: I4c1e04be2c47d67087b1cdda87e2dce77bde58f1
/hardware/qcom/audio/hal/audio_hw.h
71c84b70ff7c428e35ac187ca4a234acac558240 11-Mar-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Fix the routing logic to route streams independently

- Current implementation assumes that the output devices for all
the output streams and voice call will be same. So it updates
the devices on all the output streams when out_set_parameters()
is called on any stream.
- Update the routing logic to support all the streams independently
based on the devices set by audio policy manager on each stream.
- However, on this target there is a limitation that earpiece,
speaker, and headset devices cannot be enabled concurrently as
they share the same backend. Updated routing logic takes care of
this limitation.

Bug: 8239898
Change-Id: I3091be6894210c77c479b872cec39d821d10bd90
/hardware/qcom/audio/hal/audio_hw.h
02317798dec329868318e75a83c7c654cf5200b3 05-Mar-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Do not enable Fluence in speaker mode by default

- Speaker volume is low during voice call.
- Fluence is enabled by default even in speaker mode during voice
call. Mako does not meet the spec for Fluence due to mics
placement issue.
- Fix the issue by not enabling Fluence in speaker mode.
- If the device supports it, set the property to enable fluence.

Bug: 8272345
Change-Id: I9c4726409c4eb8d39dfbbb2f47e3075a6f6d5cc3
/hardware/qcom/audio/hal/audio_hw.h
096c87f83ccc1439acb639dbab00faf5a393afa7 01-Mar-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Fix audio routing to wired headset

- Start music playback and plug in headset within 3sec. The
audio is heard on both headset and speaker whereas it is
expected to play on headset.
- Fix the output device updation and selection logic to resolve
the issue.

Bug: 8239898

Change-Id: I476c9ede241e319c90cb960dd302384f41a6b52c
/hardware/qcom/audio/hal/audio_hw.h
3b1816cd594eba53a9869d7b23af36daacf58fa1 28-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Use linked list APIs from libcutils

- Replace the linked list implementation with relevant APIs
available in libcutils

Bug: 8292602
Change-Id: I2db173b845cbf4f35e53738b272f7f4a79279f3b
/hardware/qcom/audio/hal/audio_hw.h
150dbfe8b5b3ab634604d2a309d4ef9fb7602f4a 27-Feb-2013 Eric Laurent <elaurent@google.com> audio: fix audio glitch when closing pcm stream

Holding the audio device mutex while calling pcm_close() is not necessary
and will cause writes on other output streams to be blocked until close
completes which can take several hundred milliseconds.

Not holding the audio device mutex during the whole standby sequence
forces to change the lock order between audio device and output stream mutex.

The result is that we do not acquire the audio device mutex systematically before
the stream mutex in out_write(). This is not a problem with this audio HAL
as set_mode() does not acquire the stream mutex and out_set_parameters() is always
called in the same thread (same priority) as out_write().

Same change done for input threads.

Bug 8267567.

Change-Id: I17bb187c0564200f6362586885e61500d52d5bc2
/hardware/qcom/audio/hal/audio_hw.h
3771884b983f69b43b3000647cb436feb41dd92b 23-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Move the check for network opeartor to proper place

- Check for the network operator at boot up does not return correct
value always
- For the T-Mobile, US the HANDSET and MIC devices need different
gain settings
- Do the check before enabling those devices

Bug: 8255423
Change-Id: I58011f9c239dce87507b581a62e0dcc09164d15a
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.h
75d924d06336949440090c214af199fd05d5bb06 21-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Enable debug logs

- Enable few debug logs to track audio use cases and
sound device activities
- Clean up some ToDos.
- Rename SND_DEVICE_INVALID to SND_DEVICE_NONE.

Bug: 8242117
Change-Id: I0510288334d6a1e71c0846f6d10ac8ba283965a6
/hardware/qcom/audio/hal/audio_hw.h
f99670408844a07cdfabf9a01078ed7ef4c71bbf 15-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: add support for TTY feature

Bug: 8227215
Change-Id: I4617916b2b9830e7fae3675915939715eab3b9f8
Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.h
c8400637beb896d2f5d7ae980682cd2d072a9da3 15-Feb-2013 Eric Laurent <elaurent@google.com> audio: restored front and back mic capture

Restored support for simultaneous capture of front and back mics
for voice recognition lost when switching to new audio HAL.

Also fixed problem in get_input_snd_device():
AUDIO_DEVICE_BIT_IN must be cleared in input_device before comparison
otherwise anding it with any input device value would return true.

Replaced adev->input_source and adev->in_device by adev->active_input:
this gives access to all info on the active input stream.

Change-Id: I03f02ffc120d6f69669618b4ab63cdcbd7b65877
/hardware/qcom/audio/hal/audio_hw.h
72c411f8ef451934ababc209eef482b9cc7005a8 12-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Add support for Dual MIC feature

- Added support to select Dual mic devices for voice call and
voice recognition use cases.

Bug: 8175884
Change-Id: I7f8cb9e7bd614cfc6010b4cf1baa20ad234c4ddc
Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.h
2dfba2b9264a43951889e591260162a67894c0d0 18-Jan-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> add new audio HAL (disabled)

-- build when BOARD_USES_LEGACY_ALSA_AUDIO is not defined
-- under hal/
-- uses audio_route library

Change-Id: Ibf2706ba55e5a2dbd69b5f4cfac8a5cc68220b86
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.h