Commit Graph

32 Commits

Author SHA1 Message Date
qctecmdr
34e19c301a Merge "ASoC: Kona: Avoid static route between cpu and codec dai" 2019-06-17 20:46:29 -07:00
Meng Wang
bb5e0e9d93 asoc: kona: Fix to apply wsa8810 gain settings
Update wsa aux codec matching logic in machine driver
to apply proper gain settings for wsa8810 variant.
Add null check for aux component name to avoid dereference.

Change-Id: Ie332f8e37a2d6b7a250fe299df91fa9cf9d7636b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-06-05 15:24:39 +08:00
Sudheer Papothi
ff2733c0eb ASoC: Kona: Avoid static route between cpu and codec dai
Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up first
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different. Set the dynamic bit of
backend dai dailink to update the backend parameters
before codec path setup.

Change-Id: Ic80755a5672849f527d5d696d31174a62997aca2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-29 04:58:18 +05:30
Karthikeyan Mani
12dcf64d6f ASoC: msm: add lpi support for tdm/mi2s
For TDM/MI2S/AUXPCM, add lpi gpio support for kona.

Change-Id: Ie23caaaa0243c84dfc8a6ee0e3e0e002bf0c18d8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-28 11:35:08 -07:00
qctecmdr
34b7d3b2fd Merge "ASoC: hide bind/unbind in sysfs" 2019-05-21 20:33:23 -07:00
qctecmdr
6ef83ef671 Merge "ASoC: Kona: Add ignore suspend for Digital Mic4 and Digital Mic5" 2019-05-21 20:26:51 -07:00
Xiaoyu Ye
ffbdc9fe0f asoc: Kona: add support to send island mode config for VA usecase
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>
2019-05-17 16:37:01 -07:00
Xiaojun Sang
53cd13a1ab ASoC: hide bind/unbind in sysfs
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>
2019-05-17 15:00:33 +08:00
Sudheer Papothi
3fc2d77434 ASoC: Kona: Add ignore suspend for Digital Mic4 and Digital Mic5
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>
2019-05-11 14:15:02 +05:30
Vatsal Bucha
82b30ba7c4 ASoC: Add dailink for lito btfm support
As lito uses cherokee for btfm support which uses slimbus.
Add respective dailink for wcn btfm support for lito.
Also rename sm8250-port-config to kona-port-config.

Change-Id: I86d771b5df76a4541b8bf17174c1181d9d94bb52
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-30 11:53:08 +05:30
Meng Wang
d1db67cb05 asoc: kona: add mixer control to set channel number for speaker protection
Add mixer control to set channel number for speaker protection.

Change-Id: I67527119a65758c77dbf9b1d26cc51f956702b5e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-19 10:20:13 +08:00
qctecmdr
9817ea1ab6 Merge "asoc: kona: add afe loopback support in machine driver" 2019-04-06 23:14:37 -07:00
Meng Wang
e8e53825d5 asoc: kona: add afe loopback support in machine driver
Add machine driver change for AFE RX to TX loopback.

Change-Id: Icd77092867e93bd1da76b1ba22c61091a2d1c8f4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-02 16:09:15 +08:00
Vignesh Kulothungan
9e17da0005 asoc: validate channel number before use
Validate channel number before using it to index codec dma
rx configuation array.

CRs-Fixed: 2420338
Change-Id: I48109beedba2423158fa84dee0b9ccac340979b1
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-03-28 17:37:58 -07:00
Banajit Goswami
83a370dce7 asoc: kona: add back support for Slimbus 7 for BT use cases
BT use cases on Kona target uses Slimbus 7 ports. Add back
support for Slimbus 7 port for BT.

Change-Id: Iaa5128738106fdafabe84831237947c3880de214
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2019-03-09 13:18:26 -08:00
Linux Build Service Account
d08a1a3fba Merge "kona: move display port mixers to common block" 2019-03-07 23:33:37 -08:00
Karthikeyan Mani
f0de756925 asoc: msm: fix FM hosteless capture
Add pcm device for FM hostless capture that uses
MI2S capture.

Change-Id: I72c79aec1c8e093d7e9d045f4da675ca955ffe63
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-04 18:57:30 -08:00
Meng Wang
197cb30bc9 asoc: kona: update pcm id for Kona FE
Update correct PCM id for Kona FE.

Change-Id: I5033f12ef587d8c476f0da7a73a1a35a037db035
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-03-01 13:54:38 +08:00
Banajit Goswami
b4347d50d4 kona: move display port mixers to common block
Move Display Port mixer controls to common mixer control array,
so that those can be exercised for Kona sound card with Bolero/Traverso
codecs.

