Gráfico de commits

74 Commits

Autor SHA1 Mensagem Data
Prasad Kumpatla
a40c1bebd9 asoc: msm_common: clock handling for tdm interface
Observed pop noise on TDM SPK AMP in the disable sequence. To resolve
the pop noise, TDM clock should be turned OFF after digital mute ,which is done
in machine driver for the disable sequence.

Change-Id: I9c8b5ef820cd8ec1e9a7d022e1938d53e2f401a1
Signed-off-by: Prasad Kumpatla <pkumpatl@codeaurora.org>
2021-07-19 15:26:42 +05:30
Phani Kumar Uppalapati
b15db3b6c8 Merge commit 'd9fa9d435ba1b92cf0f0361a0749107b7abc45a5' into audio-kernel-5-4.lnx.1.0
Change-Id: Iaf98532030ee4ef5fe6a70df083a685733dd5670
2020-11-05 19:15:07 -08:00
Sudheer Papothi
b11e8d0718 ASoC: lahaina: add audio core vote state in mi2s
Add audio core vote state variable for mi2s interfaces.
Enable it during interface startup and disable it during
mi2s_disable_audio_vote, auxpcm init/deinit.

Change-Id: I798e15f489b1cb1816e424e1b543016d757016e4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-09-16 17:13:14 -07:00
Aditya Mohan
47d13a9d8f asoc:lahaina:Addition of VI feedback dai link
Addition of dai link for VI feedback
required for Speaker protection

Change-Id: Ied2339c995b87455a0759f9a48fce2383de9cbec
2020-09-16 17:15:11 +05:30
Phani Kumar Uppalapati
10bed4cd23 lahaina: add mi2s and tdm dai-links
Change-Id: I3d541b110cc849b6e323f4df55be208e153d65eb
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2020-09-16 01:39:22 -07:00
qctecmdr
61241e3041 Merge "asoc: lahaina: address checkpatch error and warning" 2020-09-03 18:06:23 -07:00
qctecmdr
d512c0e75f Merge "ASoC: shima: Resolve noise during amic record" 2020-09-03 18:06:22 -07:00
qctecmdr
78ff42400c Merge "dsp: afe: send cps config after sending topology" 2020-09-01 18:11:50 -07:00
George Gao
e3c73874af asoc: lahaina: address checkpatch error and warning
Checkpatch tool generates some errors and warnings due to added PM QoS feature
This change fixes these issues.

Change-Id: I0843ecd33144d7ac65649ee90ed156e97a1a2f8a
Signed-off-by: George Gao <georgao@codeaurora.org>
2020-09-01 01:25:10 -07:00
Vatsal Bucha
f064edbb48 ASoC: shima: Resolve noise during amic record
Change shima master port params same as slave
to resolve noise during amic record.

Change-Id: I3c26c51413d104720ffd063cb5b9fc50f287c06a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-31 13:37:10 +05:30
Meng Wang
d13c31fb52 asoc: lahiana: update sequence to initialize bolero dai-links
When initializing RX_DMA_1, it would fail to find wsa-codec.1 and
fe_clients is not initialzed. When soc-pcm.c tries to access fe_clients,
kernel panic happens. Update sequence to initialize bolero dai-links.

Change-Id: I4791b08a913fafc5723cc676ff59b119a4cf2c80
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-28 13:36:03 +08:00
Vignesh Kulothungan
26c1ce2fb7 dsp: afe: send cps config after sending topology
Set params for a module should be done after sending
the topology information in which the module resides in.
Send cps configuration after sending afe topology.
Send cps configuration only for speaker protected usecases.

Change-Id: I89c7df9f0d70862813aa7a2bd1ea1afc2ddcc882
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-27 17:11:05 -07:00
qctecmdr
9b9eaec119 Merge "asoc: lahaina: add wcd_disabled check in late_probe" 2020-08-17 01:44:20 -07:00
qctecmdr
4090b93397 Merge "asoc: lahaina: use new pm_qos API to let audio ULL run on core 1&2 for concurrency usecases" 2020-08-17 01:44:19 -07:00
qctecmdr
f407fb795d Merge "AsoC: lahaina: support right speaker as mono device" 2020-08-17 01:44:19 -07:00
Vignesh Kulothungan
7902b497b5 ASoC: lahaina: add support for CPS speaker protection
Add support to parse static cps configuration from dt.
Add support to send cps configuration for speaker protection
usecases.

