- Modify the setting of gain initial value, set it according to
temperature and voltage, and modify the setting of volume when
fade in.
- Problems solved:
When the battery power is high and low-temperature and
low-pressure protection is not triggered, the initial GAIN will
be set to -6dB. After the low-temperature and low-pressure trigger,
the sound will become louder.
Change-Id: Ib3f4eddd3117f148d1b3e1242c36621882346574
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1758919
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Current logic copies user buf size of data
from the avail dsp buf at a given offset.
If this offset returned from DSP in READ_DONE event
goes out of bounds or is corrupted, then it can lead to
out of bounds DSP buffer access, resulting in memory fault.
Fix is to add check for this buf offset, if it is within
the buf size range.
Change-Id: I7753cc6db394704dbb959477150141d42b836bef
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
When headset insert, calculate impedance for multiple times
and stop calculating if the result is within the threshold.
Modify register write sequence as per rouleur software sequence.
Change-Id: Id035304963d0822f758d7a527a712aca500a8a78
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
Observed pop noise during impedance discharge after
headset/headphone plugged in.
Adding 40ms delay while discharge to complete ramp down properly.
Change-Id: I7eb4ba3423660454990722579b7c7b57156c8067
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
Equality operator was used instead of assignment.
Updated the same.
Change-Id: I6f49dc8801669ae1734b9b3f31b57a6a8dfdfbde
Signed-off-by: Vaibhav Raut <quic_vraut@quicinc.com>
FIFO_Flush should only be for SWRM_INTERRUPT_STATUS_CMD_ERROR.
For other usecase, it should not be flushed otherwise it would
cause register write mismatch and cause some sideeffect.
Change-Id: I3316f0fefa10b58ceabd57990db0782e0654a580
Add entry in snd_soc_dapm_route array for hfp client rx mixer
control path.
Add entry in iwsa_cdc_rx_0_port_mixer_controls for
slimbus7 interface
Change-Id: I782cfbc56344fec9454a8317fbab828cab0e6fde
-> If enumeration is changed runtime, dev_num gets changed
-> so it might result in different dev_num for same device
-> between swrm_connect_port and swr_disconnect_port while powering
up and down of widget
-> This results in not emptying the port_req list, hence swrm not
going to suspend state
-> This results into adsp not going to sleep state
Change-Id: I80326a35f0cac7f7be30cbbee119a8ba247a0f76
update runtime total bytes transferred and received
in compress driver.
Change-Id: I1bd129e18681fcf10a27efaa061594081114c1fb
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
When SSR happens, set substream state to SNDRV_PCM_STATE_DISCONNECTED
to avoid userspace keeping waiting for substream state and causing
deadlock.
Change-Id: Iaa4d76101204652742c55d13da5c770c418a16bc
Signed-off-by: Meng Wang <mengw@codeaurora.org>
In normal cases audio hal will sent proper ACDB and APP type values
but in some cases if app type becomes zero.Assign default topology
when app_type is zero.
Change-Id: Id588308650f823f7d94ffb1fd2d7656d4bcf9cb2
Signed-off-by: Arungopal Kondaveeti <quic_kondavee@quicinc.com>
Since dp driver load faster than audio driver,
Dp driver can't get ext codec ops, we need to notify
Dp driver after audio disp codec driver probe.
Change-Id: I159faefad06e04a1727c71240c7cf90d48522504
Auto suspend timer for core vote is triggering before read write complete.
Move the auto suspend of core vote to post read write operation.
Change-Id: Ib0f6b026fe0e7fd3fbe052691db492915e436a78
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
Add WSA VI sense macro to support VI sense capture.
Change-Id: I704aa6fbcb3908c0b76c82c941818b64e1d4598b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
EAR PA short switch is not released after
PA is turned on and off.
Address this hardware issue by updating the
EAR PA CnP FSM while EAR power down sequence.
Change-Id: If4269c30c13572db1b252f223368d444b9250901
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
Enable component after enabling interrupt to avoid missing
some intterupt during master init.
Change-Id: I0f60c5431a815c58f878d3b9275a046e47939111
Signed-off-by: Meng Wang <mengw@codeaurora.org>
EAR PA short switch is not released after
PA is turned on and off.
Address this hardware issue by updating the
EAR PA CnP FSM while EAR power down sequence.
Change-Id: If4269c30c13572db1b252f223368d444b9250901
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
Enable interrupt request only when the interrupt is
in disabled state.
Change-Id: I67795bf0ee344661e02b0fec3181cd7980d56652
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>