AFE Tx loopback is used to capture playback data from Rx port
and use it for echo reference. Add controls to configure
capture backend channels, sample rate and format.
Change-Id: I68bd89461f3f37870a6d946fb03fe4124ee2fa6f
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
AFE TX loopback is used to capture playback data from RX port
and use it for echo reference. Add new control to configure
Rx port to read data from in this case. Existing control was
re-using EC Ref rx port control and can lead to far end
configuration in undesired cases. Extend existing
MultiMedia1 Output Channel control to support 10channels.
Change-Id: I98f11d315e97d761ac2c8f8bf3ef387568c85082
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Add support for virtualized ION frontend driver for audio.
Virtualized ION driver currently is designed to extract
physical memory through hypervisor abstracted ion layer,
which can be shared between APPS and ADSP directly.
Change-Id: I3c664ec3c3a99ce092da6ee103a3b2de4073664f
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
Add support for virtualized APR frontend driver for audio.
Virtualized APR frontend driver resides in guest VM and
supports all legacy APR APIs. It will rely on MSM_HAB
to communicate with APR backend driver, which resides in
physical VM, where legacy SMD is utilized for communication
between APPS and ADSP.
Change-Id: I1df70a76defec17a45db93f3707c35e4fa796bc0
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
Add include and source paths to support compilation
of audio drivers into kernel image on Kona.
Change-Id: I41b5ef7e5d20d517193e8295a61035a28692cb32
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Reset the compander power mode register to default
value upon teardown sequence, so that at next startup
use case it has proper power value.
Change-Id: I851e8a62a910d7018ac74e93abee47a615b3e50c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Add ignore suspend for digital mic4 and digital mic5 to avoid suspend
during system suspend.
Change-Id: I13d70510e56835867ee7a56a6af9bf223a64b751
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
A new module called DAM is introduced to achieve common shared
memory for SVA use cases in LPI. Add new mixer control interface
to provide support for STHAL to configure the data that LSM gets
from AFE to be either processed or unprocessed.
Change-Id: I8556413257c6a2aee4739bcd89ffd130805af0c5
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Extend the encoder configuration to support aptx
adaptive R2.
Change-Id: I17d7adb62539d9f59222fd0c992424ba98395383
Signed-off-by: Zhou Song <zhous@codeaurora.org>
Invalid memory access happens in wcd937x_suspend if
component bind for slave fails. This is because
as part of component_unbind devres_release_group is called
which removes every node from list and frees corresponding memory.
This results in invalid memory access for wcd937x in wcd937x_suspend.
Do kfree and set drvdata to NULL if component_bind fails
to resolve the issue.
Change-Id: Ia26eb36fe8b92ac0491b03d0d4a2b8def415148b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Fix issue in clock sequence when switching between VA clock to
TX clock and viceversa during VA usecase.
Change-Id: I4a7d423916b70b4b3c54d0d9a28b8ea874584525
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Lito uses pinctrl_lpi. Do not compile pinctrl_wcd for lito.
Change-Id: I4befdc65769b592f0244556db64785b64b885223
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add asm channel map support for 10channels to support
10channel recording usecase.
Change-Id: Ic939eabed893e9e56b17e62bc5100f2d6d51732f
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Initialize started flag in open instead of prepare since reset
happens in close. This will also help stop already active LSM
sessions even if prepare was called in between.
Change-Id: Iad47f9459ceddefd582840313901d95d338e1147
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Add app type config controls for transcode loopback capture node.
This is required to configure CoPreP independently in loopback
usecases.
Change-Id: I79aa098b8b9d3ac4baf9291f8a25297a3ffef1bd
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Add support for dais and routing for Senary MI2S, AUXPCM and TDM
interfaces.
Change-Id: Ifa4a9c7163330a18d22d3a5c7d75fe99d189ba49
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Add MI2S/TDM AFE senary port IDs for Kona target.
Change-Id: I8dafa4516c31040aad0bca30cfdc9acbdf460bf1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Add check for mfc channel count before issuing mfc
media format command.
Change-Id: I0541d6651ecfcc90562ec0d9a632d039e34658cf
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
Before proceeding with handling soundwire interrupt check
return value of vote for LPASS HW core and handle
error scenarios.
Change-Id: I0f19a5ddb0af82f33a8d004d008eda9baa40c036
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Suppress the errors from the soundwire master runtime suspend
and runtime resume, if the soundwire slave devices does not
implement the functionality, that avoids pm runtime calling
the runtime functions.
Change-Id: I513a37f37e349a0c435295056df8625f284e13e6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Update channel mixer controls to use active channel maps.
Update channel maps and channel mixer control to validate
channels and frontend ids being used.
Change-Id: Id5a8d9d0f262fbf64dcfeb67a8b2195fb0d126fa
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
Add mixer control to configure multi channel map for
each backend separately.
Change-Id: Ie114fa38ee5ce47841cda4cd7f31349905f5c2c7
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>