Commit Graph

478 Commits

Author SHA1 Message Date
Linux Build Service Account 5608753146 Merge "hal: add support for pcm_ioctl() api" 2014-06-17 02:34:37 -07:00
Mingming Yin 07972cc595 hal: add support for pcm_ioctl() api
- Tinyalsa doesn't expose an api to call
  ioctls exposed by the audio drivers.
- Add pcm_ioctl() api to support pcm ioctl.

Change-Id: I448252e8d3347257a73c56bc8ed341abc2dd2dab
2014-06-16 11:42:12 -07:00
Mingming Yin 0acba99f8e hal: remove ANC headset devices in hal
- Remove AUDIO_DEVICE_OUT_ANC_HEADPHONE and
  AUDIO_DEVICE_OUT_ANC_HEADSET in hal.
- These devices are not used

Change-Id: Ib8692906edb3460a6325adcf3c3cce9ef4641120
2014-06-16 11:41:58 -07:00
Linux Build Service Account 77a0d1183e Merge "hal: 8939: add support for 8939 skuk device" 2014-06-10 01:46:48 -07:00
Dhananjay Kumar 45b71743aa hal: Add support for listen playback concurrency
Add support for concurrency handling between number of
listen capture session and playback activity.

Change-Id: I4a0656f240c62f2cc6266a714a96fdcdc13ae9d8
2014-06-06 23:35:16 +05:30
Meng Wang f00485b15f hal: 8939: add support for 8939 skuk device
add entry for 8939 sound card name to load
the mixer controls for 8939.

CRs-Fixed: 676373
Change-Id: Ia96729c66951082353fe59677d1ae5b8e5f5ca6a
2014-06-06 12:38:40 +08:00
Linux Build Service Account 04e5c07733 Merge "audio: Change LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH" 2014-06-03 12:09:27 -07:00
Linux Build Service Account e940215ed3 Merge "hal: Fix 64 bit compilation errors" 2014-06-03 12:09:26 -07:00
Walter Yang c899d5701e hal: Add the missing 'else' for mixer_paths filename selection
Fix the minor issue in function of query_platform. The 'else' is
missing, which causes that the mixer_paths file name of all the
8916 boards will be overwritten by the default one.

Change-Id: If105e38537f5d4d5d3f52dfc64ac62f11e829bbf
CRs-Fixed: 668629
2014-06-02 09:45:07 -07:00
Linux Build Service Account c78784216e Merge " Audio: Fix for FM off/on delay post SSR" 2014-06-01 20:49:31 -07:00
Linux Build Service Account e2637fe3c1 Merge "hal: Enhance voice concurrency support for 8916" 2014-06-01 20:49:20 -07:00
Linux Build Service Account c6b2c751dc Merge "hal: Fix input device selection for camcorder stereo recording" 2014-06-01 18:10:50 -07:00
Linux Build Service Account a2a804fd90 Merge "hal: remove extra space after 8994 snd card name" 2014-05-31 19:43:07 -07:00
Linux Build Service Account f95f5f8e44 Merge "hal: update audio feature flags" 2014-05-31 19:43:03 -07:00
Dhanalakshmi Siddani 7b4cb78234 Audio: Fix for FM off/on delay post SSR
- 8-10sec delay observed when FM is turned off/on from UI post SSR with
  touch tones enabled. If any new input request comes before FM is closed
  post SSR, pcm driver assumes AFE is still active and starts pumping data
  to AFE which is already closed due to SSR causing the delay
- Fix is to close FM session during SSR

 CRs-Fixed: 673031

Change-Id: I4a55c6ca66d94e633e768b1d40584d5a5782e13e
2014-05-29 23:07:49 -07:00
kunleiz 18a3330f91 hal: Fix input device selection for camcorder stereo recording
- Single mic device would be seleted in camcorder, even if
  the dual mic enabled.
- In camcorder, the input device was force to select
  SND_DEVICE_IN_CAMCORDER_MIC, which is a singal mic.
- Fix by selecting dmic device as input devices in camcorder,
  Only when the fluence type is dual mic and the channel
  count is 2.

