Fix for reading wsa881x name prefix from dtsi
and update in proper structure.
Change-Id: If80e9c26192e7918204c36849ca5cc19875e7084
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
On some lahaina devices, wcd codec is disabled and it would cause
issue when trying to use wcd widgets. Add flag to indicate if wcd
is disabled
Change-Id: Id19d0bd83728b10b457767f7d43cba8dac916772
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Update register sequence of WSA883x codec to reduce CnP
during bringup and teardown of speaker path.
Change-Id: I348a55e1324b5c26a36b8d7c78edf52a66e40381
Signed-off-by: Sudheer Papothi <spapothi@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>
Add disable flag for WCD.
Update DAI link for WSA.
Change-Id: I6d4f3375ec1c1a650338feed67d41d616e5375e7
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 port params for shima and include them
based on sndcard.
Change-Id: I1f71d6db3df5b7d3cf91b0052fdaac51b8bf21d9
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>
Sometimes during device switch in recording,
observe size 0 is return from DSP due to EOS
handling. For ALSA pcm_read to unblock, buffer
appl_ptr is elapsed without actually updating
the buffer. And userspace copies the stale
data(old buffer) causing issue sometimes.
Reset the buffer for that period_size in
such cases instead of transfer stale data.
Change-Id: I0d3ac133a8d95fad0710586e3e947410a41c9c5a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Ignore suspend for wsa widgets has been taken care in wsa driver.
Remove unnecessary ignore suspend in machine driver.
Change-Id: I2e6edc19befd3d3e4fd500b2e6b84e07cd3bd729
Signed-off-by: Meng Wang <mengw@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>
Add support to use dynamic tdm slots.
The max number of tdm slots is defined in device tree
and tdm configuration is dynamically assigned based on
tdm max slots.
CRs-Fixed: 2553156
Change-Id: If444da44e02e6cbcbb4ea1e2396627745bd1e982
Signed-off-by: Vatsal Bucha <vbucha@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>