As per the current design in afe, if the
afe_get_cal_topology for AFE_TOPOLOGY_CAL
or send_afe_cal_type for AFE_COMMON_TX_CAL
fails, then the voice UI calblock is fetched/sent.
This is resulting in sending voice UI calblock
on a non voice UI port during concurrent usecase scenario.
Fix is to check if the calblock for get/set is for
a voice UI port or not. Added support to send this
port id info from routing driver to afe when usecase
is enabled via mixer_control.
Change-Id: I356aae61e1b9d11324e7b9f9a57953767a64b71e
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
Added kcontrol to write clock drift to ASRC module in ADSP. There
are two options:
1. read drift from an active AFE port, and write to target ASRC module.
The read-and-write process will loop automatically with configurable
delay. (50 ms by default)
2. write drift value to target ASRC module for one time operation.
Change-Id: I2df7ed646d53612aca96074c0ca3d44a404cebf4
Signed-off-by: Han Lu <hanlu@codeaurora.org>
SSR notification may not come to swr master control
in time and cause swrm_runtime_resume tries to access
SWR registers. Update the logic to return when requesting
hw vote fails.
Change-Id: Ia85e9ce540ff88d16e8e73c48bab26fb277b86bb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
In bolero-cdc and tx, va, wsa and rx macros, move schedule_work call to
add the child devices to the point later to where the parent
initialization gets completed.
Change-Id: Iaa07329a25020dde21d9249c3848bb7fcf7d816a
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
- Channel swap with current channel map
- changes to adm channel map matching to asm channel map.
Change-Id: I1bcd15b091895f689314b7aae4644268f99e797a
Signed-off-by: Gangadhar S <gangadha@codeaurora.org>
Next track gapless mode requires stream state of running. Set
stream state to running after partial buffer, EOS and zero buffer.
Change-Id: I61e55989305cd495a9a03306ccecdd62b4f7504f
Signed-off-by: xsang <xsang@codeaurora.org>
* Add AFE playback backend with port 0x2002
* Add proxy capture frontend to read data from port 0x2002
* Modify AFE platform and DSP drivers to support dual proxy usecase
Change-Id: I35e33e5e922fb3092cffcc065fb514268c16cc17
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Swr-slv address is overwritten during wsa881x_swr_probe,
hence soundwire getting incorrect slave address. While
accessing swr master from swr slave due to incorrect
address device crashed.
To avoid the issue align the debugfs similar to wsa883x codec.
Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
Remove AUXPCM be dailinks when auxpcm is disabled to reduce
audio error log during bootup.
Change-Id: Idbf9a1d934714514a5c6bdf2254a2130a93e49f8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Haptics module is supplied by HBoost regulator by default, it requests
voltage to HBoost regulator through hardware channel. Haptics module
can also be configured to use other regulator device, in this case, it
requires software to request the voltage from the regulator before
enabling the play. Add support for this.
Change-Id: I4a8305ff2732a92bc8be90bd3ed197fa643a101e
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
unmap memory before hyp unassign during adm close
for handset/speaker FNN usecase.
Change-Id: I1d4d335c5179e42af4dcf7cf8e82e48669b32830
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
fix the compilation failure due to punctuation error for sa6155
Change-Id: If6209008ccbdc17ba34e4a598eca869747eed3d5
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
For bolero 2.0, amic can connect on any SWR input.
Update logic to check amic usecase.
Change-Id: Ia6b808a1cad681906732408d271e953dde6eff6f
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Disable brown out protection (bop) attenuation levels 1,2 and 3
which causes fast and coarse transitions in gain during voltage drop.
This creates "pop" noise during the drop. Since battery current
limiting (bcl) feature is enabled with CPS, bop is redundant and
can be disabled.
Change-Id: I51617333203ba14784e2338d91a96082c55e1331
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
PA_ERR can happen during speaker path setup. Log the
error status in the interrupt handler and clear the error
status for next audio playback to resume properly on
the speaker.
Change-Id: I5800d9505a3036127097745aaa880b73b3e87f30
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
During SSR up event handler, if soundwire state is
already up or auto suspend jiffies is not completed,
ensure put in suspend/SSR state.
Change-Id: I853f42d125eb5a60e3f1f065a60516877e3a463c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
LV Platform use the same LVGVM cause Kbuild mismatch issue
Change-Id: Iad092ebcbd991e52daedb87406920055528e3a1c
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
Reset this_afe.clk_state and this_afe.clk_status when adsp
ssr happens to release the mutex_lock held by audio driver.
Change-Id: Ib5b679badb86cfd5cd1549fcfe8cd1ce3886cf82
Signed-off-by: Meng Wang <mengw@codeaurora.org>