-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
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
* 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