Commit Graph

11 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
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
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 1c1b272d97 klte-common: Separate low latency output from primary
Change-Id: I1f2d2b64a97166550e49df0e14e8032b560a3c34
2014-11-23 01:03:55 -08: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) 36211e55b4 More blobs missing, audio start over at stock 2014-05-28 16:42:50 -05:00
Daniel Moran (garwynn) 0a3081f5e7 Initial bringup (hlte base) 2014-04-16 23:22:27 -05:00