Commit Graph

1027 Commits

Author SHA1 Message Date
Linux Build Service Account 407c8e91ff Merge "hal: fix the reference count for devices during speaker protection" 2014-11-01 15:54:43 -07:00
Linux Build Service Account 7a469c7848 Merge "hal: add new devices for VoIP usecase for 8909" 2014-11-01 15:54:42 -07:00
Linux Build Service Account 85aea5cdfb Merge "hal: fix voice call mute issue" 2014-11-01 15:54:41 -07:00
Linux Build Service Account 4445b8fa8d Merge "hal: use consistent in call indication" 2014-11-01 15:54:40 -07:00
Naresh Tanniru c0517bc213 hal: add new devices for VoIP usecase for 8909
- Due to mips limitation on 8909, VoIP &
  record playback concurrency usecases should
  use non DS1 topology device.

- Add new devices on Bear platform, which will
  be selected for VoIP & record playback usecases
  based on "rec.playback.conc.disabled" system property

Change-Id: I676bb0a870c22d912e8422795abcbbe9cd115318
2014-10-31 15:41:38 +05:30
Narsinga Rao Chella 44376cc041 hal: fix voice call mute issue
The backend is always configured with default bit width and sample
rate for voice calls. The backend reconfiguration should not be done
when a new stream starts during voice call.

Change-Id: I9fda27c4fb1925b3ddeec929ad986886dc4d695e
CRs-fixed: 747001
2014-10-29 14:08:22 -07:00
Linux Build Service Account 8dd53a5094 Merge "hal: codec calibration data using hwdep nodes" 2014-10-28 08:25:22 -07:00
Linux Build Service Account 000601d520 Merge "hal: fix race condition between sthal and ahal" 2014-10-26 08:14:05 -07:00
Linux Build Service Account 9d1bcfbc5d Merge "hal: Fix combo device configuration for 24 bit playback on speaker" 2014-10-24 22:51:36 -07:00
Linux Build Service Account df80f867a3 Merge "hal: Remove checks for 24 bit platform support" 2014-10-24 22:51:33 -07:00
Linux Build Service Account 94d782cf50 Merge "hal: use system property to enable FFSP" 2014-10-22 15:59:07 -07:00
Anish Kumar a020a7c278 hal: fix the reference count for devices during speaker protection
In speaker protection voice call usecase AHAL has two
usecases (VI-RECORD and regular capture) but the
function (check_and_route_capture_usecases) enables and
disables the voice-speaker-mic wrongly as it doesn't see
that the record device is not speaker mic record but
rather vi-record. So it wrongly enables the speaker mic device
which causes mismatch in device reference count.

Change-Id: I981b2e446b4efe4679e21ed5113217dff9ec2a0f
2014-10-22 10:56:23 -07:00
Ravi Kumar Alamanda be149396ca hal: use consistent in call indication
Use voice_is_in_call() instead of mode == MODE_IN_CALL
as a valid indication that we are in call to choose sound
devices.

Change-Id: Iefa968ee463d4ade6c7d09626be667faab6eda98
2014-10-21 15:51:14 -07:00
Bharath Ramachandramurthy 5baa6a5f7f hal: fix race condition between sthal and ahal
When SSR happens the callbacks between sthal and ahal
are called within each context aquiring the locks resulting
in race condition. Fixed by removing lock before calling
the sthal callback.

Change-Id: I6cd88d25758f9c0a6ca39141df6629e2f8b6c0c5
2014-10-21 11:23:09 -07:00
Linux Build Service Account 8f0b1432f8 Merge "hal: add support to send/receive voice call TX/RX audio" 2014-10-21 06:13:21 -07:00
Linux Build Service Account 78227db665 Merge "hal: add support for low-latency capture" 2014-10-21 06:13:21 -07:00
Srikanth Uyyala cae4aa33bd hal: codec calibration data using hwdep nodes
Push the codec driver calibration using hwdep nodes.

Change-Id: I1f5df3d9ceba7e23f046b2a28d816652f4b8d4fa
2014-10-21 11:48:10 +05:30
Ravi Kumar Alamanda 060bc5a327 hal: add support to send/receive voice call TX/RX audio
Add support for routing voice calls to devices in other audio
HALs by allowing playback and capture to/from AFE proxy

