Add delay if the regmap of wsa slave is not registered
to avoid Null pointer dereference.
Change-Id: Ic3e5d1cc7c3fc33f4f4c480708cd562b73c1a04b
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
Add enum names defined for callback between wcd and bolero in
separate file and include that file in order to have same enum
across wcd and bolero.
Change-Id: I808c2ad3de37655c1ba2b8e096def60703ced7f2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
When switching TX_CLK to VA_CLK, there could be some
IRQ missing with current design. Switch the clk in bolero
to avoid the corner case.
Change-Id: Iec5cac16e026e4e46646894c546f1acb3fce4fa8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
During bootup and headset inserted, headset may first
detect as GND_MIC swap type and not report. During three
seconds polling, it's corrected as headset or headphone.
When wrk_complete is false, it will not report to userspace.
When current_plug is MBHC_PLUG_TYPE_NONE, report headset or
headphone to userspace.
Change-Id: I63394f1704c34cf355f0f4b0c33959332a69a639
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Update Kbuild and header files in msm_audio_ion_vm.c
and apr_vm.c for kernel 5.4 gvm audio bring up.
Change-Id: I6bcd0e49f783aaec43a64ad308b817a474b30dc7
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
This reverts commit 68cbba47d0 as this
causes AMIC SVA issue.
Change-Id: I0e66c97dfc9499c30942ce2e3a123be58833eac8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
LV Platform use the same ARCH cause Kbuild mismatch issue
Change-Id: I803aeb3bbee45566b1f9e66b4a6c8b8c26ba86f3
Signed-off-by: Fei Tong <ftong@codeaurora.org>
For get version info of bolero, update
bolero 2.0 entry.
Change-Id: I8f21b67eb6532c9b1c1ef6ab15015a29a4737db3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Configure low PA Gain for low state of charge based on dt node.
Change-Id: I7f36cf4b17d9794a2763edc3c2fd5cec53a3521f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
As ADC and MIXER dapm widgets powerup sequence in soc-dapm
got re-ordered, need update same in codec driver to handle
calls to soundwire.
Change-Id: Ibc99d21e29f9e9d7195b4ba8d4c995c46d6aef6f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Call impedance detection routine as part of callback to get impedance
before printing value of impedance.
Change-Id: I8b7174e4f7fd9c7715a2c12a0628c8f7849a93e6
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>
Updating WSA883X_OVERRIDE2 default value to 0x02 breaks
speaker protection. Revert the default value update.
Change-Id: I064157a718d87b2903c10dc78e0ce99ce400b6d8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Update the soundwire clock rate based on the number of TX paths enable
to avoid noise issue.
Change-Id: I8c73bfd73751d4b79de30f3347081929501a877e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Update SWR clock rate based on active ADC modes
for concurrency during powerup and teardown.
Change-Id: I610aa205a857a5fac2163a248de4800f3c8042f7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Impedance values are not correct sometimes due to ramp
being controlled by hw. Run detection routine for sometime
and take final value as impedance value to resolve issue.
Change-Id: I3a34813657751aa304e150cfa294a42f556d06c4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add a function in wsa883x which returns the sound wire
device number for a given wsa883x codec slave instance.
Change-Id: Ie3d0e309870f488b1643a853bcddcf93314d94b5
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Fix for reading wsa881x name prefix from dtsi
and update in proper structure.
Change-Id: If80e9c26192e7918204c36849ca5cc19875e7084
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
Add support for external mclk configuration based on input sample clock.
Change-Id: I90b40636e6c3877c5ab9d2c2a60c4d61a83b149e
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
Allow regcache sync during clock enable to make sure the registers
are in proper state before the usecase.
Change-Id: I8a9214e460c7f77759d1956e0e7e2d6b2f5b3d3a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
WCD937x codec requires clear registers to be written '1' and
'0' for clearing interrupts. Enable clear_ack flag in regmap
irq chip structure for wcd937x.
Change-Id: I0a2e4fc85fe6dca75885b5300840669afeabc80c
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>