History log of /hardware/qcom/audio/hal/audio_hw.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8bba9e957f56100d4e1464d576121273ffa434eb 12-Nov-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Fix the audio loss issue on codec back end

- Start music playback, plug in and plug out headset and press
'Next' button in the Music app immediately. Repeating these steps
result complete loss of audio on HW codec.
- When headset is pluged out and Next is pressed immediately, the
audio HAL triggers audio routing change from Headset to Speaker,
and closure of compress playback driver. The later is not lock
protected which result un protected access of back end information
in the ALSA framework. This leads to incorrect routing and hence
loss of audio. It is also observed that sometimes it could lead
to crash in kernel and phone reboots.
- Fix by ensuring that the kernel driver close is also lock protected
along with other routing events.

Bug: 11088400
Change-Id: I785effb09e5cef7ba20ee43e0ef91dc296d4e58a
/hardware/qcom/audio/hal/audio_hw.c
a16217ce0f296f69110ebd2cd773a2751c883c7d 30-Oct-2013 Eric Laurent <elaurent@google.com> Merge "audio: fix output flag test in open_output_stream" into klp-dev
866d5ff1463591e276b7f138c42466d9832c47d4 17-Oct-2013 sangwon.jeon <sangwon.jeon@lge.com> hal: Fix for Audio Route issue when sound path changes

- if you make an outgoing call as mp3 playback is runnign with headset,
Right side of headset is not functional when keep changing sound path
from headset to speaker
- Fix the issue by separating loop related of disable/enable_snd_device

Bug: 11232052
Change-Id: Id02a6d7221c77cf4003d97749d75a062d8575d02
/hardware/qcom/audio/hal/audio_hw.c
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.c
ed9c56ad071e5d0fb09ac7f310dc83a4553c1ad7 02-Oct-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Fix for Tx Mute issue when a new call accepted while in call

- While in a voice call, if an incoming call is accepted, Tx path
is muted on some specific networks.
- If there is an incoming call, Telephony sets the mode to RINGTONE,
and the condition check in audio HAL leads to voice call tear
down. When the call is accepted, the mode is set back to
IN_CALL and voice call path is re-enabled but the voice drivers
will be operating with default settings as there is no notification
from Modem side in this case. For modem, there is no change
in the call state i.e. just switched from caller 1 to caller2.
- Fix the issue by ensuring that the voice call is teared down
only if mode is set to NORMAL while call is progress.

Bug: 10733490
Change-Id: I2f205bb055807bb8d25f81e2907f78cd98bb77ad
/hardware/qcom/audio/hal/audio_hw.c
7f24504d395380420bb4143bdec3e701aef428aa 01-Oct-2013 Eric Laurent <elaurent@google.com> audio: fix output flag test in open_output_stream

If flag AUDIO_OUTPUT_FLAG_DIRECT is set, we should only
try to open a multi channel HDMI PCM output if flag
AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD is not set.

Bug: 8174410.
Change-Id: I63fe6cabca590e70c077dea13c86c6948700e606
/hardware/qcom/audio/hal/audio_hw.c
7ff216f80f6e53235b4239c6fb7da9b0d5127738 12-Sep-2013 Haynes Mathew George <hgeorge@codeaurora.org> audio: Presentation time enhancements

1) Add API to query platform render latency. This API is only
valid for deep-buffer and low-latency streams.
2) Adjust frames rendered for deep-buffer and low-latency streams
with the platform render latency
3) Use tinycompress APIs to query presentation time in case of
offload streams.

Bug: 10551158
Change-Id: If94e0994bfc0b757f29aa4b48be6fc63dc17bca0
/hardware/qcom/audio/hal/audio_hw.c
949a089132db31b652d937a949f7bd425f2e42f9 20-Sep-2013 Eric Laurent <elaurent@google.com> implement get_presentation_position() for offloaded outputs

