Commit Graph

240 Commits

Author SHA1 Message Date
Linux Build Service Account 2133453a8e Merge "hal: Fix input device selection for stereo recording" 2014-02-05 08:38:00 -08:00
Linux Build Service Account c4ad7c0214 Merge "hal: fix a memeory leak caused by using str_parms_to_str()" 2014-02-03 12:08:15 -08:00
Linux Build Service Account 50682d84dc Merge "audio: update the vifeedback pcm device id" 2014-02-03 12:08:13 -08:00
Linux Build Service Account 4ad95605b2 Merge "audio: Changes to support AV streaming in offload path" 2014-02-01 18:01:08 -08:00
Linux Build Service Account 8fce551516 Merge "hal: Use new acdb-loader init api" 2014-01-31 18:02:23 -08:00
Linux Build Service Account c6a0b1961c Merge "hal: add input source check to open compress voip input" 2014-01-30 21:20:00 -08:00
ApurupaPattapu 2e084df80b audio: Changes to support AV streaming in offload path
- Widevine sends ADTS data, set ADTS based on the parameter
- Set offload fragment size 2k for all video streaming

Change-Id: I4c2376408e2998354db583a9f54649476a880f01
2014-01-30 15:02:14 -08:00
Narsinga Rao Chella 29b8fc7b8d hal: fix a memeory leak caused by using str_parms_to_str()
str_parms_to_str() requires the caller to free() the
returned string. Free the memory pointed to by "str"
before overwriting the "str" with the new pointer which
is returned by strdup() function.

Change-Id: I602ae37cce684e0c62b0ec310080bb0cd675e35a
CRs-fixed: 608384
2014-01-29 14:43:25 -08:00
Linux Build Service Account 6b0d54e974 Merge "hal: Rename & move platform_parser.c" 2014-01-26 10:30:28 -08:00
Gopikrishnaiah Anandan 29b4fd512f audio: update the vifeedback pcm device id
Due to changes in machine driver pcm device id has changed.
Change updates pcm device id for vifeedback usecase.

Change-Id: I75323f80b07fda9cf21d9aef09e4849d767c11b9
CRs-fixed: 602026
2014-01-25 20:08:44 -08:00
Linux Build Service Account c5e709bbd0 Merge "hal: Add static internal function at the top of the file" 2014-01-25 00:32:27 -08:00
Linux Build Service Account 2e420cf986 Merge "hal: Reduce the deep buffer period count." 2014-01-25 00:32:26 -08:00
Linux Build Service Account 4b1c15a50d Merge "hal : Send drain to the driver if next track returns error" 2014-01-25 00:32:25 -08:00
Narsinga Rao Chella 2a99dea3bf hal: add input source check to open compress voip input
Compress voip input requires input source type to be of
AUDIO_SOURCE_VOICE_COMMUNICATION. Move the opening of compress
voip input to in_set_parameters() function which is the first
place in HAL where the source type information is available.

Change-Id: I3758eba6049ccd4f1a4465ef264420d9afb6a795
2014-01-24 15:33:23 -08:00
Ben Romberger 61764e3b80 hal: Rename & move platform_parser.c
Move platform_parser to root hal directory. Rename
platform_parser to platform_info. Change name of
XML file read from platform_info.xml to
audio_platform_info.xml. The xml now only needs
information for ACDB ID's that you want overwritten.
Names in the XML now match sound device enums in
platform.c.

Change-Id: I6f9bfcf4149f08d88cb2a95ba021bdf7296aaf4d
2014-01-23 16:22:26 -08:00
Linux Build Service Account 6878144bc9 Merge "hal: Send device based parameters for DAP and DDP" 2014-01-20 12:02:34 -08:00
Walter Yang bc136bd344 hal: Fix input device selection for stereo recording
Only if the fluence type is dual mic or quad mic and the channel
count is 2, the dmic device is selected as input device.

Change-Id: I22f9d2f154e9b6348ef547ff68014b5e68ae7e5f
CRs-fixed: 599947
2014-01-20 12:50:15 +08:00
Linux Build Service Account e2f42d1492 Merge "hal: Update USB headset ACDB ID" 2014-01-18 10:41:02 -08:00
Linux Build Service Account 1c3135ee0f Merge "hal: Add XML parser for platform info" 2014-01-17 16:41:55 -08:00
Krishnankutty Kolathappilly 6d8788b65e hal: Add static internal function at the top of the file
-Add check_and_set_gapless_mode and get_offload_buffer_size functions
 at the begining of hal file.

Change-Id: I134dffac4aa81ed52fc6a2668cb53fbda60103ca
2014-01-16 23:42:19 -08:00
Krishnankutty Kolathappilly 769d4d490d hal: Reduce the deep buffer period count.
-Deep buffer period count in the driver is 8. This adds to latency
 of 160ms. This also results in the common block to have 8 buffers.
-The total latency used for AV sync is 320ms. AV sync issues are
 seen due to this big latency
-Reduce the deep buffer cound from 8 to 4. This would reduce the
 latency.

CRs-Fixed: 598792
Change-Id: I1c057ee9d7c8a8cb747661e3dc62c9f44bf9ee79
2014-01-16 23:41:38 -08:00
Krishnankutty Kolathappilly d4f1d1310b hal : Send drain to the driver if next track returns error
-Partial drain is send to the driver after next track ioctl.
-If next track times out or returns any error then call drain.
-Partial drain will not  be executed if next track fails.

