Commit graph

26 commits

Author SHA1 Message Date
Dhananjay Kumar
92fa602ce4
clover: configs: Remove surround recording support from audio policy config xml
Remove surround sound recording support from audio policy config xml
as its resulting in CTS failure due to mismatch in channel index support
for record usecase.
Change-Id: Idf50b3f2e71c4209720e79c0248ce74bc1a0edf2
2019-09-26 11:07:36 +02:00
Samyak Jain
28322472be
clover: config: Remove 2 instance support for "primary input"
As FM app no longer uses app loopback,
2 instances of "primary input" is not needed

Change-Id: I7d5e941e916bdf221798ca89360e4751d4af322b
2019-09-11 08:27:48 +02:00
Max Weffers
ca56485ac6
clover: audio: move device unrelated audio configs to common 2019-08-14 09:08:07 +02:00
notsyncing
21bdd7d329
clover: Use USB audio policy configuration from AOSP
* This can greatly improve audio quality when an external
   USB DAC is connected.
Change-Id: I4eeaadc9e3dd26fb54dbfa5a1acf3599b3e6b16b
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-07-22 09:12:05 +02:00
PIPIPIG233666
0a492a7055
clover: audio: Add misound lib to audio effects 2019-07-12 22:39:07 +02:00
LuK1337
c48c644336
clover: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-07-10 10:39:57 +02:00
Sujin Panicker
464708bf78
clover: audio: 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
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-06-24 18:44:31 +02:00
Max Weffers
e76471a499
clover: Remove Dolby formats by default.
The AC3, EAC3 formats are supported only when
license and respective decoders are present.
Having these entries in policy configuration
by default will unnecessarily trigger
open_output_stream and then fail when
decoders are not present. This results in
glitches at the begining of playback of video
clips with AC3 or EAC3 audio contents.

Removed these entries to make the video playbck
smooth with out any glitches.

CRs-Fixed: 2428579
Change-Id: I41b7ef9d8e2c5f77c261067337f602d705e11c35
Signed-off-by: Dusan Uveric <dusan.uveric9@gmail.com>
2019-06-02 07:43:54 +02:00
Lakshman Chaluvaraju
f5ec843089
clover: Add support for suspend mixer ctls
Add support for mixer controls to enable suspend/resume
for low latency sessions. These mixer controls are used
to remove the QOS vote in ALSA core

Change-Id: I77505de2c9e859f1cf75360789e480975a96a6a3
Signed-off-by: Dusan Uveric <dusan.uveric9@gmail.com>
2019-05-19 10:10:19 +02:00
Max Weffers
ce61106b66
clover: audio: remove dynamic processing
*fixes audio sound quality
2019-02-11 10:20:15 +01:00
Henrique Silva
88a8e7e047
clover: Add Initial support for dirac 2019-02-05 09:45:59 +01:00
Max Weffers
8e41df59bf
clover: audio: Remove support for MMAP IRQ mode streams
Change-Id: I8d70e2294e9a8c1ad52e7f1c24b13307be064210
2019-01-15 17:02:17 +01:00
Max Weffers
a6d447430c
clover: audio: fix include of usb audio config 2018-12-15 09:07:04 +01:00
Max Weffers
d0e1a73c13
Revert "clover: Use voice speaker ACDB id for speaker"
This reverts commit 7c657543be.
2018-12-09 10:31:23 +01:00
Max Weffers
43dbacc9d7
clover: audio: remove double defined bta2dp configs and use aosp configs for it 2018-12-09 10:31:06 +01:00
Preetam Singh Ranawat
d7231b5c8a
clover: remove default sampling rate and channel entries for bt a2dp
-Remove default setting of sampling rate to 48K and stereo channel
  for bt a2dp as support for multiple sampling rates and channels
  over a2dp is added and being set from hal.

Change-Id: I8a40182af0d97b31b136a1928cbbe6f728eb950f
2018-12-03 12:38:05 +01:00
Vatsal Bucha
9cca15f526
clover: Update mixer paths for sdm660 internal codec
Internal codec has a direct connection between
ADC1 and AMIC1. Add a switch to prevent default
powering up of AMIC1.

CRs-Fixed: 2058182
Change-Id: If00b3d239655d2ecc77654ab379bbc0bd57e5b0d
2018-12-03 12:36:38 +01:00
Ramjee Singh
66327a222f
clover: separate BT sample rate Rx and Tx backend config
Independent configuration of Rx and Tx backend sample rates
for BT usecases.

Change-Id: Ic2437531dad1e53e866100c4022e4667103f4c92
2018-12-03 12:34:26 +01:00
Md Mansoor Ahmed
786671b446
clover: config: Update keep_alive to support silence playback on
non-hdmi devices

Keep_alive can now handle silence playback on multiple concurrent
devices such as primary output devices as well as HDMI

Change-Id: Icdf22c9d8d1264d463b23c8f54020e792840b73c
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-12-03 12:33:16 +01:00
Ramjee Singh
110a84110e
clover: audio: Add microphone characteristics and snd device mapping
Populate microphone characteristics for supported microphones on
platform. Map input sound devices to specific microphone ids.

Change-Id: I9aab6ef04bb941533261740723ffcf78645d3e1e
2018-12-03 12:32:19 +01:00
Samyak Jain
377f56bc4f
clover: Support 2 instances of "primary input"
No Audio heard in FM Speaker when FM record and FM speaker are on simultaneously

With default values for maxActiveCount and maxOpenCount,
FM app is unable to record and play FM audio on speaker simultaneously
since it uses application loop back(AudioRecord->AudioTrack)
to route FM audio to non-default devices(Speaker)

Add attributes maxActiveCount="2" and maxOpenCount="2" to mixPort "primary input"

CRs-fixed: 2249758
Change-Id: I82a1cb0d5596486d531d5324b91f932f52b07f9e
2018-12-03 12:31:02 +01:00
dianlujitao
44e7bfeaca
clover: Disable audio ULL mode
* This generates corrupted sound, and is disabled on stock as well.

Change-Id: I9cd1d63fbd1f55a034944f419ae42121bae9c51d
2018-11-26 11:48:29 +01:00
dianlujitao
7c657543be
clover: Use voice speaker ACDB id for speaker
* Speaker isn't properly calibrated with ACDB from O-based MIUI (while
   it was on N), pop is heard when disabling speaker.
 * MIUI has speaker protection enabled, hence this route isn't even
   used by Xiaomi. However, with speaker protection enabled on Lineage,
   the volume curve became very strange, maybe Xiaomi uses Dirac audio
   effect to address this issue on MIUI, but it's not supported on AOSP.
 * Fortunately voice speaker seems to be properly calibrated, so apply
   that route to fix the issue.
 * Voice speaker gain in ACDB seems to be lower than speaker, so
   slightly increase gain in mixer paths to make it sound like a "normal"
   speaker.

Change-Id: Ic674973933595db0ae797a7fa767539a321664ff
2018-11-26 11:48:29 +01:00
Lakshman Chaluvaraju
761d7ac356
clover: audio: Add dynamics processing support
(cherry-picked from c57b29cc104a7f4f1250cf67ce739795f6c2ecaf)

Change-Id: If22b1f2151cec52fa17cad7eecb981c3a591dc2e
2018-10-19 11:53:53 +02:00
Max Weffers
0ba689a6f2
clover: audio: Update audio configs from MIUI 8.9.20 2018-10-18 17:00:04 +02:00
GuaiYiHu
038548508d
clover: audio: Import Audio Configuration from MIUI 8.8.23 2018-09-27 12:08:59 +02:00