Bug: 9587132.
Change-Id: Idf40259b59552c29671830f30ccca3bef6ef0edd
/hardware/qcom/audio/hal/audio_hw.c
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.c
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.c
37f761768f624be68495bf48cc5192695666b8f0 13-Sep-2013 Eric Laurent <elaurent@google.com> Merge "audio: enable AAC offload" into klp-dev
86e1713c4eb1378823c1f544f0fea2339c08f393 13-Sep-2013 Eric Laurent <elaurent@google.com> audio: enable AAC offload

Bug: 8174410.
Change-Id: I343a35b90a2b21ea7954856ac7f73b9f5a07e0f2
/hardware/qcom/audio/hal/audio_hw.c
5191a856311c5bd5a1b48810032ccdbc35a7fdc7 11-Sep-2013 Haynes Mathew George <hgeorge@codeaurora.org> audio: set cached volume before starting voice call

Apply cached voice volume before starting voice call.

Change-Id: I6a86d5f104b6a19c13bffbdeafa7a7f325d5ad3b
Bug: 10516515
/hardware/qcom/audio/hal/audio_hw.c
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.c
6e89524079e9c3a1037c57a99854820d88c9380b 06-Sep-2013 Eric Laurent <elaurent@google.com> hal: force stop after drain.

Force playback state to IDLE and send compress_stop()
when drain completes to force reset driver and DSP pointers.
This ensures that even if last write was partial, next write
will be on a 32 byte boundary.

Also do not wait for write completion if compress_write()
returns an error.

Bug 8174410.

Change-Id: If144981c6396b24515d45b32a75ab61872a35ea2
/hardware/qcom/audio/hal/audio_hw.c
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.c
1e5f35378d14987df8f8641c2da6438999763536 09-Aug-2013 Devin Kim <dojip.kim@lge.com> audio: fix logging

After separate platform specific code, device table
is set to each platform specific code.
But, this debug message didn't changed correctly.

Change-Id: I4607907e182cf57525847aba1e189c6539c9a3be
Signed-off-by: sangwoo <sangwoo2.park@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
/hardware/qcom/audio/hal/audio_hw.c
bc677243eb84cad20cdedd9909d44f71308620c3 08-Aug-2013 sangwoo <sangwoo2.park@lge.com> audio: change debug message level for debugging

For debugging, path changing debug message and
out_set_paramters debug message need.

Change-Id: Ibd203aea957f84381c631184a4c9303ec069dad5
/hardware/qcom/audio/hal/audio_hw.c
47cd4cbdb19543338d5c887e3d7bcd2513c5c3ad 19-Jul-2013 Haynes Mathew George <hgeorge@codeaurora.org> hal: Fix EDID information

- Get EDID audio block info from a mixer control instead of a file.
- Fix a bug where the current sad is not updated in the for loop.

Bug: 9430906
Change-Id: I750e307ce1064eeb98d09ea8534a375252630841
/hardware/qcom/audio/hal/audio_hw.c
994a693158202488516c48c22534ae2035b5c8fa 17-Jul-2013 Eric Laurent <elaurent@google.com> audio: reduce audio HAL log spam.

Change-Id: I73a7ee40a32ccd4e6a85e49d08a6610351fedab7
/hardware/qcom/audio/hal/audio_hw.c
1b9f4b3708d1ed1204bdb1dec370ad2e9db7a779 22-Jun-2013 sangwoo <sangwoo2.park@lge.com> audio HAL: Add retry to get mixer in adev_open

If the sound card is not created in kernel before audio hal initialized
by audio flinger, the mixer open would be failed.
This is timing issue. So retry routine is need.

Change-Id: Icff3cd53763bfc483725849874fe27ff4de28890
/hardware/qcom/audio/hal/audio_hw.c
33d330678f797b8796f72114bad42957b9ca204f 11-Jun-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> audio/hal: Set playback buffer size to integral multiple of msec