CRs-Fixed: 594977
Change-Id: I0665f21a5ea01f7776408b5155344f542021c299
2014-01-16 18:57:32 -08:00
Ben Romberger 490d347a42 hal: Use new acdb-loader init api
Use acdb_loader_init_v2 instead of acdb_loader_init_ACDB.
The new v2 api allows the codec name to be passed to
acdb-loader allowing the calibration files to be selected
based on the codec name.

Change-Id: Ib596111902b5e873fe9c770ced36dadd4d001232
2014-01-15 17:11:59 -08:00
Vidyakumar Athota b952220e8c hal: Update USB headset ACDB ID
USB headset ACDB ID is set to 0. Update
it to right value.

Change-Id: Ia634750d0d77078077a4e2758c01bb9a6ec39ea0
2014-01-14 20:08:27 -08:00
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
Ben Romberger 5588688cbd hal: Add XML parser for platform info
Add XML parser which parses the platform_info.xml
on the device. That xml contains ACDB ID information
and is populated from the device project folder to
the /etc folder on the device. It is used to overwrite
hardcoded ACDB ID's in platform.c.

Change-Id: I86419bf0f48bcf7f0125da58626adab1d23fa50a
2014-01-14 17:36:29 -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
Linux Build Service Account c53f56484b Merge "hal: fix no audio in qchat call with speaker as default device" 2014-01-13 23:12:16 -08:00
Linux Build Service Account 87806a2940 Merge "hal: fix no audio when switching devices in voice concurrency" 2014-01-12 12:58:32 -08:00
Subhash Chandra Bose Naripeddy 7690c56892 hal: Send device based parameters for DAP and DDP
Send device based parameters for DAP and DDP

Change-Id: I2cb977a573a3065f121d7aa096355ebda15f5948
2014-01-11 20:37:26 -08:00
Linux Build Service Account 59c0b4acd6 Merge "hal: audio routing enable in hfp case" 2014-01-11 19:20:55 -08:00
Linux Build Service Account bdaefe42d7 Merge "hal: avoid audio rerouting to different device when hfp is active" 2014-01-11 19:20:54 -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
Mingming Yin 4a72d65cef hal: handle combo output devices for voice call
- Issues: camera shutter sound is not heard on
  speaker when wired headset is connected.
- Rootcause: combo output devices are not updated
  properly for voice call use cases.
- Fix: update combo devices before voice call use
  cases in platform_get_output_snd_device.

CRs-Fixed: 591822
Change-Id: Ic2e75a4ce25f77499c07b4a8a32af774cdea16c2
2014-01-10 10:30:37 -08:00
Shiv Maliyappanahalli 80ac628638 hal: fix no audio when switching devices in voice concurrency
When voip usecase is active and voice call is recieved, voip
usecase will go to standby causing devices to be disabled
resulting no audio in voice call.

CRs-fixed: 589353, 592531
Change-Id: I6d5e2f9c5dd72438affd82799333d7227c72533f

Conflicts:

	hal/audio_hw.c
2014-01-10 10:05:03 -08:00
Linux Build Service Account 7cb06b30d7 Merge "hal: Disable gapless offload playback by default." 2014-01-09 15:55:42 -08:00
Linux Build Service Account 027f07bab5 Merge "hal: fix set_parameter() returning -2 error" 2014-01-09 15:54:57 -08:00
Linux Build Service Account 7954540556 Merge "hal: add support for all_call_states key" 2014-01-09 15:54:56 -08:00
Krishnankutty Kolathappilly b165a8aa28 hal: Disable gapless offload playback by default.
-Set the property-audio.offload.gapless.enabled to true to enable
 gapless playback by default.
-Set mixer control to the driver to decide if gapless playback needs
 to be used or not
-If gapless playback is not enabled then partial drain from HAL is
 treated as full drain.

Change-Id: Id7f4967fe528bab9097c3f609058276ec02174e1
2014-01-09 11:45:52 -08:00
Linux Build Service Account e88b020a55 Merge "hal: HFP support for setting sampling rate" 2014-01-09 06:20:50 -08:00
Linux Build Service Account 3349c5f11f Merge "hal: set gapless metadata for compress offload playback" 2014-01-09 02:03:11 -08:00
Linux Build Service Account b1149352c6 Merge " hal: Correct pcm device ID for QCHAT session" 2014-01-09 02:03:00 -08:00
Vimal Puthanveed 21e5c767f7 hal: audio routing enable in hfp case
- When hfp is enabled make sure to reroute during device
   switch

CRs-Fixed: 595541
Change-Id: I680b4198a2d3baf257ae4bcfaf0c955eb62df3d9
2014-01-08 14:13:00 -08:00
Vimal Puthanveed 37b4a1cd95 hal: avoid audio rerouting to different device when hfp is active
- when hfp is active we make sure we do not reroute anything
   new to different device with same backend.

CRs-Fixed: 592390
Change-Id: I75e69916a8fe7e711b326cf82b206e3e16508b60
2014-01-07 16:49:14 -08:00
Vimal Puthanveed 47e6485457 hal: HFP support for setting sampling rate
- Add support for setting sampling rate using setparameter. This
is to support 8000 or 16000 sampling rate set from BT

Change-Id: Ia6c7e530df0ba0226e492937e1c9acc70f6c6d13
2014-01-02 11:40:21 -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