Change-Id: I4f6b7d54a3e7e6ddb98355d20c4bc28466905550
CRs-Fixed: 669982
2014-05-29 19:35:42 -07:00
Linux Build Service Account bb1d15364e Merge "hal: msm8916: Fix no Tx issue during multi party HFP calls" 2014-05-29 17:03:06 -07:00
Linux Build Service Account 750191e85b Merge "hal: Fix no Tx issue during multi party HFP calls" 2014-05-29 17:03:06 -07:00
Mingming Yin a6dad60d52 hal: update audio feature flags
- update audio feature flags to use
  AUDIO_FEATURE_ENABLED_XXX instead of
  AUDIO_FEATURE_DISABLED_XXX.
- These feature flags are defined
  by target board config file

Change-Id: Iba482d8b72bfa2675877d833d7abcb93d4cf4907
2014-05-29 13:15:15 -07:00
Apoorv Raghuvanshi 1b555f7332 audio: Change LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
To comply with multi-arch build system changes for 64-bit support,
LOCAL_MODULE_RELATIVE_PATH needs to be used.

Drop explicit use of LOCAL_MODULE_PATH, and use relative path to
avoid build system to overwrite one of multi-arch library variants
with the other arch variant.

Change-Id: I21f9b952a79c3930b15ff5549ac3c21ca827cc3a
2014-05-29 12:51:51 -07:00
Linux Build Service Account 2ee2f60d7b Merge " Audio: Revert hal changes to block pcm_close during SSR" 2014-05-29 04:34:33 -07:00
Venkata Narendra Kumar Gutta 5f64eea499 hal: Enhance voice concurrency support for 8916
- All VoIP, compress, deep buffer, record usecases need to close
before voice call setup and don't allow these usecases during
voice call on 8916.
- setMode(IN_CALL) itself is not sufficient to know if we are
in actual voice call.
- Add keyvalue parameters support to know if we are in voice call
and policy hal can query the same and make decissions based on it.

CRs-Fixed: 662804
Change-Id: I20d660fadd07c4d227a7e3dfe356fc39806ca167
2014-05-29 15:05:25 +05:30
Apoorv Raghuvanshi 44bd917f85 hal: Fix 64 bit compilation errors
- Fix 64 bit compilation errors seen
  with lpdk64 builds

Change-Id: I25126485b30c1c66cca9654f8c017dee2cf4239a
2014-05-28 18:09:32 -07:00
Dhanalakshmi Siddani 8fc6d91dda Audio: Revert hal changes to block pcm_close during SSR
pcm driver supports pcm_close during SSR, so reverted
 HAL code to block pcm session close during SSR.

 CRs-Fixed: 663477

Change-Id: I752e3f4f55288f91294e090b974ba1367c27122d
2014-05-28 13:39:53 +05:30
Linux Build Service Account 5a688d0a32 Merge "hal: Add support for VoWLAN on MSM8974" 2014-05-27 18:45:54 -07:00
Linux Build Service Account da5ef4897d Merge "hal: send calibration parameters in stream route" 2014-05-27 14:55:26 -07:00
Linux Build Service Account 8eafd3942c Merge "hal: Fix for no audio on BT headset till waiting call is ended." 2014-05-26 23:13:29 -07:00
Subhash Chandra Bose Naripeddy 542746726d hal: send calibration parameters in stream route
The stream's output rendering policy requires calibration to be
sent when stream routing configuration is set instead of the
device enable as each stream can have it's own routing with
different calibration needs.

Change-Id: If8bd365c4a6c616ed86b9383ba540ee8e28c4079
2014-05-26 22:10:39 -07:00
Linux Build Service Account 37f1c5a90a Merge "hal: update voice PCM device IDs for msm8994" 2014-05-25 05:44:32 -07:00
Mingming Yin e5575ab837 hal: remove extra space after 8994 snd card name
- Remove extra space after 8994 snd card name

