Commit Graph

572 Commits

Author SHA1 Message Date
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
Linux Build Service Account e8d0069fb5 Merge "Audio: 8x16 concurrency changes" 2014-01-30 07:24:05 -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 2d477702a8 Merge "policy_hal: Correct device selection in STRATEGY_ENFORCED_AUDIBLE" 2014-01-28 01:17:55 -08:00
Linux Build Service Account 210a4d9308 Merge "post_proc: disable adsp reverb when preset is 'None'" 2014-01-27 11:39:19 -08:00
Naresh Tanniru 36c0893ab1 Audio: 8x16 concurrency changes
- Modem & Audio uses same DSP which will limit
  Audio usecases  during call mode

- Route all audio output sessions to ULL path
  during in call mode
  Route all non music sessions to ULL path if WFD
  session is active(to disable multiple post processing on ADSP)

Change-Id: I0c2d124cf0cef6ff2064405795dc2f16eddbe540
2014-01-27 20:27:39 +05:30
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 6986768c51 Merge "post_proc: Enable effects param in DSP to start effect" 2014-01-25 09:41:39 -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
wjiang b27e25f062 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.

Change-Id: I0c42dd13c09579a6bd3bef2141b857477ec65f2e
CRs-Fixed: 604982
2014-01-22 13:26:53 +08:00
Apoorv Raghuvanshi 7566f8b55e policy_hal: Correct device selection in STRATEGY_ENFORCED_AUDIBLE
- When strategy is STRATEGY_ENFORCED_AUDIBLE, do not select
  unsupported combo devices Proxy+Speaker, HDMI+Speaker,
  and FM_TX + Speaker.

Change-Id: Icd4f6de74807a6efc5f6eb8258c020ad990aaf9b
Crs-fixed: 600799
2014-01-21 14:53:54 -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
Linux Build Service Account e2f42d1492 Merge "hal: Update USB headset ACDB ID" 2014-01-18 10:41:02 -08:00
Linux Build Service Account eb5098451b Merge "audio: mpq: enable volume control for offload playback" 2014-01-18 07:38:28 -08:00
Linux Build Service Account db5eeb29ef Merge "hal_mpq: Add the SPDIF device entry" 2014-01-17 21:50:38 -08:00
Linux Build Service Account 1c3135ee0f Merge "hal: Add XML parser for platform info" 2014-01-17 16:41:55 -08:00
Linux Build Service Account 73500f14d2 Merge "hal: mpq: configure HDMI channel number" 2014-01-17 08:05:00 -08:00
Amit Shekhar d02f2cd710 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.

Change-Id: Ibe1e50b41ca25b51537e4a0ad80dbd5184379133
CRs-Fixed: 593509
2014-01-17 16:00:31 +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
Dhananjay Kumar e4f4f12fd8 audio: mpq: enable volume control for offload playback
Enable set_compress_volume to apply volume on offload
playback sessions.

Change-Id: I89631dff192f02988b7613ae07b5b112e420c287
2014-01-17 04:37:31 +05:30
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
Linux Build Service Account bcbeb131a8 Merge "hal: Fix compilation issue seen when a feature flag is defined" 2014-01-14 17:59:02 -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 2372052070 Merge "hal_mpq: Fix the underrun issue in the offload playback" 2014-01-13 23:12:10 -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
Linux Build Service Account 8c99fa1da8 Merge "hal: handle combo output devices for voice call" 2014-01-11 13:58:06 -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