Commit Graph

40 Commits

Author SHA1 Message Date
Jason Vidal abb96a02e0 matisse-common: mixer_paths.xml - low-latency-record
Some apps request the low-latency Tx paths for voip.
eg. Skype on hlte is unable to use the mic as it's
asking for the low-latency-record path.
Adding in the low-latency paths solves this issue.

Change-Id: I0cf30ef334135045e471998b5f0d3ee9f1bfd4ac
2021-03-20 21:25:43 +01:00
matteo0026 e9cbc5821f matisse-common: cleanup mixer_paths
Delete some not existent controls and some duplicates
2021-03-20 17:35:14 +01:00
DJABhipHop d615668921 matisse-common: Clean up audio policy configuration
- Remove FM Tuner are devices don't have one.
- Remove deep_buffer.
2021-01-25 14:32:06 -05:00
Sujin Panicker f55f940490 matisse-common: configs: Add BT SCO to routes list
- Issue with returning a valid device descriptor
  since BT SCO is not defined in IOProfile.
- With Android-Q changes, first attempt to retrieve device
  descriptor from the avaiable HwModule may fail due to
  address and encoded format conditions.
- Further device descriptor query is based on IOProfile
  with devices defined in audio_policy_configuration.
- This change adds BT SCO to IOProfile.

Change-Id: I52225070e97dd702f965ca5dbb5db9d128df1faf
2021-01-14 17:57:07 +01:00
matteo0026 5e639b41de matisse-common: remove SND_DEVICE_IN_VOICE_REC_HEADSET_MIC alias
E platform_info: process_device_name: Device SND_DEVICE_IN_VOICE_REC_HEADSET_MIC in platform info xml not found, no alias set!
2020-09-11 00:38:53 +02:00
matteo0026 6ebaf3148e matisse-common: use the main mic for camcorder
Stereo mic doesn't work since we don't have 2 or more microphones.
In this way, we can record videos without any problem.
2020-09-11 00:17:09 +02:00
matteo0026 79df4fbfa5 matisse-common: invert left and right channel for speaker and jack
Before, they were inverted and audio pulled in right speaker was heard from the left and viceversa.
2020-09-02 22:19:31 +02:00
RomanDesigner 9093136f6c
matisse-common: Use XML audio policy 2020-01-17 15:54:23 +03:00
Kevin Rocard 8a68dc6084
matisse-common: Convert audio_effects.conf to audio_effects.xml
Bug: 37492580
Test: dumped the effectFactory state and check it was unchanged
      $ adb shell dumpsys media.audio_flinger | sed '/Clients:/q'

Signed-off-by: Kevin Rocard <krocard@google.com>
2020-01-17 15:53:03 +03:00
Francescodario Cuzzocrea 22e165c60d [SQUASH]: matisse-common: initial bringup of matisse-common repo from s3ve3g-common repo
Change-Id: Ic670ca01287332c46be39dc64b34cf17fcda559c
2020-01-03 10:27:33 +01:00
Francescodario Cuzzocrea 7d50f4fbfa [SQUASH]: s3ve3g-common: initial bringup of s3ve3g-common repo from klte-common base
* Rename klte-common -> s3ve3g-common
 * Drop fingerprint related blobs
 * Drop camera shim, we do not need it
 * Drop CameraWrapper to msm8226-common, as all msm8226 devices uses it
 * Drop broadcom NFC
 * Add buildable libpn547_fw.c, libpn547_fw_pku.c, libpn547_fw_platform.c dumped from stock S III Neo sources
 * Update audio configs with stock S III Neo ones
 * Update power_ext for S III Neo
 * Drop broadcom WIFI for Qualcomm WIFI as we got a Qualcomm WIFI chip
 * Drop broadcom bluetooth as we goot a Qualcomm bluetooth chip
 * Update partitions for S III Neo
 * Update rootdir for S III Neo
 * Update overlay for S III Neo
 * Update liblights path for S III Neo
 * Update deviceperms for S III Neo
 * Drop consumerir as we do not got an IR blaster
 * Update TWRP files for S III Neo
2019-10-11 09:07:33 +02:00
Cal Archer 36fb5d9d18 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
2018-10-17 10:55:19 +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