Change-Id: I0166a378f24cedef07393bdbb8618df944c62984
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-11 10:02:39 -07:00
George Gao
0be9048845 asoc: lahaina: use new pm_qos API to let audio ULL run on core 1&2 for concurrency usecases
This change ensure all concurrent low latency/ultra low latency use cases run on core 1 and 2.

Change-Id: I83456a992d1de748854308f3efc7555b3ca9aaad
Signed-off-by: George Gao <georgao@codeaurora.org>
2020-08-10 22:18:20 -07:00
Xiaojun Sang
67e19082df AsoC: lahaina: support right speaker as mono device
Current design assumes mono device uses left speaker.
Modify the logic to remove the limitation.

Change-Id: I6a7cd2b14ed5a4c10106593fe707a449d05efe48
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-08-10 15:50:00 +08:00
qctecmdr
d135c72b0b Merge "asoc: lahaina: use new pm_qos API to let audio ULL run on core 1 and 2" 2020-08-07 03:46:12 -07:00
qctecmdr
53ad10c501 Merge "asoc: lahaina: update log type to reduce log" 2020-08-07 03:46:12 -07:00
Meng Wang
36b9a31a37 asoc: lahaina: add wcd_disabled check in late_probe
Add wcd_disabled check in late_probe to avoid checking
wcd component when WCD is disabled.

Change-Id: I9fe4fa993b94b09d7ffef0f59505b102165b87ac
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-06 14:52:42 +08:00
George Gao
bb5c832e51 asoc: lahaina: use new pm_qos API to let audio ULL run on core 1 and 2
The sound core driver used old pm_qos APIs which does not have CPU afinity mask.
As a result, ULL playback runs on all cpu cores.
This change uses new API call with affinity to core-1/2.

Change-Id: If59b6f32a421038c0f89611d160e4031e03a10ce
Signed-off-by: George Gao <georgao@codeaurora.org>
2020-08-05 01:35:25 -07:00
Meng Wang
f018ce04f6 asoc: lahaina: update log type to reduce log
Update log type to reduce error log during bootup.

Change-Id: I9e95ea8d121f7dbf15d5c02268d7f8dc67d840e0
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-31 10:47:28 +08:00
Phani Kumar Uppalapati
726d5ea145 Merge commit '33ea77356f47c6c596c8505ca90307fc1245ef3f' into audio-kernel-5-4.lnx.1.0
Change-Id: Iacb389506a643a1ac70a3d51c2dfc1eeb47f690c
2020-07-30 19:48:24 +05:30
Meng Wang
7f0ed8f900 asoc: lahaina: add flag to indicate if wcd is disabled
On some lahaina devices, wcd codec is disabled and it would cause
issue when trying to use wcd widgets. Add flag to indicate if wcd
is disabled

Change-Id: Id19d0bd83728b10b457767f7d43cba8dac916772
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-30 08:11:58 +08:00
qctecmdr
1b6c22837e Merge "ASoC: Add port params for shima" 2020-07-28 22:40:06 -07:00
qctecmdr
cb97be6e28 Merge "asoc: lahaina: remove unnecessary ignore suspend for wsa widgets" 2020-07-27 05:45:11 -07:00
Vatsal Bucha
23f46e8fc0 ASoC: Add port params for shima
Add port params for shima and include them
based on sndcard.

Change-Id: I1f71d6db3df5b7d3cf91b0052fdaac51b8bf21d9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-22 19:43:48 -07:00
Meng Wang
e27ce5435a asoc: lahaina: remove unnecessary ignore suspend for wsa widgets
Ignore suspend for wsa widgets has been taken care in wsa driver.
Remove unnecessary ignore suspend in machine driver.

Change-Id: I2e6edc19befd3d3e4fd500b2e6b84e07cd3bd729
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-20 17:06:04 -07:00
Vatsal Bucha
606d187d47 ASoC: Add tdm dynamic configuration support
Add support to use dynamic tdm slots.
The max number of tdm slots is defined in device tree
and tdm configuration is dynamically assigned based on
tdm max slots.

CRs-Fixed: 2553156
Change-Id: If444da44e02e6cbcbb4ea1e2396627745bd1e982
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-20 05:48:32 +05:30
qctecmdr
779e5fd02d Merge "ASoC: lahaina: start headset detection after soundcard is registered" 2020-07-10 01:59:34 -07:00
qctecmdr
1ef7ff5ddb Merge "ASoC: lahaina: add be dai link for DSD" 2020-07-10 01:59:34 -07:00
Meng Wang
248a190981 ASoC: lahaina: start headset detection after soundcard is registered
When soundcard registeration fails after headset IRQ is triggered, kernel
panic may happen. Start headset detection after soundcard is registered
in late_probe.

