Commit Graph

18 Commits

Author SHA1 Message Date
Linux Build Service Account 60d65d1d29 Merge "hal: add support for voip_out_stream_count key in get_parameters" 2014-01-14 17:59:42 -08:00
Narsinga Rao Chella 7a9e59d8ed hal: Fix compilation issue seen when a feature flag is defined
This change is needed to fix a compilation warning in Compress VoIP
code when the feature flag "AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS"
is defined.

Change-Id: Ie19f542dc71705bc27a7278c83236904782f3a5e
CRs-Fixed: 590219
2014-01-14 09:39:46 -08:00
Linux Build Service Account d3072b6915 Merge "hal: fix incorrectly updated copyrights for source files" 2014-01-13 23:12:43 -08:00
Narsinga Rao Chella 707e751813 hal: add support for voip_out_stream_count key in get_parameters
Add support for voip_out_stream_count in get_parameters which
will be queried by Audio Track to decide whether to open direct
output or not in case of VoIP.

Change-Id: Ic0d058dff32d9002cd452689636f342e748a7fe5
2014-01-10 17:05:56 -08:00
Shiv Maliyappanahalli 07a9ea232c hal: fix no audio in qchat call with speaker as default device
HAL doesnt let voice calls start if the device is set to speaker
as voice calls generally start on devices other than speaker.
However QCHAT calls start by calling setForceUse and setting the
device to speaker.

Fix by updating a flag whenever device routing happens when
AUDIO_MODE_IN_CALL. Reset the flag when mode is AUDIO_MODE_NORMAL.

CRs-fixed: 596074
Change-Id: I546959d2b0123828562dba1f6439aa494a365c3f
2014-01-10 16:27:18 -08:00
Shiv Maliyappanahalli 8911f28005 hal: fix incorrectly updated copyrights for source files
Fix incorrectly updated copyrights for source files.

Change-Id: If321f8fb0489f3088e867d4f200c6d1581ed9f57
2014-01-10 15:56:19 -08:00
Shiv Maliyappanahalli 3e064fdd0f hal: fix set_parameter() returning -2 error
When setparameters() is called and if the known keys are not found,
the implementation returns -2 error.Fix this by setting error only
when keys are found and there is an error while executing corresponding
implemention.

CRs-fixed: 589280
Change-Id: If5544d6fdeac47ddfc1f7e8e18bfa81e2ef5cbc2
2014-01-02 10:53:12 -08:00
Shiv Maliyappanahalli f93084982f hal: add support for all_call_states key
Add support for all_call_states which can be queried by
applications to know call states.

Change-Id: I5ba66186e9d9f6d5769a814f4c1e0627c6f6dd74
2014-01-02 10:24:37 -08:00
Apoorv Raghuvanshi 84fa2fe20e hal: Detect sound card dynamically
- HAL always assumed SOUND_CARD/MIXER_CARD
  number to be zero. This could cause HAL
  not to load when some other card is
  detected earlier to HAL.
- Fix by removing these Macro(s) and reading
  correct sound card number runtime while loading
- Corrected its use cases across HAL replacing it
  with appropriate platform API

CRs-fixed: 580226

Change-Id: I4512e4a2f7f81d8415c3ba8ec393c96867e6d69a
2013-12-17 12:29:42 -08:00
Linux Build Service Account 2d74b27e35 Merge "hal: Fix voice calls starting on speaker unintendedly" 2013-12-05 01:20:44 -08:00
Narsinga Rao Chella 1eceff805c hal: Fix framesize issue for compress VoIP
- Correct the framesize for 16KHz VoIP use cases
- Add proper checks to enable compress VoIP use case
- Add get_parameters() support to query audio mode

Change-Id: I470d538f1e136780264e81b509fb439baead603d
2013-12-03 20:39:44 -08:00
Narsinga Rao Chella 05573b74bf hal: Add support for compressed voip
Add support to enable voip calls using compressed
audio formats.

Change-Id: If20493b75befbcc56945e4309c8f01384948a7b5
2013-11-18 14:47:49 -08:00
Shiv Maliyappanahalli 7a2545c8b3 hal: Fix voice calls starting on speaker unintendedly
If setParameters(vsid, callstate) call is processed before
setparameter(routing), voice calls will be started on speaker.
Fix by not starting voice calls by checking if the primary output
device is speaker.

Change-Id: If3ecb83bbcb02d5da40d66340276263413adabc9
2013-11-11 14:59:08 -08:00
Shiv Maliyappanahalli 3bb7358558 hal: end all calls when setmode(AUDIO_MODE_NORMAL) is called
Telephony will call set_mode(AUDIO_MODE_NORMAL) when a
call is ended which will trigger audio policy manager setting
routing with audio usecase compatible device. Voice calls can
still be active if RIL has not yet called
setparameters(vsid,callstate). This would result in routing
voice call usecases with incompatible device for voice calls.
Fix this by ending all voice calls when set_mode(MODE_NORMAL)
is called.

Change-Id: Id2c9f2ff9ed46969e5cbd27b525b81735c1d49d8
2013-11-11 13:36:11 -08:00
Shiv Maliyappanahalli 303f51dd95 hal: compile voice extensions based on board config flag
Compile voice extensions based on the flag
AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS defined
in BoardConfigVendor.mk.

Change-Id: I06c42bf4b79294fed2077c1d2771ed155f68de00
2013-10-28 16:29:12 -07:00
Shiv Maliyappanahalli f3b9a42020 hal: add incall music delivery feature
In multisim scenarios, local call hold tone has to be played
to the uplink on the sub on local call hold. Add incall music
delivery feature so that call hold tones can be played to the
uplink.

Change-Id: I8cecf0139926a4bfee603c02542bbedc67720bf4
2013-10-28 12:45:41 -07:00
Shiv Maliyappanahalli da10764803 audio_hal: add incall recording feature
The uplink, downlink and the combination of both can be
recorded using sound recorder app. Add support for incall
recording feature in audio HAL.

Change-Id: Ia828ab5b3af8044d82b6ef8eb989ae0ba9bbba16
2013-10-21 12:37:25 -07:00
Shiv Maliyappanahalli 34b585f05a audio_hal: Add support for multi voice sessions
Update HAL to add multi SIM voice support. Seperate
out voice features to voice files.

Add getprop/setprop for BT sample rate, Fluence and Slow talk.

Change-Id: Ief61466f78c7b915549981a28fc7ff32731607a5
2013-10-19 00:06:47 -07:00