Change-Id: Ib4d885974a6e175c8b34a1ba4b90bb30de27a6fc
2014-05-23 11:00:34 -07:00
Linux Build Service Account b6103c964d Merge "hal: Add support for 8939 sound cards" 2014-05-23 06:39:35 -07:00
Linux Build Service Account 06f3a0bf79 Merge "hal: add support for msm8994" 2014-05-22 18:25:52 -07:00
Karthik Reddy Katta 060a6c49a5 hal: Fix for no audio on BT headset till waiting call is ended.
-Issue: Voice call audio is not routing to BT headset
 though connected, till the waiting call is ended.
-Rootcause: During voice call, if another call is received, the
 audio mode is changed to MODE_RINGTONE. Due to this, the primary
 output on which the voice call is setup, is not able to find
 new device as BT in getNewdevice().
-Fix: Avoid mode change to MODE_RINGTONE when voice call is already
 active.

Change-Id: I38582e2500ff4c44eb5ac45dab3aab35606d1c7d
CRs-Fixed: 662883
2014-05-22 19:06:57 +05:30
Linux Build Service Account 4378746103 Merge "hal: add exported common headers to LOCAL_C_INCLUDES" 2014-05-21 21:24:10 -07:00
Satya Krishna Pindiproli 2aaa6150b4 hal: msm8916: Fix no Tx issue during multi party HFP calls
- When an incoming MT HFP call is accepted during an ongoing
  MO HFP call, the MO call goes to held state. Later, if this held
  call is rejected, Tx is not heard at the far end of the incoming
  call from the moment the MO call is rejected.
- When the held call is rejected, the input device gets disabled due
  to which Tx samples are not captured.
- Fix the issue by ensuring that the input device is not set to none when
  HFP is active.

CRs-Fixed: 656928
Change-Id: I657b7e2ffbc571dfbc0b10ffced07fdb3f008532
2014-05-21 15:12:18 +05:30
Satya Krishna Pindiproli 071950fa9c hal: Fix no Tx issue during multi party HFP calls
- When an incoming MT HFP call is accepted during an ongoing
  MO HFP call, the MO call goes to held state. Later, if this held
  call is rejected, Tx is not heard at the far end of the incoming
  call from that moment.
- When the held call is rejected, the input device gets disabled due
  to which Tx samples are not captured.
- Fix the issue by ensuring that the input device is not set to none when
  HFP is active.

CRs-Fixed: 656928
Change-Id: Ie3f0886c0412bfdb3e450c54e9f4b651e992f84e
2014-05-21 14:53:27 +05:30
Linux Build Service Account 942fde2f7d Merge "hal: Change FB speaker protection to use new cal driver" 2014-05-20 21:27:33 -07:00
Narsinga Rao Chella c2b9999208 hal: update voice PCM device IDs for msm8994
New machine driver has been added for msm8994. Update PCM device IDs
for voice use cases accordingly. This change is needed to support
voice use cases on msm8994.

Change-Id: Iba5f9423fe99668ccfe3a692c2a3148977d4dfc2
2014-05-20 15:16:44 -07:00
Mingming Yin 0e1b2902c7 hal: add support for msm8994
- Adding msm8994 target support in makefile

Change-Id: Id924e4a7d5df21e605429d85c7c49ede00d7f402
2014-05-20 13:22:02 -07:00
Vicky Sehrawat 8456ae0d4d hal: Add support for VoWLAN on MSM8974
Update the VoWLAN pcm id for MSM8974

CRs-fixed: 662362
Change-Id: Ia0894fa1347f05e55993af91da91272af3161f83
2014-05-19 11:42:16 -07:00
Yamit Mehta c6003e2371 hal: Add support for 8939 sound cards
-Add entries for 8939 sound card names
 to load the mixer controls for 8939

Change-Id: Iadc4764071d0eb790906b62d94043c2e5d93937e
2014-05-19 12:17:41 +05:30
Subhash Chandra Bose Naripeddy 19dc03b51f hal: configure playback stream rendering based on output policy
For the usecases where individual streams have to be rendered
through different post processing chain on DSP an output policy
is defined. The output configuration is read from the
output policy file based on the stream atrributes to render the
playback appropriately.

