Update swr_tx slave port config to use slave provided port params
and remove slave port static tables.
Change-Id: Icfedf1229a88432e80c2294e13f2ccc3949417c5
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Update compander settings table to calculate based on
upper gain and lower gain.
Change-Id: Ib423f3c14c900c0df03bc8fcab2df0f62fb614f1
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add Makefile in each sub-folder
Add Android.mk file on top level folder of audio-kernel
Change-Id: I024aa5080ae52b55700f0a65ab05034be8c9cdad
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
VA AMIC requires micbias to be enabled in pullup
mode. Pullup mode for micbias is required for SVA usecase.
Change-Id: Ied71147bc813cee2ad95b0c8b342788b9c0ba10b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
To differentiate ko names from older folder, prefix
lpass-cdc to macro dlkms.
Change-Id: I5d977c3aa4ff66b66a62c1294f45e0cc84dd4c38
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add support for new audio clocks for audio playback and capture.
Change-Id: I9c07700a8060717fa9213b8536efb5780c9936bb
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Add support for thermal cooling device in wsa macro to
set and reset the codec attenuation in 0C use cases.
Change-Id: Id00a3cd5666da906588a75961552ea07e24e1434
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Update the codec clock sequence as per the hardware recommendation
to enable the codec clockes on the latest codec version.
Change-Id: I1869d2b28c9aa79979f1aa3c85ca805cea3ef33b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Update codec clock configurations to support different codec clocks.
Change-Id: I0ec41a337dbe955da6d93c3f2c31f381aea123eb
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
On lpass-cdc 2.5 support unified compander. Update macros
to align to this feature.
Change-Id: Id444116511db48e8f20948ed7fc4af4fca87b8e4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Update lpass-cdc version 2p5 registers update and remove old
version tables.
Change-Id: I14e0efe09e3ff5ded49b91e2e226558ae444bc0f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add driver support to enable lpass digital codec for
audio playback and capture usecases.
Change-Id: I3d31d31f340db79334700e8fd495f40479e0ec6c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Update codec clock sequence to clear Fs counter to avoid
unexpected behavior during bootup.
Change-Id: I78da6dadd26989cf1f39f71b941a209c2af4cef2
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Update clk_div setting for low power decimations based on
decimation rate instead of lpi flag.
Change-Id: I6e445618af4bf159f3d88a7bc5d07a403a06c1ab
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
hw_refine failing for clips of sample rate
384000 as codec is configured to support 192000
sample rate as max. Due to this playback is not
happpening over headphones.
Change the max to 384000.
Change-Id: I2f9cad3bc708f3e4cc8cd38eb2ef2a98ec640f57
Move the enable and disable of wakeup capability of
swr_tx gpios to clock setup to disable or enable it
in all required usecases.
Change-Id: I9fb76926d8520c382e7f19777190357c50f98994
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
On bolero 2.1, SVA switch is not retain at VA_CLK
when switch between handset and headset mic sva.
Update the clock release logic during swr power event.
Change-Id: I62b492dcbff4b4f3249d1a6b3b792690b5b5c27c
Signed-off-by: Meng Wang <mengw@codeaurora.org>
add semaphore initialize for the notifier before the blocking
notifier.
Change-Id: I20a919215fdc0da1830368070063fbe2b8fc5f62
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
Add ratelimit to supress the logs flooding at the
time of SSR.In all places defined ratelimit as,
in 1sec one debug msg prints.
Change-Id: I6dfe140848e5cecb1b311c432f8311cdf0615a58
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
Trigger SSR during headset recording may cause recording
mute after SSR. Before dev_up is set to true, micbias
enablement for headset detection will return error and micbias
enabled for recording return true. After headset is done,
micbias is disabled. Move 500ms after dev_up to the end to
resolve this issue.
Change-Id: I7b9e094321997d64c96cf0e86a4f447d97b5fdb6
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Add null check for wcd938x component and wcd938x_priv
before use.
Add array bounds check for slave channel index before
accessing the array.
Change-Id: Ida6b2044f5f9b9a65f4b45d868040af8bd2116eb
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Do not register afe event listener for shima and make
tx swr gpio as wakeup capable.
Change-Id: I4d805c2b65e6c424c1c215431caa75f6181a16e8
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
When same swr dmic is first enabled as HIFI, secondly as LP
and closed HIFI, it would disable LP port by mistake. Update
the logic to select correct port for swr-dmic.
Change-Id: I5d4d1461d8cd7db7bc7f37fc91ee1c9324413980
Signed-off-by: Meng Wang <mengw@codeaurora.org>