Commit Graph

29 Commits

Author SHA1 Message Date
Cal Archer 01be0409e2 fix USB audio support
fw/b changes in Oreo cause some USB audio devices
which were previously recognized as AUDIO_DEVICE_OUT_USB_DEVICE
or AUDIO_DEVICE_OUT_USB_ACCESSORY now to be recognized as
AUDIO_DEVICE_OUT_USB_HEADSET (0x4000000), causing this error:

AudioPolicyManagerCustom: setDeviceConnectionState() could not find HW module for device 04000000

BUGBASH-2398

Change-Id: If1f6c760e28a2daeb3855c86fc561c7e5e85f0bf
(cherry picked from commit 36fb5d9d181a7e0ae8dd5f2e93a1f5f1a70d1302)
2018-11-05 05:34:46 +02:00
Adrian DC 924baf9ba2 klte-common: Only use AUDIO_FORMAT_PCM_16_BIT in policy configuration
* The updated audio HAL sources (for instance 8.0.0_r33) use
   the formats directly through the pcm_format_from_audio_format
   inline functions to resolve and validate provided formats,
   however in our case the formats include values outside
   of the allowed AUDIO_FORMAT_PCM_... values and fail

 * Crash situation was happening upon 3.5 Jack plug only

Change-Id: I4b613c25ea7fd202a434c18c2fdd06e55a57c456
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-12-23 10:41:02 -07:00
Luca Stefani ccb9bf10e5 klte-common: audio: Fix audio effect libs path
Change-Id: I8f50ea750405ae920ef5a74dda31ca5ac85e3af0
2017-12-22 22:31:11 -07:00
Paul Keith 46455aa5f8 klte-common: Use QC soundfx libs
* These work a lot better than the AOSP ones

Change-Id: Ifb2dbeaacd09329541aeb664a89d4827cf403d77
2017-10-28 01:04:29 +00:00
OzzysCmAcc 61460043ff klte-common: enable deep buffer
Change-Id: I9ae22cb55e64445a7fb4d630a661973de1bd31f0
2016-01-26 01:41:41 -08:00
Ethan Chen db9e6be8d4 Revert "klte-common: Use low latency as primary audio output"
This reverts commit a78f495221.

Change-Id: I516c8a6e315c2fd53675cc4cd070b1ab6a44a12e
2015-10-07 23:33:26 -07:00
ljzyal b9c3969533 klte-common: Add VOICE2 audio paths
Change-Id: I646185b9d2b366b9afcb616fefe9c5d269969629
2015-07-25 22:23:03 -07:00
Steve Kondik a78f495221 klte-common: Use low latency as primary audio output
* What Qualcomm was trying to fix was a real problem, it just created
  even more problems which are incredibly difficult to solve such as
  underruns and even broken apps (Loop reader, etc). Do it Google's
  way and forget it- it's a non-issue with offloading anyway.

Change-Id: I0e9194c85606745e801630e64e8e5d0c8b8dc022
2015-03-19 11:05:55 -07:00
Matt Filetto de1a3d8f06 klte-common: set correct output Khtz for A2DP output
Change-Id: I3a81c13a77deaeeacd120d059bd35b445f1d9cdb
2015-02-10 13:03:28 -08:00
Matt Filetto bbce071836 klte-common: Use 48KHz sampling rate for A2DP
Change-Id: I4d6a6d6e1243f0d53cc67fe81d8e2dff8567234e
2014-12-23 01:10:47 +00:00
Ethan Chen 2c1a62d7a0 klte-common: Remove deprecated audio_effects
Change-Id: Ie9a5eac2986aa564df492963c5e4e0fb4cd4b059
2014-12-20 23:34:14 -08:00
Ethan Chen 1c1b272d97 klte-common: Separate low latency output from primary
Change-Id: I1f2d2b64a97166550e49df0e14e8032b560a3c34
2014-11-23 01:03:55 -08:00
Matt Filetto 205da9350e klte-common: Increase gain for mixer path "vr-main-mic"
* Recordings with the Voice Recorder app were very low, increase to
  match that of stock mixer_paths.xml from T-Mobiles NH5 release.

Change-Id: Ia0d036e5c8bad00a8ae99e93b4ce8a60cddb34e1
2014-10-29 17:34:31 +00:00
Matt Filetto 9724495e3a klte-common: Increase camcorder microphone gain
Change-Id: I2450eb2363e2996bc427d870e308d7bcb9c4f752
2014-10-25 15:56:37 -07:00
Ethan Chen 6d3336807f klte-common: Update audio_platform_info for extended format
* XML for everyone!!

Change-Id: Ibf32c987d3360adfd5658befa91a1c5c166b43d4
2014-09-09 20:38:54 +00:00
Ethan Chen 72efe87d4d klte-common: Add more custom Samsung ACDB IDs
Change-Id: I66b49951b039f42d387ddfc5676323931199af64
2014-08-28 18:19:42 -07:00
Ethan Chen 13cab68efd klte-common: Add translation paths for Samsung mixer devices
* Samsung device names are custom and require a mapping.
* Do the mapping from the CM HAL expected paths to Samsung paths
  in mixer_paths instead of in code.

Change-Id: I399bdc53a7f098030859e91ec93038ea9378fb95
2014-08-28 01:05:23 -07:00
Ethan Chen ceae77c27b klte-common: Use audio_platform_info to remap ACDB IDs
Change-Id: I0ac85b8f0e81b15e3c9b404c3e26fda84062e6b5
2014-08-28 01:05:23 -07:00
Ethan Chen 5944dfd2f9 klte-common: Remove custom audio routing code
* There's a standard way to do this by configuration without linking a
  custom library for no real reason.

Change-Id: Iee7cebc1fad51b4a340e8a9fb0f7c10f6bd7b15b
2014-08-28 01:05:23 -07:00
Matt Filetto 01a7fbcf9e klte-common: Use original mixer_paths
* Samsung package version: G900FXXU1ANG2_G900FOXA1ANG3_BTU

Change-Id: I92c9b65b4fd92182e7ede7d18eabc7f6b31c5596
2014-08-28 01:05:08 -07:00
slayher 35f819e888 HLTE: Fix mappings for voice reg in headset case.
Credit to Christopher R. Palmer for the fix.

Change-Id: I48ee85095e07318464f654708d93c39a17831d36
2014-06-28 02:08:47 -05:00
Daniel Moran (garwynn) 3de6b49843 Revert "Misc fixes as passed to us"
(Need to get back to stable where dialer working)

This reverts commit 929d1854e9.
2014-06-04 11:50:42 -05:00
Daniel Moran (garwynn) 929d1854e9 Misc fixes as passed to us 2014-06-02 16:28:50 -05:00
Daniel Moran (garwynn) 935eb4512f Put audio back where it was. (missed a .conf) 2014-05-29 10:59:03 -05:00
Daniel Moran (garwynn) 99d61996d0 Put audio back where it was. 2014-05-29 10:03:51 -05:00
Daniel Moran (garwynn) 2a13c5e349 Revert test change to audio 2014-05-29 05:40:06 -05:00
Daniel Moran (garwynn) 36211e55b4 More blobs missing, audio start over at stock 2014-05-28 16:42:50 -05:00
Daniel Moran (garwynn) 72e859db79 Not ideal but call audio now works. 2014-05-14 14:44:21 -05:00
Daniel Moran (garwynn) 0a3081f5e7 Initial bringup (hlte base) 2014-04-16 23:22:27 -05:00