Change-Id: I095592013ffa5b04bea69254026ebb78e2934822
2014-05-18 21:04:42 -07:00
Linux Build Service Account 33bf8f1035 Merge "hal: msm8916: seperate device support for qrd skuh/skui" 2014-05-15 19:54:07 -07:00
Linux Build Service Account d72dde4c99 Merge "hal: fix for voice + voip call concurrency" 2014-05-14 14:44:31 -07:00
Linux Build Service Account 78313cfe22 Merge "hal: add support for dolby license validation" 2014-05-13 20:28:21 -07:00
Naresh Tanniru 4c63039cfa hal: SSR support for pcm playback,pcm record usecases
- Added SSR event handling support in HAL

- Added support to drop incoming pcm data for pcm playback
  usecase during SSR

- Added support to send dummy input(mute/zero buffer) for
  record usecase during SSR

Change-Id: I158b62fa443bb523091128fe1308c9a9b1415502
2014-05-13 00:25:49 +05:30
Ben Romberger 924e13ddd7 hal: Change FB speaker protection to use new cal driver
Change the FB speaker protection code to use the new
audio calibration driver.

Change-Id: Iab3695f993c6dcf8ac93776216d7f495823be0f9
2014-05-09 15:20:01 -07:00
Nagender Telkar ca2b4942c4 hal: add exported common headers to LOCAL_C_INCLUDES
Needed to get comdef.h from the exported set of common headers

Change-Id: Ib90c8c836748b2d09f03a5c387ddb5c867ff1e64
2014-05-09 02:54:46 -07:00
Dhananjay Kumar 89ea3bd9e5 hal: add support for dolby license validation
Add dolby audio_extn API's to set dolby license.
License needs to be set with dsp everytime it is loaded.

Change-Id: I21d58a21d65c823469d066f4ba5edc5b2660ea1e
2014-05-09 14:46:53 +05:30
Walter Yang 7ca90d914e hal: msm8916: seperate device support for qrd skuh/skui
Different customers will have different settings.

Change-Id: Id5515c80cf302fc1d38526975aba2cae4c442479
2014-05-08 19:42:02 -07:00
Linux Build Service Account e1be46f950 Merge "hal: improve logging." 2014-05-08 17:37:02 -07:00
Linux Build Service Account ffb548ed73 Merge "hal: Set echo reference from mixer file" 2014-05-08 17:36:44 -07:00
Linux Build Service Account 09e624082a Merge "hal: Fix VoIP Mute failure in SIP call during Voice call HOLD" 2014-05-08 12:24:01 -07:00
Anish Kumar 02f899dc2c hal: Set echo reference from mixer file
Fix the set_echo_reference call.

Change-Id: I10609baeb0b3efce8c033be940733482fa565c71
2014-05-08 11:03:05 -07:00
Sidipotu Ashok f43018c6f8 hal: improve logging.
-log to print open/close/standby of out/in streams
-log to print the the device switches

Change-Id: I1b3bf3d6ba19faa4df804f781fc15c0f96a5b80f
2014-05-08 17:02:47 +05:30
Vidyakumar Athota cdce407b03 hal: fix for voice + voip call concurrency
-When voice call interrups ongoing voip call, voip call goes
 to hold state and voice call becomes active. During voice call end
 stop_call is not being called because mode is not set to MODE_NORMAL.
 Voip call becomes active and mode is set to MODE_IN_COMMUNICATION
 after voice call end.
-Fix this issue by removing the dependency on MODE_NORMAL to end
 voice call.

Change-Id: I0103f5c6833fb929cb7975f838bc2c5ec4d94313
CRs-Fixed: 633437
2014-05-06 10:13:44 -07:00
Linux Build Service Account 4a5211fcab Merge "hal: msm8916: seperate device support from other flavors" 2014-05-06 07:25:35 -07:00
Linux Build Service Account 63114437bd Merge "hal: configure HDMI channels based on sink capability." 2014-05-06 07:25:27 -07:00
kunleiz c5a639b0ba hal: Fix VoIP Mute failure in SIP call during Voice call HOLD
- Unable to apply the mute in MT SIP call during Voice call
  in CALL_HOLD.
- Mute is only applied if the voice call state is INACTIVE.
  Thus when SIP call is made during Voice call in CALL_HOLD,
  the mute is not being reflected.