Change-Id: I2c6a1ddec072e1d5f1a8b7ded874e9c082a7b810
2014-10-17 09:57:20 -07:00
Ravi Kumar Alamanda dc9bb157cf hal: add support for low-latency capture
- add support for low-latency capture

Change-Id: Ic8a82854799adfa4eb1fcd323e0177eeadc7e319
2014-10-17 09:53:09 -07:00
Amit Shekhar 445f73c7d7 hal: Remove checks for 24 bit platform support
Check for 24 bit in HAL is not needed as the check for 24 bit
platform support is achieved through flags in frameworks.

Change-Id: Icc590dfc1c4b831399435c19dd505ddebf6503cd
2014-10-16 15:03:23 -07:00
Srikanth Uyyala a675cd1547 hal: use system property to enable FFSP
new system property is used to store FFSP enable/disable in persist memory.
user has to enable FFSP in both acbd file and system property.

Change-Id: Ia1a95515bac2e85cd33b944dba2edcba0712c5bd
2014-10-16 14:01:24 +05:30
Linux Build Service Account c684939337 Merge "hal: codec calibration data using hwdep nodes" 2014-10-14 14:57:57 -07:00
Linux Build Service Account ff8c85ceb7 Merge "hal: check the pointer before dereference" 2014-10-14 14:57:56 -07:00
Anish Kumar 3cde892280 hal: check the pointer before dereference
thermal_client_unregister_callback pointer should be checked
for NULL before it is dereferenced.

Change-Id: I3b3a46c93c445a723a7db8a64c727c08f6ca5caf
2014-10-13 14:56:29 -07:00
Amit Shekhar 1d89604def hal: Fix combo device configuration for 24 bit playback on speaker
-Fix combo device configuration for 24 bit playback on speaker
-Move exception hadndling code to audio_extn

Change-Id: Ia0985a284042a5ac5e3de64aaf5e4d57462ceb85
2014-10-13 09:51:29 -07:00
Linux Build Service Account 8a0d03c974 Merge "hal: Pass multisession configuration param to STHAL" 2014-10-12 11:51:04 -07:00
Linux Build Service Account 035ae613eb Merge "hal: add seperate ACDB ID for speaker phone speaker mono" 2014-10-12 08:40:13 -07:00
Linux Build Service Account 4643173a34 Merge "hal: fix the input device selection for headphones" 2014-10-11 14:54:16 -07:00
Anish Kumar 55e6df2252 hal: codec calibration data using hwdep nodes
Push the codec driver calibration using hwdep nodes.

Change-Id: I08875c543be5b69c6cf0d0bbc248806ae2f871c2
2014-10-10 15:32:51 -07:00
Narsinga Rao Chella 97db870693 hal: fix the input device selection for headphones
Headset speaker output device and Speaker phone mic input device
is an invalid device pair combination. Instead, select Handset mic
input device for Headphones.

Change-Id: I1bce425bd73d2f79b7dd78a7d5c701c43390b167
2014-10-07 09:55:59 -07:00
Linux Build Service Account 987af8e86b Merge "hal: fix warnings for speaker protection" 2014-10-07 04:40:53 -07:00
Linux Build Service Account f7e7f7c2c8 Merge "hal: fix 24bit compilation error with extended flag disabled" 2014-10-07 04:40:50 -07:00
Linux Build Service Account 2914aeca9c Merge "hal : fix miscellaneous errors" 2014-10-06 13:40:54 -07:00
Srikanth Uyyala fdc2ed4a95 hal: add seperate ACDB ID for speaker phone speaker mono
Added new ACDB ID(131) for playback usecases to differentiate
with voice calls, so that FFSP can be enabled selectively
for playback usecases.

Change-Id: Iffae085862b422d99a49c3e774749c38cc0a7b82
2014-10-06 12:29:11 +05:30
Preetam Singh Ranawat a5f32b4246 hal : fix miscellaneous errors
fix for the following issues
 21746, 21753, 21754, 25319, 67407, 82922, 82923
 82924, 82926, 82929, 91098, 91100, 112335, 112336
 112337.