- Set the deep-buffer and low-latency output buffer sizes to
integral multiple of msec. This reduces the variations in
the writes.
- Compute the input buffer size based on sample rate. Use 20msec
buffers in capture path.

Bug: 9283911, 9106434
Change-Id: Icbcb653f7f0fd3293dd4b514a54ac91d8311b308
/hardware/qcom/audio/hal/audio_hw.c
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.c
170731f27d4be8575249d95c116560f82f5661a3 08-Jun-2013 sangwoo <sangwoo2.park@lge.com> audio: Change to perform voice calibration before update audio route

If audio route is set before voice calibration, the TX and RX device tap
is swapped in calibration tool. So, this sequence is changed to perform
voice calibration before update audio route.

Bug: 9363506

Change-Id: Ic7687a92f0d3c3faea0cf48f9d56e5877ba6255b
/hardware/qcom/audio/hal/audio_hw.c
ca414a0b591abf4178033481098233f2210cb4cb 08-Jun-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "audio: msm8974: change the ACDB ID for voice call"
ea6ef9d15574f1406940fae42914ffc49c85d659 03-Jun-2013 sangwoo <sangwoo2.park@lge.com> audio: msm8974: change the ACDB ID for voice call

msm8974 uses fluence version 5 in voice call.
So, ACDB ID for handset and speaker voice call should be changed to
41 and 43. It depends on ACDB mapping table.

Change-Id: I13990299230daa4cd0ade037d3c224f50013d9e9
/hardware/qcom/audio/hal/audio_hw.c
144281282b1d8b8cb9e6c9b50ad6ccd66da42838 06-Jun-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> am 3d746369: am c4ba743c: hal: Fix Hangout and Voice call concurrency issue

* commit '3d74636915254e13957a59fc307dbf8fc396e7e9':
hal: Fix Hangout and Voice call concurrency issue
c4ba743cc4e48b9feabccf03959642d63cf7076e 05-Jun-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: Fix Hangout and Voice call concurrency issue

- While a hangout is in progress, if the user accepts an incoming
voice call, there is no audio heard on the far-end.
- The tx path for hangout is using voice-speaker-mic device and
the voice call tx path tries to enable the voice-dmic-ef device.
But both these device use same physical mic and same codec backend.
When the Hangout is terminated it tries to disable the speaker-mic
which disables mixer controls that are common with voice-dmic-ef.
- Fix the issue by making sure all the capture usecases are routed
to same input sound device always.

Bug: 9228503
Change-Id: Iaf1b0e61d10437e2d9deeeffd7ca67770b6e00f6
/hardware/qcom/audio/hal/audio_hw.c
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.c
75ebaa052d5cad1b3b46c7beb40c9022b5806f04 22-May-2013 Sungmin Choi <sungmin.choi@lge.com> audio: Remove specific library path

Some devices use /system/lib, others do /vendor/lib.
Both are located in LD_LIBRARY_PATH whicn is defined in init.rc.
So it doesn't need to use specific library path.

Change-Id: I97e3abf3f84e8fe2d280d0714a32dd6861b5b937
/hardware/qcom/audio/hal/audio_hw.c
fbf5d518e04ce4145db1c90965223cb64a40435e 20-May-2013 sangwoo <sangwoo2.park@lge.com> audio: Fix to send voice calibration during voice call

To voice cal, use the acdb_send_voice_cal interface.

Bug: 8966887

Change-Id: I95361d90bd74e4b8096bd2eb109e3eba05951fd9
/hardware/qcom/audio/hal/audio_hw.c
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
9ace006143041267662d8e3082c2ee98f334b4dd 15-May-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> am 7c57a3a8: am 59d296d8: hal: select speaker mic for voice communication

* commit '7c57a3a8ab8d526c074bcc373e8cba2fa06b4f23':
hal: select speaker mic for voice communication
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.c
59d296d800f7bacd9c2b07a84b2db55489be9a09 02-May-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> hal: select speaker mic for voice communication