- Fix this issue by checking voice stream type to allow
  the mute to be applied.

Change-Id: I3af5225edd8e9a4123867b647de9405d5c4b9efc
CRs-Fixed: 642893
2014-05-05 19:31:24 -07:00
Linux Build Service Account 619fd2bf17 Merge "hal: Set echo reference from mixer file" 2014-05-04 10:53:03 -07:00
Anish Kumar 4980fa1f8f hal: Set echo reference from mixer file
Set echo reference from mixer file.
Change-Id: I8b9d1209002ead0f82eb6052d41ab00ba41ce6a2
2014-05-02 14:54:48 -07:00
Linux Build Service Account db7a77055a Merge "audio: Remove unused var and unnecessary code" 2014-05-02 13:54:36 -07:00
Linux Build Service Account 8471e80526 Merge "hal: Correct PCM offload fragment size" 2014-05-02 11:05:35 -07:00
Mingming Yin 9c04139034 hal: configure HDMI channels based on sink capability.
- configure output HDMI channel count based on sink
  capability when audio.use.hdmi.sink.cap is set to true

CRs-Fixed: 656308
Change-Id: I3dd3226054c68a69a2c29f8bb2f9c27e429ad2dc
2014-05-02 10:42:50 -07:00
Asish Bhattacharya 4ff24803c2 hal: msm8916: seperate device support from other flavors
Mtp uses different device settings.

Ensure using correct device for mic.

Change-Id: I187d94522781c7a1dd302d3405a5fb8ebd0c0ef9
CRs-Fixed: 643801
2014-05-02 17:41:41 +05:30
Haynes Mathew George 1376ca60d8 audio: Remove unused var and unnecessary code
Remove update_mixer (as its unused) and change function signatures
wherever used.
Remove code chunk to set BT sample rate before enabling device as
thats part of the mixer path file now.

Change-Id: I5eb3bce5183acf505596be2b0ec93cdbd728bdaa
CRs-Fixed: 581453
2014-04-29 14:54:21 -07:00
Haynes Mathew George ef1e3d331e audio: use of audio_route_{apply/reset}_and_update_path APIs
1) Update enable/disable device and route to use the new APIs.
   With this change, mixer controls will be updated in the order
   listed in mixer paths XML file.
2) update_mixer is now an unused var.

Change-Id: Ic0a8874e4a2080347cfa0c2e66af606a08a207a7
CRs-Fixed: 581453
2014-04-29 14:54:13 -07:00
Linux Build Service Account d3bc0d753f Merge "hal: Ensure all the mutexes are initialized" 2014-04-28 22:26:19 -07:00
Linux Build Service Account bcfbd1add0 Merge "hal: fm: Fix incorrect routing of fm audio to speaker" 2014-04-28 22:26:18 -07:00
Linux Build Service Account a518e5166d Merge "hal: Add support for multiple instances of offload playback" 2014-04-28 19:33:52 -07:00
Subhash Chandra Bose Naripeddy 16ff4f86f2 hal: Add support for multiple instances of offload playback
Add support for multiple offload playback instances

Change-Id: I9d35b68fc8ca27c4eeb3976eb508b06c5ad3ca8f
2014-04-28 10:43:03 -07:00
Bharath Ramachandramurthy 0de1678475 hal: fix listen and audio calibration concurency
- ACDB loader is maintaining the same calibration buffers
for both listen and audio. So there is a possibility that
the audio calibration buffers may be overwritten with listen
calibration soon after notifying the device busy state to
listen hal
- Avoid this issue by notifying listen hal before sending the
audio calibration so that listen hal can complete pushing its
calibration

Change-Id: I4d954b1287b59ee4e1510707db25f466d14dca97
2014-04-25 12:52:06 -07:00
Ravi Kumar Alamanda 40703105d8 hal: Ensure all the mutexes are initialized
- Ensure all the mutex locks are initialized before using them,
  to avoid native crashes.

