Set enable/disable flag properly before sending the clk request
to ADSP in MI2S slave mode.
Change-Id: I4a145b1765b19b2eb708a52a35b51032f540fb2d
Signed-off-by: Aditya Bavanari <abavanar@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>
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>
In trinket, wsa8810 variant show higher current.
As wsa8815 settings applied for wsa8810 variant
causing the issue. Update wsa aux codec matching logic
in machine driver to apply proper gain settings
for wsa8810 variant.
CRs-Fixed: 2406074
Change-Id: I5916ae7ea8e91aad4e0be6486502f5fcd8a96ff3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Remove impedance detection gpio callback function for tasha
variant as gpio control is not required for zdet.
Change-Id: Ic038d11c078241ca438cdff756fd666f6106d509
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Create codec root entry only if it is not
created already in proc directory to avoid failures
in codec version entry enumeration.
Change-Id: I8c912be5fb0f229a3b5a088ebb5c0aeea06f67b2
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Use strlen instead of sizeof in strnstr operations
to return the exact size of sound card name.
Change-Id: Id579a41ed79d4443dac7dd2e709784e9dfa186ac
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Add DAI links and sound card registration support
for tasha sound card variants.
Change-Id: If93dc1dae2f10f9ac6b8e2e80a9e38cadc14289b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Enable polling when moisture is detected on Talos.
Change-Id: Ice463c8bbbbd5de8b2b8c02cbce2543243b10703
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
TX_CDC_DMA_TX_0 supports three channels, therefore it
can be used for rx_macro_echo. Add required backend dailink.
Also remove AMIC4 from ignore_suspend as it is not used for talos.
Change-Id: I74b7adca9fa4001866232c1a9173e865c2a169c4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add FE dialinks to enable multi compress capture
sessions on sm6150 target.
Change-Id: Ib26fc6c84d7993c34725a3b67596d4f059aa286e
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
use soc_find_component locked version to ensure proper
access of component list while trying to find wsa or
aux codec components from the list.
Change-Id: I01303cbce13df45f290242776231d17aad68521e
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Add startup and shutdown functions for MI2S and
TDM interfaces and activate the respective
GPIOs.
CRs-Fixed: 2353292
Change-Id: I3eec88c851f0f34584c7a70d55ab8f1d5fc9dff4
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Add parsing logic for codec_max_aux_devs in init_aux_dev
in order to identify whether auxilary codec is supported
or not for a target.
CRs-Fixed: 2353292
Change-Id: I88a84ab064da50ab243ad3f7d6b61cd03b9bbc77
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
snd_soc_codec is removed from kernel-4.19.
Update machine driver to fix compile error.
Change-Id: I1bdfda07c0d150d008c434c361142b655de1e9db
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Switch audio drivers to SPDX identifier on msm-4.19.
Change-Id: Ic3f0230a516db251b8d81e8a7e73dbc04d66fe1b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Enable compilation for sdmsteppe target and also fix
compilation errors.
Change-Id: I18a13764415ae955843706943e338bb575c11853
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
SM6150 V1.0 target uses ipc wake up mechanism. Based on
version info of sm6150 chipset, register for
wake up interrupt either by ipc_wakeup or hardware
interrupt line machanism.
Change-Id: I7f12d919418b284f310c8b7bb5cd24e47f2099ec
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
For export functions from wcd937x use separate
header as internal header is only supposed to be
used within wcd937x driver logic.
Change-Id: Ice373ff95f7166a2f968458b25223c582edc7fba
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
USBC gnd mic swap is taken care of by FSA4480.
Gpio does not need to be swapped for this purpose.
CRs-Fixed: 2323772
Change-Id: Ida490995761ec5361ff2302b990d3c6fe1f32f85
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add snd_event support for talos required for SSR.
Change-Id: If689d9cda131324b99e0dda0b91f237b495eeadc
Signed-off-by: Vaishnavi Kommaraju <vkommara@codeaurora.org>
Fix condition to register display port dai link as
part of soundcard registration.
CRs-Fixed: 2321275
Change-Id: I196163599299fa4aea21c930c0bfe3f8e5425223
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Check the value of ch_num and return if
less than zero to avoid out of bound access
in cdc_dma_cfg arrays.
Change-Id: Ie59f5e7ed063d65a61033a142acd2bcf2287c39b
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
VI_Feed_TX Channels is common for both internal and
external codec. Add it in common controls.
Change-Id: I9354adebc3238a4d332e244d9dedccf02ddd9604
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add playback and capture hostless DAIs in common
fe dai links to support fm and hfp use cases.
CRs-Fixed: 2281591
Change-Id: I63b86d0de286b0c06c0be4b7c4976cd683c80b3c
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Fix set sampling rates for Rx Codec DMA interfaces.
Use uint32 instead of boolean properties for
audio interfaces and tavil codec enablement in
sm6150 target.
CRs-Fixed: 2281591
Change-Id: Id5cb212a8e319437c0efd02e9a900eedf63eae58
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>