- Current implementation selects handset mic for voice
communication in speaker mode
- Check if the primary output (rx path) is active on
speaker and select speaker mic during input device
selection
- If the tx path is started first, ensure that tx device
is updated while starting the rx path.

Bug: 8325112
Change-Id: I1c556c0c9c92e599c8a1f68575b26ecdad155e7e
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.c
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.c
d2f3c3b46baa2caadbbecdeb3ff65472102ae6ba 03-May-2013 Shashank Mittal <mittals@codeaurora.org> audio: msm8974: Fix device number for voice call usecase.

Change-Id: I55e69cb64cc061fabed08fcacb5145dcf4530c7b
/hardware/qcom/audio/hal/audio_hw.c
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.c
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.c
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.c
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.c
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.c
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.c
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.c
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.c
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.c
a995a357b5da94ad30f155a53325810138dcd718 22-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Fix the issue audio not routed to headset

- Boot the phone without headset plugged in, plug in headset and
play music. Audio is heard on speaker instead of headset.
- The devices of output stream corresponding to music playback
is not being updated correctly.
- Fix by correcting the output device uption logic in
out_set_parameters()

Bug: 8239898
Change-Id: Ie24de09847533660d2280744d33cba7d7fb7d535
/hardware/qcom/audio/hal/audio_hw.c
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.c
0e4949903cb6655211a95d3070f0951756fa05d1 23-Feb-2013 Glenn Kasten <gkasten@google.com> Merge "Revert "Fix routing for wired headset""
4b731445015b1be90ee280d5b2c4901e19589561 23-Feb-2013 Glenn Kasten <gkasten@google.com> Revert "Fix routing for wired headset"

This reverts commit 8637747fab82a99325aae69755646e96fe2e62a5

Change-Id: I59073d3e47548a5697b61a5691b2506bf5876e5e
/hardware/qcom/audio/hal/audio_hw.c
8b9c5c8c26b4acce5870c48ed8aa76decd823a1e 21-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Fix no voice call audio on bt-sco device

- No audio observed in the first voice call if the device is
booted with the BT-SCO device connected.
- csd_client_enable_device is not being called when the voice
call is enabled which results no audio.
- Fix the issue by making sure that API is called with proper
acdb ids while starting a voice call.

Bug: 8236957
Change-Id: I83a4c00e950b8311162b33087ed73a390c39ca7d
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.c
8637747fab82a99325aae69755646e96fe2e62a5 21-Feb-2013 Glenn Kasten <gkasten@google.com> Fix routing for wired headset

Bug: 8239898
Change-Id: Id001206b2e5aa441340b38d62fbcee7449cf5cba
/hardware/qcom/audio/hal/audio_hw.c
8455fa7d7e51680e45b6a88d28cf48074280e2f9 19-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Fix no audio issue after A2DP disconnect

- No audio heard after A2DP headset is disconnected.

- During A2DP disconnect, the audio HAL receives routing
with device as 0. So the subsequence playback buffers are
dropped as there is no valid output device.

- Fix this issue by ignoring the routing to device 0.

- Update to use speaker mic for voice communication when
using speaker as output device.

Bug: 8214360
Bug: 8219514
Bug: 8230266
Change-Id: Ic19e8e512ae3c5e493014a1ba3c17bf0ddf35e36
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.c
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.c
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.c
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.c
610e8cc467a8aa21a3fe25f730793d6c6413d3e7 12-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> qcom/audio/hal: Fix the device switch delay issue during voice call

- Device switch from earpiece to speaker during voice call takes
around 3.5sec which is not acceptable
- Disabling the voice call mixer path consumes 3.5 sec
- Fixed by making sure that device path is deactivated on MDM through
CSD client before disabling voice call mixer path on APQ.
- Also remove incorrect calls to dlerror() and make the dlsym-error messages
more consistent.

Change-Id: Ib23c0a3c0341f41904ca06524bf9d2f4214ad92e
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/audio/hal/audio_hw.c
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.c