Change-Id: I7b6253f1d08a36a24d366d69004ce969d73c13e1
CRs-Fixed: 654375
2014-04-24 10:39:35 -07:00
Linux Build Service Account 87f0102bcb Merge " hal: msm8974: Fix echo reference port for msm8x10" 2014-04-24 06:11:29 -07:00
Mingming Yin 67e34518ac hal: add missing flags for extended features
- add missing feature flags and definitions
  to compile hal without extended features
  enabled.

Change-Id: I8c04ae54e6597ed43de60b2d01ca333070aef675
2014-04-23 16:41:03 -07:00
Linux Build Service Account 93f6515f87 Merge "hal: Add 8916 qrd skui sound card detection" 2014-04-23 08:38:26 -07:00
Linux Build Service Account 4c93505e1d Merge "hal: fix to handle voip issue when input stream starts first" 2014-04-22 15:36:58 -07:00
Linux Build Service Account 5a55119371 Merge "hal: fix BT device switch issue for audio playback during VoIP call" 2014-04-22 15:36:17 -07:00
Ravi Kumar Alamanda 014b6b919c hal: fm: Fix incorrect routing of fm audio to speaker
- FM audio is enabled or disabled through set_parameters() API
  on primary output stream. The audio is routed to device of
  primary output stream.
- If the routing is not updated before the enable command, the
  audio is routed to previous device of primary output.
- Fix the issue by updating the primary output device with device
  from enable command.

Change-Id: I67764b8b5d2cfaddef94ccfe555702289bf36f95
CRs-Fixed: 651821
2014-04-22 15:19:13 -07:00
Linux Build Service Account 6b75dd74ef Merge " Audio: Fix for audio loss on switching between speaker and USB headset" 2014-04-22 06:37:36 -07:00
Linux Build Service Account 2d3d424672 Merge "hal: add support for external FM volume control" 2014-04-22 06:37:30 -07:00
Linux Build Service Account 593897be43 Merge " hal: Fix device disable/enable sequence" 2014-04-22 06:36:49 -07:00
Narsinga Rao Chella c17cab6487 hal: fix BT device switch issue for audio playback during VoIP call
- When VoIP call is active on non-BT device and if the music playback
tries to switch to BT device, it will continue to route to non-BT
device on which the VoIP call is active already.
- Fix the issue by not selecting VoIP devices for audio playback when
they are on different back ends.

Change-Id: Iff9251fcf02f897d9b1cdc17fcf27c262518ada8
CRs-fixed: 652129
2014-04-21 15:20:05 -07:00
Banajit Goswami 88d6cc5106 hal: add support for external FM volume control
APQ8084 uses an external chip for FM. Add support for
mixer control for external FM volume control.

Change-Id: I296d0b32fce632a296057e6d7b48698d9b0648fe
2014-04-20 00:52:05 -07:00
Dhanalakshmi Siddani 929a1f18a3 Audio: Fix for audio loss on switching between speaker and USB headset
- snd device reference count is not decremented when usb headset is
   unplugged, because touch tone is still active on usb headset.
   So when usb is plugged again device routing is not triggered as
   present and prev devices are same
 - Fix is to route audio to speaker as soon as usb headset is
   disconnected

   CRs-Fixed: 630425

Change-Id: Idfa37478fa19cd5a1c75c7e1d2f77b4dc02b311a
2014-04-19 21:06:20 +05:30
Narsinga Rao Chella 7ce0535f70 hal: fix to handle voip issue when input stream starts first
- adev_open_output_stream() fails if the use case is already enabled.
Because of this, in case of VoIP, when the input stream is created
and started before creating Audio Track, then the output stream
creation fails.

- Fix this issue by giving exception for VoIP use case.

Change-Id: I5e7329d64075a09b99e5760a9050ace8c62a4e87
CRs-fixed: 651761
2014-04-18 14:22:05 -07:00
Linux Build Service Account 356df1febf Merge "hal: Update BT sample rate for BT input device" 2014-04-18 13:42:46 -07:00
Venkata Narendra Kumar Gutta 65d5126b3b hal: msm8974: Fix echo reference port for msm8x10
Echo cancellation is not working in VoIP calls.

  Echo reference port is set as I2S_RX which inturn sets
  PRIMARY_I2S_RX as echo reference port while configuring
  ADM is causing the issue.

  8x10 is using SECONDARY_I2S_RX port in Rx path. Update
  the EC reference port accordingly.

  CRs-Fixed: 646310

