Remove static definition of size and index variables, which are
unique to each capture session. Static defintion of index variable
may incorrectly copy data from wrong memory offset. This might inject
silence/clutter in data copied to audio HAL.
CRs-Fixed: 2457887
Change-Id: I7b2f48d21545655ddaa13566ab4ea87a1cbd7424
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
For TDM/MI2S/AUXPCM, add lpi gpio support for kona.
Change-Id: Ie23caaaa0243c84dfc8a6ee0e3e0e002bf0c18d8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
PBE values are misinterpreted when transferring from userspace to kernel
via mixer ctl interface. Config values have to be copied one by one rather
than copying through continuous memory.
CRs-Fixed: 2458428
Change-Id: I375498f0f511d21bd14873cc9394305acbc25e50
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
Add machine driver interface for 615x to support dynamic loading
of kernel module.
Change-Id: I5691c2730d31390d6f6b4ce30794182421dc1861
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
During suspend on new kernel, FE/BE path would tear down and
pinctrl for related component would be deactived. On kona, FM
is connected to TERT MI2S and during suepend, pinctrl for TERT
MI2S would be sleep state and FM has no sound.
Add ignore_suspend for all BEs, BE_OUT and BE_IN to avoid tearing
FE/BE path during device suspend.
Change-Id: I8868f35d6c418987ffe287d64a3f5ae3d1abf1c1
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Currently audio driver doesn't send island mode config to ADSP
to set the LPI mode, which causes ADSP to remain in Non-LPI mode.
Fix it by adding support in Kona machine driver to send island
mode config for VA usecase.
Change-Id: I2294950055cb74a1a9d3ee630e74f63eb6435e7b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.
Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Mic bias value is needed in case of special headset
detection logic and the same needs to be read and stored
from device tree to be used by mbhc driver.
Change-Id: I11c8ac6b0abc7ba04b6750c59405794bc768dc42
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
TX hold callback returns without making a callback
to external codec if the ADC with number one is called.
Add the condition for the missing ADC to make the callback
for ADC1.
Change-Id: Iec480b40cfbe199fbe06151abd99d9ad6aaf9c9d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
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 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>
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>