Add support for external mclk configuration based on input sample clock.
Change-Id: I90b40636e6c3877c5ab9d2c2a60c4d61a83b149e
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
With multicodec approach, codec widgets are added much earlier during sound
card registration than aux codec approach. The connections between bolero and wcd938x
are done via device tree at a later point. DAPM does power checkup for codec widgets
before the codec-codec path is connected. This results in wcd937x dapm inputs/output
to be considered as endpoints, which results in playback/record failure once after
bootup. Hence, add dummy output/input widgets to wcd937x dapm inputs/output which are not
codec endpoints.
Change-Id: I8589f9a33261531eaad74e8f12ef1825fa90a014
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
swr_slvdev_datapath_control should be called after
wcd938x_tx_connect_port to cleanup disconnected ports.
Change-Id: I53e6e9140ed0be5a0a0704358e3e7f600ab62863
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Check if component prefix is set before use.
Add component prefix for dai widgets before calling
ignore suspend.
Change-Id: Ifa0c727bf46af661cd19b6018bfc25af9a7e3753
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
During bootup, hdmi mixer control get functions are called
multiple times and if there is no active hdmi/dp connection,
multiple non-fatal errors messages are logged. These non-fatal
errors messages are triaged as fatal, to avoid this scenario
rate limit the error message.
Change-Id: Ie31382d1758fe3907597adda1eb78aae596a24c4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Rouleur has different hph settings for different foundry
id. Read foundry id and update hph settings so as to
provide same settings to end user.
Change-Id: I114047226462ab95e0c93271c3d6099f15af2343
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
add machine driver for holi.
compile wsa881x analog driver for holi.
compile wcd937x and wcd938x drivers for holi.
Change-Id: Icba23cc4b1dd40f7dec6f16bb67a6fae26317f80
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
Register to power supply framework to get soc capacity.
Reduce ear and hph gain for reduced voltage to optimize
power consumption. Also set LD22 voltage to lower value
for low SoC.
Change-Id: I94de9341b8c7307128d3cd41c7398c31d57fa685
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add dapm ignore suspend for playback DAIs to avoid
widget down during suspend.
Change-Id: I64347f9cb9d425096c5710e802805388adecd68f
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Add LPI mode support for VoLTE usecase to register
soundwire inband interrupts during LPI mode.
Change-Id: Id955f211587fac1c2608dcb753f62b0b1f9b60cc
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Remove disable regulator during system suspend to avoid soundwire
interrupt during system suspend. This change will ensure that
device enter into power collapse during VoLTE usecase in LPI mode.
Change-Id: Ie15d28de9720b83f93ea1a85258b24faadad0db3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
As shima has hw conn to get inband interrupt while lpi enabled,
there is no need to register for event listener via afe.
Skip register for event listener for shima.
Change-Id: Ib15ae005a6920d0b2a584a86e896880bda21052e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Update the EAR and LO power up and down sequences to
fix CnP issues in rouleur codec.
Change-Id: I7e6d1cc82e9c1358b336c32b1befb7eb1dd9b552
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Disable rx swr gpio as wakeup capable to avoid waking up system
during power collapse.
Change-Id: Idd76f8304e61b97e53ca82e407bedbdc9b0f5a7f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Make dev_up true before giving 500 ms delay in case of AATC
variant during BOLERO_WCD_EVT_SSR_UP event.
Change-Id: Ie8306c92a80df69f087f055d425b22f48f319873
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
Update PDM_WD bit only at startup and teardown of
speaker playback.
Change-Id: If385c0f4d99b7f5aa4ccd8b1ee94c4afa6754518
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
In ADIE loopback, need PA enable to
avoid mute. Ensure PA enable post slave
path setup and FS clock.
Change-Id: I4df9d7b919325b50f237f31338859e1b5b34b2eb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
As va-macro has fs_clk gen, ensure va-macro
is registered before other macros.
Change-Id: I8283dc11817caf0c208fe231132951a7a79b7d51
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add notification from wcd938x to sound wire dmics
during SSR. Remove device down from dev ops to avoid
deadlock scenarios.
Change-Id: Ifdcbebb748c10deb89ad51ada1a8ce1cf33f2462
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Aux cable is detected as unsupported sometimes due to it being
detected as cross conn. Increase hph cross conn threshold to 350mV
so that it detects fine.
Change-Id: I87e4bd36f80d7cd62e06c76acf9c9d06bb6f148a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Glitch is observed during amic record due to improper
sequence being followed. Reduce delay between toggle
of hpf gate to depending on sample rate to resolve glitch.
Change-Id: I8d9810dbc00264662f24532be9338198e6d7316d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Remove cancel_delayed_work_sync in swr_down,to avoid race condition
between skr_pa_event POST_PMD and swr_down.we are taking care of
schedule_delayed_work and cancel_delayed_work_sync in PMU and PMD.
Change-Id: I4f43ffc354ec930dabd7c4a8b2382f6064a24653
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>