Change-Id: I4f27694b554fc9f1e2070fdf3056b3c8f71d57d3
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2019-02-28 20:11:49 -08:00
Meng Wang
a60b408c5a asoc: kona: enable us/euro function for analog type-c headset
mbhc_mbhc_cfg.swap_gnd_mic is not initialized for analog type-c
headset on Kona which causes headset detection fails.
When analog type-c headset function is enabled on device, initialize
swap_gnd_mic to msm_usbc_swap_gnd_mic to resolve this issue.

Change-Id: Ia8244e41cbfa7c8844b761ff129a7d2cced0dacf
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-02-25 17:02:23 +08:00
Linux Build Service Account
2b5cb6ac75 Merge "asoc: msm: register wake irq of Tx macro" 2019-02-22 10:36:30 -08:00
Karthikeyan Mani
664bd4aa8d asoc: msm: register wake irq of Tx macro
Register wakeup of TX macro with HW interrupt
line through wakeup irq.

Change-Id: I1120b6155ca88ce6e1f8dcc163fc86227d606a8b
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-21 13:36:30 -08:00
Meng Wang
574f494777 asoc: kona: update parameters for RX/TX backend
Samplerate, channels and bit rate are not updated for
MSM_BACKEND_DAI_WSA_CDC_DMA_RX_*, MSM_BACKEND_DAI_RX_CDC_DMA_RX_*,
MSM_BACKEND_DAI_WSA_CDC_DMA_TX_*, MSM_BACKEND_DAI_TX_CDC_DMA_TX_*.
Add hw_params_fixup function for these BE DAIs.

Change-Id: Ia21f1cf5742e3acc6549319dcedfde07233ed161
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-02-18 15:48:53 +08:00
Karthikeyan Mani
1a111b965a asoc: msm: remove codec specific checks for kona
Add dapm widget for all analog mics, remove bolero
and mtp specific checks from probe.

Change-Id: Ibaa81fb9a655c3d0f48b95d2e882b5fecf6adb73
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-15 17:33:14 -08:00
Meng Wang
688a867091 asoc: Update file header to GPL-2.0-only
Update file header to GPL-2.0-only.

Change-Id: If16bf92f951c6d7521f56a3e9b91da2ca2ccf6f8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-01-29 13:43:33 +08:00
Karthikeyan Mani
eaad2ede41 ASoC: msm: add external sound device dai's for kona
Add BT and external display dai's and ops for kona.

Change-Id: Ib2c2a5c5342de657f7c4b8ef04eed88242baa101
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-08 14:37:30 -08:00
Karthikeyan Mani
5eb13428f1 asoc: msm: add fsa switch functionality for kona
Add fsa USB type C analog audio functionality and
update codec function calls from machine driver.

Change-Id: I493241d633d1f233930c714de08ad6ce8ece5b83
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-08 14:33:48 -08:00
Xiaoyu Ye
2228bf0b29 ASoC: msm: add VA Macro's BE DAI links for bolero
Add BE DAI links of VA macro for bolero in Kona's machine driver.

Change-Id: I230bf7227c5436b5a2e8fed956337f87fcc86a4e
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 17:27:38 -08:00
Karthikeyan Mani
7eef68ef9e ASoC: msm: Get the soundwire port configuration
Send the kona platform specific soundwire port configuration
to the soundwire master driver through machine driver.

Change-Id: I1144d00b6bd430f330833141e681dcc93bfff9d2
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-12-21 12:03:51 -08:00
Vignesh Kulothungan
3e5ebbf466 ASoC: msm: add bolero codec functionality
Add codec specific functions for basic audio functionality on Kona.

Change-Id: I58a12010f5894341c59de3c70ada216b5ec764e6
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-12-20 15:52:28 -08:00
Vignesh Kulothungan
483a5595b2 ASoC: msm: add common dai's for kona
Add common front end and back end dais.
Add TDM, AUX PCM and MI2S dais.

Change-Id: I3ecbe10ea9246aadedd02a881c937ce69f33cbbe
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-12-20 15:28:02 -08:00
Vignesh Kulothungan
e9abcd0fbd ASoC: msm: add machine driver for kona
Add machine driver for Kona with stub codec.

Change-Id: Ic214324e22e2eaeaa2651e4fbeb8fd187aeb458e
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-12-07 11:43:23 -08:00