As of now swr slave path disable only
when no usecase running, that is incorrect.
When stop the usecase itself disable the swr slave path and
set the clk for inactive bank.
Change-Id: I35bc693dc65028ba8ad04f59d47a1101c7bb470c
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Curr_micbias2 val should be same with mb->micba2_mv.
for some customers, their micbias is not 1800mv,
so we should set the curr_micbias as mb->micb2_mv which
was the actual micbias val the customer use.
remove the dev_up check from micbias, since with this check,
Headset may be detected as a incorrect type.
Change-Id: Ia5a1fd434a09617a57096531c69956479c69f079
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
cls-h port enablement is not required for aux path, So removed
the cls-h route.
Change-Id: If0d498ff042b59df920fe51ca99715da543876b8
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
(cherry picked from commit cf87e20cb2)
if there is any tx usecase running, reset tx swr
clk will make all the tx sequencer power off,
so check sys_usage_status first before reset
tx_swr clk
dont need set swr clk for inactive bank.
Change-Id: I21362885c84e6ce4afbbfd18a48191f53f8ccc6b
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Enable Low Power Mode for the power supplies while
going to suspend mode on wsa883x and wcd9378.
Change-Id: I133c1b791bcd8b53cf79650d7347d5889da29491
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
when we enable compander for headphones, the quality
of hph playback is bad, since we have not disconnect
the right port, correct it.
Change-Id: I63ab0734870027109a7f032c47f8865083374a5b
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
when amic4 recording start, sys_usage_bit get failed,
since the mask of read val is incorrect.
Change-Id: I4c6bdaf6cafdd133e272bcacfd2faea5f176f9ab
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Optimize the init sequence for tambora, enable TXSCBIAS_CLK
and set IBIAS_LDO_DRIVER as 5ua.
Change-Id: I639b7051d03d167972f592b155072260d4e02aec
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Update the hph/ear/aux playback sequence, disable the reg
which should be disable.
Change-Id: Ib1353e686a49222f5084722cced7687815f76ab2
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Tear down the correct REQ_PS when widget power down,
that can fix the amic3 mute after ssr issue.
Change-Id: I7b5c958e79eb23184bd11375bae11dbcd51e961a
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Update the micbias enable logic for tambora,
and add some widgets to switch between amic and
va amic.
Change-Id: I2c9a7658d79a7c9d255884df7b81aa8062185d72
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Remove test reg configuration from init_reg func to
avoid pop noise in hph playback with comp enable.
Change-Id: I7c49d224e92c28cfdd2e971095ac5e6fa6db14c9
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
To enable datapath control for both HPH_L and HPH_R in
HPH sequencer. Which is used to fix the single channel
mute issues.
Change-Id: I1d9fb22255a2895fc2543ef5c3de02f0bdb9999d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Move scp1_val and scp2_val into swr_device struct and
reset this two value after ssr.
Change-Id: I549f7438f034a2de0e556bd749594fbe5db2a21e
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Clk vote is present after teardown the usecase. which
is impacting the power, in SND_PMD call swr disconnect
to avoid clk votes.
Change-Id: I94d1ab9dc19a62132033a5715d4212dbcb7d2b0b
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Defer the probe when the msm cdc pinctrl driver is not prode.
Change-Id: I3ace42632601a8ef010363f23534471e99c0f827
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Optimize the power down logic of hph playback widget.
Change-Id: Ic6d085e70cb36cdc99bcbceddbce3aff2bc54ad6
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Remove swr clk set from analog side.
Optimize the debug log.
Change-Id: I8c3a946f1c64fd5d71fd5151c4c464d370b4ae8c
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
Optimize the micbias usage set logic in tambora driver.
Change-Id: I77224f66f12e129f00708a531c1aab137aee7000
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>