Commit graph

14 commits

Author SHA1 Message Date
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