Change-Id: Ibc5cebbf0e3331db1ec89fdcb9082029c510aaf7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-06 18:12:51 -07:00
Vignesh Kulothungan
7b1cfaca64 ASoC: lahaina: add be dai link for DSD
Add BE dai link LPASS_BE_RX_CDC_DMA_RX_5 for DSD
playback usecase.

Change-Id: Iacafab0131100ce6631c376b304f8a5006c326b7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-02 12:58:07 -07:00
Ashish Jain
7a7a5a1f9a ASoC: lahaina: Add msm_common_dai_link_init for missing dai_link
RX_0 dai_link from RXTX macro was missing msm_common_dai_link_init
this lead to failure in setting up the hardware endpoint.
Add msm_common_dai_link_init to happen as a part of msm_aux_codec_init.

Change-Id: I73287dc80e5eba95e12b11cd446912b3e5207265
2020-07-02 18:12:06 +05:30
Ashish Jain
dacb2cc698 ASoC: lahaina: Update all dai_links to conform to latest kernel
Audio reach architecture needs straight dais, update dais
to conform to latest 5.4 kernel.

Change-Id: I13db7276589cefa5fe0951eb8852a0f4fd1b75a0
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
(cherry picked from commit f0a9c1831f232e676a183234d64ec9a893216e8f)
2020-06-29 12:08:44 +05:30
Phani Kumar Uppalapati
25f314627d asoc: Lahaina machine driver for AudioReach
Add audioreach lahaina machine driver.

Change-Id: I2699f2570f2f08cbbcd669dbe861aba3db21266a
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2020-06-25 00:38:10 -07:00
Sudheer Papothi
461c2a6e36 ASoC: lahaina: Add soft dependencies for BT
Audio driver expects BT to be probed first before
machine driver probe. Changes ensures BT dependency
for audio.

Change-Id: I82004f464ed9e7bb90d24bf2762c99b9817f95a3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
(cherry picked from commit 2c4bc0683f)
2020-06-25 00:37:59 -07:00
Meng Wang
91572c7890 asoc: lahaina: add stub fe for wsa capture
When WSA is disabled, WSA related widgets is not registered and it
causes soundcard registeration fail. Add stub fe for wsa capture to
avoid soundcard registeration failure.

Change-Id: I282d843d02544aaf2f2b646aba4fca731fc6f47e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-06-12 12:46:32 +08:00
qctecmdr
bfa84ffadd Merge "ASoC: add dai link for playback compress3" 2020-06-11 04:15:16 -07:00
qctecmdr
e5b0943baa Merge "ASoC: lahaina: Add support for VI sense backend" 2020-06-11 04:15:16 -07:00
qctecmdr
344b47efbe Merge "asoc: lahaina: add support to send power mode for voice usecase" 2020-06-05 01:54:02 -07:00
Sudheer Papothi
3d88fa349a ASoC: lahaina: Add support for VI sense backend
Add changes for VI sense WSA_CDC_DMA_TX_0 as backend
dailink to support recording of VI sense data.

Change-Id: Iea90290f2189d669ca5660373849a7e987483fc4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-05 11:15:02 +05:30
qctecmdr
6f1668b5ea Merge "ASoC: lahaina: Add soft dependencies for BT" 2020-06-01 10:27:01 -07:00
Kunlei Zhang
02b06f5634 asoc: lahaina: add support to send power mode for voice usecase
Add support in lahaina machine driver to send power mode along
with island for voice usecase.

Change-Id: I4223bc7e36644e3843995832798683017de22ece
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-05-29 14:17:48 +08:00
Mingshu Pang
ff2d021fb6 ASoC: add dai link for playback compress3
add dai link for playback compress3

CRs-fixed: 2695615
Change-Id: I8076dc0c6383adf1404a22a577c55d8dcd11a089
Signed-off-by: Mingshu Pang <mpang@codeaurora.org>
2020-05-28 10:37:24 +08:00
qctecmdr
acc52d9076 Merge "asoc: lahaina: update and affine qos value" 2020-05-16 03:24:33 -07:00
qctecmdr
a37afa76c0 Merge "ASoC: create wsa883x codec entry in proc fs" 2020-05-14 22:04:37 -07:00
qctecmdr
411fc736f9 Merge "ASoC: lahaina: Update sample rate for speaker protection" 2020-05-14 22:04:36 -07:00
qctecmdr
0b7eee39e7 Merge "asoc: lahaina: add fe proxy port for hearing aid" 2020-05-14 22:04:35 -07:00