Change-Id: If949c6c7487c36a02e5bcedb3c779f502592ce64
2014-04-17 16:50:09 +05:30
Venkata Narendra Kumar Gutta 7610e63587 hal: Fix device disable/enable sequence
In Skype call, observed no rx data when headset is inserted
  during call.

  During device switch from handset to headset, audio HAL is
  enabling the headset mixer controls first then disabling
  handset mixer controls leading to no audio during downlink
  as codec clock in 8916 is disabled due to the followed
  sequence.

  The current device switch logic doesn't make sure that all
  previous devices are disabled before enabling the selected
  devices. Fix this by changing the logic to disable all the
  previous devices first and enable the selected devices.

  CRs-Fixed: 648710

Change-Id: I0adfb62ea0ad8e2a2fe1a5473732e8bef61c492a
2014-04-16 22:28:28 +05:30
Vidyakumar Athota 3c9fb7fa96 hal: Update BT sample rate for BT input device
-BT sample rate should be set before opening BT SCO output
 or input device. Currently it is set only for output device.
-Set sample rate for BT SCO input device also

Change-Id: I356557a727f5946ff3b4eb89ea16e4c16d84d21c
2014-04-15 16:07:02 -07:00
ApurupaPattapu b57da78a14 hal: Correct PCM offload fragment size
- Correct the fragment size to use bytes instead of bits
  per sample
- Use 80ms as pcm offload buffer duration for video streaming
  usecases and 1 sec for video + audio usecases

Change-Id: Iec8e24c2b158368742a55710a46da94ce5d3c170
2014-04-15 15:46:36 -07:00
Linux Build Service Account f2651901d0 Merge "hal: Update EC support for HPF usecase" 2014-04-15 12:55:31 -07:00
Linux Build Service Account dc940c8454 Merge "hal: adjust position of QCHAT FE DAI for APQ8084" 2014-04-15 12:55:21 -07:00
Satya Krishna Pindiproli 624c78082f hal: Update EC reference for HFP usecase
Ensure reference device is set if audio is routed
to speaker/headset during HFP usecase.

Change-Id: Ia17371727b7c8f158bc2951d0d433416b7867458
CRs-Fixed: 641513
2014-04-11 19:50:43 +05:30
Satya Krishna Pindiproli 640c91eb2d hal: Change device IDs of HFP
Match the device IDs of HFP with the IDs of the
DAI links for HFP in the machine driver of 8x16.

Change-Id: I7f4cc46c7017d44b08964c3538370606e57ab7df
2014-04-11 19:47:18 +05:30
Karthik Reddy Katta 3b0a60c065 hal: Add support for VoWLAN feature
Add VoWLAN pcm ID and usecase to enable voice
over WLAN feature.

CRs-fixed: 642690
Change-Id: I791ffb19f61a726b8c2c45de380559831e08b520
2014-04-10 11:38:35 +05:30
Linux Build Service Account a06c8e6dc9 Merge "hal: add support for AANC on handset for APQ8084" 2014-04-09 20:57:14 -07:00
Linux Build Service Account 68b7f72190 Merge "hal/usb: Add initial volume setting for USB headset" 2014-04-09 02:49:38 -07:00
Banajit Goswami de0ea45ca5 hal: add support for AANC on handset for APQ8084
For APQ8084 voice call use-case, Adaptive ANC (AANC) is used
by sending an appropriate flag to CSD for enabled AANC.

Change-Id: Ifc4609c16ef3c5d905628ff22853fc44fd81a73a
2014-04-07 12:11:47 -07:00
Ashish Jain e40bf8d937 hal: Update EC support for HPF usecase
- Ensure reference device is set if audio is routed
to speaker/headset during HFP usecase.

Change-Id: Ia404aaa8ec8b80e9f4be14840dfef3bf9afef435
CRs-Fixed: 641513
2014-04-07 11:04:54 +05:30