Change-Id: I66d3a18271a2212345f90f0be6f9cfbf6996fcc3
2014-10-06 11:20:51 +05:30
Mingming Yin c9efb4fc11 hal: fix 24bit compilation error with extended flag disabled
- use PCM_OUTPUT_BIT_WIDTH instead of out->bit_width to fix
  compilation errors while it is not defined in audio.h

Change-Id: I5c494c622652226f5fd468b073bc29bdcc32d9b3
2014-10-02 17:11:56 -07:00
Mingming Yin 98db8bbca7 hal: fix warnings for speaker protection
- fix warnings for speaker protection in audio_extn.h

Change-Id: I4034b68e80b5378dd2a8d8ebbfd9a9ef89804024
2014-10-02 16:46:03 -07:00
Linux Build Service Account 1b390418e8 Merge "hal: Send voice cal data before routing voice usecases" 2014-10-01 08:29:01 -07:00
Linux Build Service Account a959cbd062 Merge "hal: Fix backend for 24 bit playback on speaker" 2014-09-30 14:43:42 -07:00
Linux Build Service Account 93dd4e0313 Merge "hal: properly reset sample rate of VoIP data" 2014-09-27 06:33:31 -07:00
Linux Build Service Account 2be80d22cc Merge "hal: reset echo reference at the end of recording/VoIP sessions" 2014-09-27 06:33:30 -07:00
Linux Build Service Account 420744b23f Merge "Rename ferrum to msm8909" 2014-09-27 06:33:23 -07:00
Avinash Vaish 71a8b971f3 hal: Send voice cal data before routing voice usecases
-The sound intensity is drastically reduced in a DSDA call when
a particular device is re-selected after a device switch.
It is observed that for the active sub, acdb data tables are
registered to ADSP even before the right acdb tables are
sent to the acdb driver. Therefore, the tables which are infact
registered to the ADSP correspond to the previous device.
- Load the acdb files into the kernel memory before routing
voice usecases to prevent any incorrect tables being sent.

CRs-Fixed: 694397
Change-Id: Id2f2a43c887d9b9e74cd98858013d1ef655a93e3
2014-09-27 09:53:02 +05:30
Preetam Singh Ranawat a4a37d8c52 hal: Fix backend for 24 bit playback on speaker
Configure backend at 48khz for 24 bit playback on speakers.
Currently, ADM can be configured only at the begining of stream
playback. During device switch, in the middle of a playback, the
backend remains at the previous configuration.
By allowing ADM and backend re-configuration during playback, 24-bit
playback is enforced on appropriate backend.

Change-Id: I6a6df5699972b0992a217fb2a4c9dc94fd2230ce
2014-09-25 17:41:34 -07:00
Bharath Ramachandramurthy c694f8a5e0 hal: Pass multisession configuration param to STHAL
Sound Trigger App uses setParameters() API to pass the number of
sessions to be configured to STHAL.

Change-Id: I14abff49863d82178fb633c9a93af0cd02c83e2e
2014-09-25 16:15:12 -07:00
padarshr 04e7481ee8 Rename ferrum to msm8909
This change is to rename ferrum to chipset name- msm8909

Change-Id: I96bfe67673c0fd9e4476a1dc17b88fa911c1b5bc
2014-09-24 12:34:28 -07:00
Linux Build Service Account 86ed63f7cf Merge "hal: enable speaker protection in call usecase" 2014-09-23 22:57:48 -07:00
Linux Build Service Account 9b81042016 Merge "hal: spkr_protection: enable stereo speaker protection" 2014-09-23 22:57:48 -07:00
Anish Kumar 46c7b87a7b hal: enable speaker protection in call usecase
Add new device voice_speaker_protected for speaker
protection in case of voice call.This device is
used to select different acdb id in case voice
speaker device is selected as 8994 device will
use mono speaker in case of voice call and stereo
speakers in normal playback.

CRs-Fixed: 713342
Change-Id: Ib4882b6a20aefcfbae4c113f6ca0ae5d6c899d28
2014-09-23 16:25:31 -07:00
Anish Kumar 63d100d1a9 hal: spkr_protection: enable stereo speaker protection
For stereo speaker protection AHAL need to send number
of channels as 4 along with one more set of voltage and current
data to ACDB driver.

Change-Id: I0819c25ddad705607f84edb82fd923d9eb6d9994
2014-09-23 16:22:03 -07:00