Commit Graph

1252 Commits

Author SHA1 Message Date
qctecmdr
abca8128dd Merge "ASoC: wcd937x: Fix playback stop issue after SSR/PDR on special hs" 2019-04-06 23:14:37 -07:00
qctecmdr
9817ea1ab6 Merge "asoc: kona: add afe loopback support in machine driver" 2019-04-06 23:14:37 -07:00
qctecmdr
4b17acc4cf Merge "asoc: wcd938x: stop mbhc during ssr down" 2019-04-06 23:14:37 -07:00
Vidyakumar Athota
5d45f4c865 asoc: codecs: bolero: add clk resource manager driver
Add Bolero clock resource manager driver to handle/manage
bolero clocks for all the concurrency usecases like record
+ voice activation.

Change-Id: I970a05d96fc9060b44bfe670d465f0b9d72cc53b
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2019-04-05 08:00:03 -07:00
Vatsal Bucha
15e7831783 ASoC: wcd-mbhc: Remove hardcoding of hphl and gnd swh to NC for analog USBC
Read hphl_swh and gnd_swh from dtsi instead of hardcoding to NC
for every USBC target. Some platforms use NO switch.

Change-Id: I3dca6c7450579e8feb5d80c1340495958683a026
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-05 07:59:58 -07:00
qctecmdr
b4c9798b90 Merge "ASoC: wcd938x: Update routing for HDR recording" 2019-04-05 03:46:09 -07:00
qctecmdr
d2c21188e5 Merge "asoc: wcd938x: Add default cases for port mapping" 2019-04-05 03:46:09 -07:00
qctecmdr
7e7016f0a8 Merge "asoc: codecs: bolero: Reduce hpf corner freq delay to 50ms" 2019-04-03 23:09:58 -07:00
qctecmdr
9fbfb7ae16 Merge "asoc: bolero: remove mutex_lock in bolero_runtime_suspend" 2019-04-03 23:09:58 -07:00
qctecmdr
268db71c4a Merge "asoc: validate channel number before use" 2019-04-03 23:09:58 -07:00
qctecmdr
019c77d4cd Merge "asoc: pcm: modify component extraction" 2019-04-03 23:09:58 -07:00
Karthikeyan Mani
05588601ac asoc: wcd938x: Add default cases for port mapping
Return error in case of wrong path being selected
for port mapping and port params functions.

Change-Id: I5d66a9cd32e9c8e6d8ebac0ea073b1a1762407b6
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-04-03 12:24:11 -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
Meng Wang
e59703ce4e asoc: bolero: remove mutex_lock in bolero_runtime_suspend
There can be deadlock between __bolero_reg_read/write and
bolero_runtime_suspend. Remove the mutex_lock in
bolero_runtime_suspend to avoid deadlock.

Change-Id: I712b9f24adeddda8899b39f90291394965443163
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-01 17:49:59 -07:00
Meng Wang
281bd20437 asoc: wcd938x: stop mbhc during ssr down
Stop mbhc operations during ssr down to cancel
any pending detection sequences.

Change-Id: Iff054cf8b3099959a1be561bd937057258f57b81
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-02 08:44:38 +08:00
Sudheer Papothi
e456c2ca41 ASoC: boloero: Add DAPM widgets for soundwire clock
Add DAPM widgets for soundwire clock on Tx path and
VA path to enable the desired clock source based on
the usecase.

Change-Id: I48b04e63317cefd8bf12d58b002efb37087f8dc2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-04-01 11:34:10 -07:00
qctecmdr
b1a49c6b67 Merge "ASoC: bolero: va-macro: Fix ioremap in va macro probe" 2019-03-29 01:41:04 -07:00
qctecmdr
3f2cb16d11 Merge "asoc: add NULL check before access pointer" 2019-03-29 01:39:35 -07: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
Linux Build Service Account
3ad70de4a8 Merge "asoc: wcd937x: Disable EN_CUR_DET bit for receiver noise" 2019-03-26 21:22:47 -07:00
Linux Build Service Account
94de539c53 Merge "asoc: wcd938x: Disable EN_CUR_DET bit for receiver noise" 2019-03-26 21:22:47 -07:00
Mangesh Kunchamwar
3d4eec47ef asoc: codecs: bolero: Reduce hpf corner freq delay to 50ms
Reduce hpf corner freq delay from 300ms to 50ms
to avoid initial mute in recorded audio.

Change-Id: Ibd6e7d60f836e866d73899d3f691c0e8070a3527
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-03-25 10:44:21 +05:30
Vignesh Kulothungan
764b2d2e8e asoc: pcm: modify component extraction
Component for channel map mixer control should be
extracted from pcm runtime instead of kcontrol's private data,
because kcontrol's private data in this case points to channel
map info.

CRs-Fixed: 2420279
Change-Id: Ibaeac4739b73a89d17f16cbacb1b5095d546968b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-03-21 11:01:43 -07:00
Meng Wang
8a2a104156 asoc: add NULL check before access pointer
Add NULL check before access pointer to avoid dereference.

Change-Id: I2c7408348a0acf1a3801a5869f62bae328858beb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-03-21 10:46:02 +08:00
Meng Wang
578740db71 asoc: wcd937x: Disable EN_CUR_DET bit for receiver noise
Disable EN_CUR_DET to fix receiver noise as per hw team
recommendation.

Change-Id: Icbeea920d02279ff845072e54be1c449db7bd2da
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-03-20 17:24:22 -07:00
Linux Build Service Account
527070fcf2 Merge "dsp: get excursion logging at afe close for wsa and log data" 2019-03-20 12:00:42 -07:00
Linux Build Service Account
36e68604f0 Merge "asoc: wcd-spi: use CMA memory for TX and RX buffer instead of kzalloc" 2019-03-20 02:29:22 -07:00
Vatsal Bucha
13faf538b3 ASoC: wcd937x: Fix playback stop issue after SSR/PDR on special hs
If we start playback on special hs after record is done and perform
SSR/PDR then playback gets paused. This happens because ANA_TX_DIV2_CLK
which needs to be enabled for special hs gets disabled after record
is stopped. Maintain a count for ANA_DIV2_CLK to enable/disable it
as required.

Change-Id: Ic73475c83cb16e3c014f35b8d46ee22d2e7a2efd
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-03-20 15:44:14 +08:00
Aditya Bavanari
baab9b123f asoc: wcd9335: Add support for SSR handling using SND event fwk
Add support for SSR/PDR handling using SND event framework in
tasha codec.

Change-Id: Ief0bc7dc62d83635fdc905f1f385571e0e4b3190
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-03-20 15:23:32 +08:00
Laxminath Kasam
36384ecca2 dsp: get excursion logging at afe close for wsa and log data
Trigger xt logging getparam at every playback close
and store data. When app queries sys/class node, return
stored values and reset to 0 for some params as per
app requirement.

Change-Id: Ice1a3e9a7e03062390f1c36184a971635e55d450
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-03-20 00:07:28 -07:00
Laxminath Kasam
f16ed2f6c2 asoc: wcd938x: Disable EN_CUR_DET bit for receiver noise
Disable EN_CUR_DET to fix receiver noise as per hardware
specifications recommendation.

Change-Id: Ib1ea1eecc3e0f2ffeeb5f41c344e51c903cd2300
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-03-20 08:26:12 +08:00
Sudheer Papothi
828b3114fe ASoC: bolero: va-macro: Fix ioremap in va macro probe
Update va-macro ioremap offset properly during probe.

Change-Id: I3c4b1d6ba24b7935c3ba047059f72ed06bdafe4f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-03-19 03:04:57 +05:30
Linux Build Service Account
66547d7c3f Merge "dsp: asm: Add check for num_channels before calling q6asm_map_channels" 2019-03-14 15:24:19 -07:00
Linux Build Service Account
f8222a77eb Merge "ASoC: codecs: Add support for soundwire clock for VA usecase" 2019-03-14 06:55:31 -07:00
Linux Build Service Account
48d488c18c Merge "asoc: sm6150: Remove zdet gpio callback for tasha variant" 2019-03-14 06:55:30 -07:00
Linux Build Service Account
8d44b4ee14 Merge "asoc: Stream_open issue fix for gapless playback" 2019-03-14 06:55:29 -07:00
Linux Build Service Account
7b786004c0 Merge "asoc: Reorder list used in topology search" 2019-03-14 06:55:20 -07:00
Linux Build Service Account
59342f5264 Merge "asoc: avoid excessive logging" 2019-03-14 06:55:13 -07:00
Linux Build Service Account
cd01483c9d Merge "asoc: msm-lsm-client: stop lab during lsm close" 2019-03-13 14:32:05 -07:00
Sudheer Papothi
3557d14ce8 ASoC: wcd938x: Update routing for HDR recording
Update audio routings for HDR recording on WCD938x codec
for AMIC1 and AMIC5 paths.

Change-Id: I67b93fe11c7a5b16ffd4bb8b58431be9dfba615e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-03-13 14:05:19 -07:00
Linux Build Service Account
28cf96f41d Merge "asoc: add support to configure MFC in ec ref path" 2019-03-13 13:13:46 -07:00
Linux Build Service Account
8fd4a210ab Merge "msm: vote for LPASS core while access LPASS registers" 2019-03-13 03:33:04 -07:00
Xiaoyu Ye
89cc889a44 asoc: wcd-spi: use CMA memory for TX and RX buffer instead of kzalloc
In wcd-spi driver, the kzalloc is used to allocate memory for TX and
RX buffer. Those allocations are order4 or order5, which could fail
on some kernels. To avoid potential memory allocation failure, the CMA
region is used for those allocations by dma_alloc_coherent API.

Change-Id: I0a4d6c6b5e0e47f96187563272e63c3a006e469f
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-03-13 15:22:12 +08:00
Haynes Mathew George
4728d6b2b5 asoc: Reorder list used in topology search
Routing driver searches CAL_TYPE list for a matching
topology and then searches the LSM_CAL_TYPE list if
no entry is found in the first list.
If it so happens that a capture type cal block is
present in the CAL_TYPE list, it will be picked even
though the correct entry is present in the LSM_CAL_TYPE list.
Flip the order to give priority to LSM_CAL_TYPE list.
We expect only LSM clients to populate this list and
also enforce exact match for LSM clients.

CRs-Fixed: 2250684
Change-Id: I2ab3481b43a5d8b059a20cb919ff097fc8cf2774
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
2019-03-12 22:38:33 -07:00
Derek Chen
609be4509a ASoC: msm: add machine drv as apr child node
Automotive machine driver is a child node of apr
so it will be re-probed upon ADSP UP event received
in APR driver during boot up.
Remove the dummy machine driver solution.

Change-Id: I9ac3e26366a5b01869183e8b83e47049ec770c7c
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-03-12 22:37:26 -07:00
Rahul Sharma
3c95e9c53b asoc: sa8155: support SSR handling for snd card status
Add support for handling snd card status upon
SERVICE_DOWN and SERVICE_UP callback for ADSP SSR.

Change-Id: Ie753a0edc59ca10da8d9c23f9e6c7c6244a8e8a6
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-03-12 22:31:35 -07:00
Xiaoyu Ye
f74e89bd89 asoc: avoid excessive logging
Excessive logging by pr_err() could cause audio thread to stuck
in the printing session which results PD down notification timeout.
This eventually can cause ADSP PDR failure. Fix this issue by using
pr_err_ratelimited and dev_err_ratelimited to limit the number of
error messages during the ADSP PDR.

Change-Id: I68b617fef53ebd03ba79fd919bffd8c35e6eb048
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-03-12 22:28:30 -07:00
Nidhisha Dhananjayan
d84669e428 asoc: Stream_open issue fix for gapless playback
msm_compr_trigger for next track is updated with
q6asm_stream_open_write_v5 depending on the
avcs_api_version.

Change-Id: I6b3862a7b8e0480fffdcddc2ff0949cf5399d7a6

Signed-off-by: Nidhisha Dhananjayan <nidhis@codeaurora.org>
2019-03-12 22:11:07 -07:00
Dhananjay Kumar
242b5b060a asoc: add support to configure MFC in ec ref path
Add support to process ec at channel count other than the
playback channel count by providing ability to set downmixed
channel count and downmixing weights to be used to downmix
ec ref data obtained from playback path.
These configs would be used to explicitly configure MFC module
present in ec ref path, for usecases where ec processing cannot
be done at playback channel count due to algorithmic or resource
limitations.
Also increase the ec ref channel count support to Sixteen from
current max of Eight.

Change-Id: I2297508aedd177580b1c9b2bed3c7c8421507629
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-03-12 22:05:45 -07:00
Chaithanya Krishna Bacharaju
52bb6616c1 asoc: msm-lsm-client: stop lab during lsm close
Buffering is not stopped during lsm close due to
which lab buffers can be queued during teardown of
session. This leads to read being issued even after session
close. Stop lab during close to avoid this. Use correct
return value to indicate errors during lsm start and stop.

Change-Id: I52fa33cebaa3ee6ae60eb2a60bb1e833f2a9d0d6
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-03-12 22:02:10 -07:00
Aditya Bavanari
350d51c06a asoc: sm6150: Remove zdet gpio callback for tasha variant
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>
2019-03-13 09:41:48 +08:00
Linux Build Service Account
8766446f90 Merge "asoc: add support for assigning SLIMbus device ID dynamically" 2019-03-12 02:58:38 -07:00
Rohit kumar
2a64e52662 dsp: asm: Add check for num_channels before calling q6asm_map_channels
Channel_mapping array size varies for different commands.
Add check for num_channels before calling q6asm_map_channels.

Change-Id: Iccbcfe82f716fc0ffe0a26b1779dcaa1c3cb805b
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2019-03-11 05:39:41 -07:00
Banajit Goswami
4052afe2c7 asoc: add support for assigning SLIMbus device ID dynamically
SLIMbus device ID can be different for SLIMbus ports on different
targets. Add support for dynamically assigning SLIMbus device ID
at bootup time from device tree.

Change-Id: I5a3b0812085ee53e8cd3bfac96eaaa939fda4106
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2019-03-10 20:40:17 -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
Sudheer Papothi
a1351b945f ASoC: codecs: Add support for soundwire clock for VA usecase
Add support for soundwire clock for VA usecase.

Change-Id: I1f56678ad36e4ae6c8dd458c0b7e96e847694050
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-03-07 18:55:11 +05:30
Linux Build Service Account
572dec3fcd Merge "asoc: Add TRUEHD format to list of codes" 2019-03-05 22:25:18 -08:00
Linux Build Service Account
c3119154d5 Merge "asoc: Add API for capture path channel cfg" 2019-03-05 22:25:14 -08:00
Linux Build Service Account
a8b5946ade Merge "asoc: Add new channel ID to mark unused channel map slots" 2019-03-05 22:25:13 -08:00
Linux Build Service Account
a7377a88c6 Merge "asoc: qcs405: Add devices for concurrent audio record" 2019-03-05 22:25:08 -08:00
Mangesh Kunchamwar
cdd68dbe72 msm: vote for LPASS core while access LPASS registers
When ADSP is in power collapse or island state, it would fail
to access LPASS codec register.Vote for LPASS core to avoid
LPASS power collapse with pmruntime approach while accessing
LPASS registers & TLMM.

Change-Id: I74d037e499fb6f1245b9a1bd1b0a77200608c27b
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2019-03-06 08:50:31 +08:00
Linux Build Service Account
fcafe38f3a Merge "asoc: msm: fix FM hosteless capture" 2019-03-05 15:24:53 -08:00
Linux Build Service Account
8de838acd3 Merge "asoc: codecs: bolero: enable gpio and clk in right sequence" 2019-03-05 14:17:18 -08:00
Linux Build Service Account
ecb1c25ff1 Merge "asoc: msm: fix data port collisions for Kona" 2019-03-05 14:17:17 -08:00
Linux Build Service Account
4ef6a037b5 Merge "asoc: check payload length against structure size" 2019-03-05 02:43:27 -08:00
Linux Build Service Account
cc79d879b8 Merge "asoc: routing: add widget connection for FM playback" 2019-03-04 21:40:01 -08:00
Linux Build Service Account
e816c925e4 Merge "asoc: kona: update pcm id for Kona FE" 2019-03-04 21:39:59 -08:00
Ralf Herz
e3fb995afa asoc: Add TRUEHD format to list of codes
Support TRUEHD coding format in TX path.

Change-Id: Id93c42392b3be86419ddc4c1ae9639b1f3a797ef
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-03-04 21:22:08 -08:00
Ralf Herz
4bbc917e03 asoc: Add API for capture path channel cfg
Add mixer_ctl to set multichannel configuration for capture path.

Change-Id: Ibed2d459b8b3959322bd547fe9b7a3c270ef0550
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-03-04 21:21:40 -08:00
Ralf Herz
49c325c69f asoc: Add new channel ID to mark unused channel map slots
Allow to mark entries in a channel map as unused to prevent mixing other
channels in that slot.

Change-Id: Iefbfb861b796129211e929cb0ddb84041b9f57b0
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-03-04 21:21:31 -08:00
Ralf Herz
88aefa8368 asoc: qcs405: Add devices for concurrent audio record
Add dai links to allow for several concurrent audio recordings
from SPDIF and HDMI interfaces on qcs405.

Change-Id: I5f4a2fcf16538f71ad14b3389732366e8d8e718f
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-03-04 21:19:47 -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
Linux Build Service Account
753eedb972 Merge "asoc: add support to set custom channel mixer coefficients" 2019-03-04 11:44:12 -08:00
Linux Build Service Account
16670950a8 Merge "asoc: msm-lsm-client: fix error logging for set session data failure" 2019-03-04 11:44:03 -08:00
Karthikeyan Mani
242c2b8c1a asoc: msm: fix data port collisions for Kona
Enable block packing mode so that soundwire offset2
parameter takes effect and the channels do not overlap.

Change-Id: I9f5c04a8dfbaba87c3c949c7b4c739d0c1039e21
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-02 15:26:20 -08:00
Karthikeyan Mani
01f1ba49be asoc: codecs: bolero: enable gpio and clk in right sequence
Enable soundwire gpio before enabling soundwire clock
so that bus clash does not happen when interrupts are
received.

Change-Id: I40983b8837373f1ea7ac8fa6add7c56225ff0592
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-01 19:17:12 -08:00
Linux Build Service Account
52bdcf758c Merge "ASoC: bolero: Check for valid handle before pm_runtime_resume" 2019-03-01 03:31: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
Meng Wang
bbf7792327 asoc: routing: add widget connection for FM playback
Add connection for RX_CDC_DMA_RX_0 and WSA_CDC_DMA_RX_0
to suppport FM playback.

Change-Id: I406faecd089e063848e9e8b507b1e1a0d1c21454
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-03-01 13:24:14 +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
Sudheer Papothi
f2afc390ce ASoC: bolero: Check for valid handle before pm_runtime_resume
Check for valid handle before pm_runtime_resume in bolero register
read/write functions to avoid dereference.

Change-Id: I34d567e7575202817f4fcda784d0f3df2ed77bde
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-03-01 08:09:50 +05:30
Dhananjay Kumar
807f7e9521 asoc: add support to set custom channel mixer coefficients
Enhance Channel Mixer control for MultiMedia Frontends to
get custom channel mixer coefficients from userspace and
use it during device routings to control stream to device
channel mappings.

Change-Id: Icf950377dede46b097c8656174af5eb311bf719a
Signed-off-by: Cong Tang <congt@codeaurora.org>
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-02-28 08:57:51 +08:00
Xiaojun Sang
4ccf051bef asoc: check payload length against structure size
Payload length must exceed structure size. Otherwise, it may
lead to out-of-boundary memory access.

Change-Id: I090de5116ab04a4ca2b9c485e17617fe9e861ad5
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-02-28 08:50:37 +08:00
Linux Build Service Account
74d9fedcb2 Merge "asoc: codecs: bolero: leave frame sync to default value" 2019-02-27 14:35:14 -08:00
Linux Build Service Account
1ede4485f7 Merge "ASoC: wcd938x: Clear tx hold hpf after device path setup" 2019-02-27 11:28:29 -08:00
Linux Build Service Account
d60c66330d Merge "asoc: Add sources to dai links for concurrent audio record" 2019-02-27 01:15:35 -08:00
Linux Build Service Account
dcd3cb3de2 Merge "ASoC: rx-macro: Enable hph idle detect feature" 2019-02-27 01:15:35 -08:00
Linux Build Service Account
16470427d0 Merge "asoc: Add support for Aptx Adaptive decoder" 2019-02-27 01:15:33 -08:00
Linux Build Service Account
b5e985e40c Merge "asoc: codecs: Add pm6125_divclk entry" 2019-02-27 01:15:31 -08:00
Linux Build Service Account
865c73dda2 Merge "asoc: sm6150: Correct codec_root entry creation logic" 2019-02-27 01:15:30 -08:00
Linux Build Service Account
23ce3cad70 Merge "asoc: sm6150: Fix logic in comparison of sound card name" 2019-02-27 01:15:29 -08:00
Linux Build Service Account
4b44ce5637 Merge "ASoC: wcd-mbhc: Disable moisture_en when duty cycle is enabled" 2019-02-27 01:15:28 -08:00
Linux Build Service Account
87219bb7e3 Merge "asoc: qcs405: enable lineout booster GPIO" 2019-02-26 19:54:22 -08:00
Linux Build Service Account
f1fb31dad3 Merge "ASoC: wcd937x: Enable surge protection for talos" 2019-02-26 19:38:39 -08:00
Linux Build Service Account
e0db029111 Merge "ASoC: sm6150: Enable moisture detection polling on Talos" 2019-02-26 19:38:38 -08:00
Linux Build Service Account
6e9de554df Merge "asoc: update be_name and adm_programable_channel_mixer parameters" 2019-02-26 19:38:37 -08:00
Linux Build Service Account
a14c0fbcd9 Merge "asoc: sm6150: Add support for tasha snd card variants" 2019-02-26 19:38:35 -08:00
Linux Build Service Account
dacd65b4e4 Merge "asoc: Add routing controls for SLIM_1_TX" 2019-02-26 19:38:33 -08:00
Karthikeyan Mani
2797084510 asoc: codecs: bolero: leave frame sync to default value
Frame sync of bolero macros need to be at 4KHz default
value.

Change-Id: Ia5399a3c4bee7e0f74115e5ffcb1ed51cbd07639
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-26 13:30:23 -08:00
Aditya Bavanari
5b2d30fa26 asoc: sm6150: Correct codec_root entry creation logic
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>
2019-02-26 15:23:11 +08:00
Aditya Bavanari
054e70ec0e asoc: sm6150: Fix logic in comparison of sound card name
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>
2019-02-26 15:21:06 +08:00
Mangesh Kunchamwar
35e7ec72bb asoc: qcs405: enable lineout booster GPIO
Activate lineout booster GPIO during starting lineout usecase
and disable during shuttingdown the lineout usecase in qcs405.

Change-Id: I83877e6a531efc4b571d9868f1b019af5d9b1b82
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2019-02-26 15:06:40 +08:00
Aditya Bavanari
45e2e65529 asoc: sm6150: Add support for tasha snd card variants
Add DAI links and sound card registration support
for tasha sound card variants.

Change-Id: If93dc1dae2f10f9ac6b8e2e80a9e38cadc14289b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-02-26 14:56:59 +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
Sudheer Papothi
d6c61bd617 ASoC: wcd938x: Clear tx hold hpf after device path setup
During capture path setup, tx path hpf is set to hold.
Clear tx path hpf hold after device path setup.

Change-Id: I3299fc5d84d6e86e23c9ef150c8770ef9d59a870
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-02-23 07:36:18 +05:30
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
Vatsal Bucha
8bcc97c618 ASoC: rx-macro: Enable hph idle detect feature
Headset Idle detect feature powers off PAs when
there is no signal. Add widget to enable
this feature for headset path.

Change-Id: I4c88057b347e40317578b5eb014053c17d196b85
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-02-20 19:20:12 +08:00
Ralf Herz
a70027da2c asoc: Add sources to dai links for concurrent audio record
Add SEC_MI2S, PRI_SPDIF and SEC_SPDIF as source to dai links for
concurrent audio recordings.

Change-Id: I9c4a46fa4657222ce80b21fd4320715b8c89f36a
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-02-20 03:18:58 -08:00
Chaithanya Krishna Bacharaju
cdde180060 asoc: Add support for Aptx Adaptive decoder
Add support for Aptx Adaptive decoder. Introduce new
get and put for ABR feedback decoder controls since
same decoder config format is required to be passed
by client in regular and feedback decoder configuration.

Change-Id: I96d9daef2a0967788640c2efb5478119eeae48ab
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-02-20 19:07:08 +08:00
Aditya Bavanari
94eb98b659 asoc: codecs: Add pm6125_divclk entry
Add pm6125_divclk entry in pmi clock
array to support tasha codec in trinket target.

Change-Id: Ib2bacbeebb48d9b711abbc9f923a3b4b22cd7629
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-02-20 03:04:25 -08:00
Vatsal Bucha
e1728c5c3c ASoC: wcd-mbhc: Disable moisture_en when duty cycle is enabled
Moisture Detection should be disabled at init if duty cycle is enabled.

Change-Id: If398928a680174d981b9baefe02d9efd4e21766e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-02-20 19:00:12 +08:00
Vatsal Bucha
7aa2f97f60 ASoC: wcd937x: Enable surge protection for talos
Enable surge protection feature for talos.

Change-Id: If1a5e4d60a80f288825ee0e39645166f0cb9446f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-02-20 18:58:34 +08:00
Dhananjay Kumar
1bf124f9d9 asoc: msm-lsm-client: fix error logging for set session data failure
Error logging from set session data is not reflecting actual reason of failure.
Update error logging for this failure with correct info.

Change-Id: I5009a8b17128f0093e16f75c0e212a9bfb1f1a2e
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-02-20 18:56:00 +08:00
Vatsal Bucha
3c7524b673 ASoC: sm6150: Enable moisture detection polling on Talos
Enable polling when moisture is detected on Talos.

Change-Id: Ice463c8bbbbd5de8b2b8c02cbce2543243b10703
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-02-20 18:54:35 +08:00
Meng Wang
f016d3089f asoc: update be_name and adm_programable_channel_mixer parameters
Some new backends are added and update be_name for channel mixer.
Update adm_programable_channel_mixer parameter to support record
echo from RX.

Change-Id: I628292112f558eca9301c67b36e6de41924f27d5
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-02-20 18:32:11 +08:00
Samyak Jain
810e42a354 asoc: Add routing controls for SLIM_1_TX
Add routing controls for SLIM_1_TX for compress capture.

Change-Id: I8d350ebc60cc081e7027352ddd77ebbb59294189
Signed-off-by: Samyak Jain <samyjain@codeaurora.org>
2019-02-20 02:24:16 -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
Linux Build Service Account
914aaa0a41 Merge "asoc: codecs: wcd938x: remove on demand vdd buck" 2019-02-17 00:21:51 -08:00
Linux Build Service Account
1aeded0dd7 Merge "asoc: codecs: wcd938x: disable pm runtime" 2019-02-17 00:21:50 -08:00
Linux Build Service Account
0bb00a0f62 Merge "ASoC:kona: Add soundwire DMIC port configuration on kona" 2019-02-17 00:21:49 -08:00
Linux Build Service Account
2591646070 Merge "ASoC: bolero: Enable clock Fs generation in bolero codec" 2019-02-17 00:21:49 -08:00
Linux Build Service Account
4b706081b5 Merge "asoc: codecs: bolero: add split codec check" 2019-02-17 00:21:48 -08:00
Linux Build Service Account
32754ec645 Merge "asoc: codecs: wcd938x: match slave property to dt" 2019-02-17 00:21:47 -08:00
Linux Build Service Account
0097f79686 Merge "asoc: codecs: make cdc pinctrl common to all core objects" 2019-02-17 00:21:47 -08:00
Linux Build Service Account
6f50644357 Merge "asoc: codecs: wcd938x: enable micbias for capture" 2019-02-17 00:21:46 -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
Karthikeyan Mani
c0a8adf365 asoc: codecs: wcd938x: disable pm runtime
Soundwire master receives the pm runtime calls, so slave
does not need to enable pm runtime.

Change-Id: I3e09b9d1eee9bbfbe525fbf375bf938600f30064
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-15 17:31:57 -08:00
Karthikeyan Mani
92fccbfd8f asoc: codecs: wcd938x: update tx mode setting
Change tx mode setting from dapm widget to kcontrol
as it is not needed in codec route and only needed
for updating mode value.

Change-Id: I5d66b9a82b541b97f5c5789fe2e49d329c6952a8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-15 17:24:49 -08:00
Karthikeyan Mani
1475b5915b asoc: codecs: bolero: update mic paths
Add all combination of routes between adc and
available mic paths.

Change-Id: If5781509bdc667d94ca1ad991388a8d57af75b94
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-15 14:18:48 -08:00
Karthikeyan Mani
09b5461237 asoc: codecs: wcd938x: remove on demand vdd buck
All codec supplies are treated as static supplies
and do not require on demand supply.

Change-Id: Idf54f65cc6089675e21a52ea49cdf46eae98f295
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-15 11:03:54 -08:00
Karthikeyan Mani
fbdcab9e8d asoc: codecs: wcd938x: enable micbias for capture
Micbias needs tx bias clock bit to be enabled.

Change-Id: I6a73d05eb9363c3dce267f6730c44b0442387365
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-14 00:35:17 -08:00
Karthikeyan Mani
1efdee5fd5 asoc: codecs: make cdc pinctrl common to all core objects
cdc pinctrl needs to be loaded for both v1 and v2 wcd
core objects.

Change-Id: I4742e96b54bbd481583a6d12fd32fddb63216077
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-14 00:33:06 -08:00
Karthikeyan Mani
634fa7593f asoc: codecs: bolero: add split codec check
Add a check to see if split codec is present for
the slaves being probed and add platform data to
such slaves.

Change-Id: I8b143c551a481b88dffc8763421d2aaa02c0012d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-07 14:58:53 -08:00
Karthikeyan Mani
c61592adb3 asoc: codecs: wcd938x: match slave property to dt
Match the rx/tx slave node property to that of in dt
to add slave components.

Change-Id: Id990dc0c85691c4af8b8adb7f9de26063559b7b8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-07 14:58:50 -08:00
Sudheer Papothi
17875f5c71 ASoC:kona: Add soundwire DMIC port configuration on kona
Add soundwire DMIC port configuration on kona. This change
will enable audio capture from WCD938x codec DMICs.

Change-Id: I5b9e9a65f5bc021d4b19a838c17b56b3cb9eb4eb
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-02-06 23:15:30 +05:30
Sudheer Papothi
ff649f9d73 ASoC: bolero: Enable clock Fs generation in bolero codec
Clock Fs generation registers are in always on domain but
is needed for all the playback and capture usecases. Enable
clock Fs generation in the boloero codec after the clock
enablement.

Change-Id: I3a9cf14660f871b26ec96ef8b3e245ba5dadeb78
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-02-05 23:56:32 +05:30
Linux Build Service Account
d59c94ebae Merge "asoc: bolero: enable VA macro island mode MUX select on Kona" 2019-02-01 08:20:56 -08:00
Xiaoyu Ye
2122732534 asoc: bolero: enable VA macro island mode MUX select on Kona
VA macro is currently lacking capability to dynamically select
island mode on Kona. Add support in VA macro driver to read MUX
selection register from DT to enable dynamic island mode select.

Change-Id: I5462265fffcc6d6bbb3ff6eead5f44f0b8909141
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-29 15:46:55 -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
Linux Build Service Account
af1fbf5fa2 Merge "soc: soundwire: Add support for GPIO interrupt path" 2019-01-28 11:11:23 -08:00
Linux Build Service Account
62c4ce4766 Merge "asoc: wcd937x: Clear Buck disable flag in PMU even if already up" 2019-01-28 11:11:22 -08:00
Linux Build Service Account
a782802851 Merge "asoc: separate perfmode mode for source and sink" 2019-01-28 11:11:20 -08:00
Linux Build Service Account
1c6384b3b9 Merge "asoc: codecs: Add support for setting ear gain ctl" 2019-01-28 11:11:16 -08:00
Karthikeyan Mani
996c1bff0e ASoC: codecs: qcrg update for HPH and TX channel paths
Add updates to HPH rdac gain control registers and
tx channel register writes.

Change-Id: I6c32f0f4ee049404c1648104c5e624eaee3a5817
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-24 11:28:38 -08:00
Tanya Dixit
2e838e52fe asoc: codecs: Add support for setting ear gain ctl
Add support for setting EAR PA gain directly using
mixer control.

Change-Id: Ifd9e31ed45d10b5ea0f9cf546806ef78ece9e181
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-21 21:11:55 -08:00
Vatsal Bucha
5141b172ce ASoC: wcd937x: Enable and disable HPH OCP at PA to avoid CnP
Enable HPHR and HPHL OCP after PA enable and disable it
before PA disable to avoid CnP issues at teardown.

Change-Id: Ic08a8862a7fb4f40ecc6060de6aa1eadc11f1c0f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-22 13:11:17 +08:00
Ramprasad Katkam
452772abf9 asoc: bolero: Do not disable mclk in widget power down upon enable failure
If mclk enable is failed during mclk widget power up event, it would
still send a power down event for the widget during disable, which could
disable the mclk voted by other client like soundwire. Do not disable
mclk during power down if enable is failed during power up.

Change-Id: If782b34f9ef414501590ed8cf681bbe58f1dda76
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-22 12:51:39 +08:00
Ramprasad Katkam
cbb6f02c95 asoc: bolero: set bolero dev_up flag before macro notification
When UP notification is sent to macros, the macros can try
to do regcache sync for their regions. Set dev_up flag in bolero
before sending UP event to macros to enable register access.

Change-Id: Ic04cfef121e9be55e91bf8927da26f9ec249338e
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-22 12:49:48 +08:00
Surendar Karka
9cd3cb3766 asoc: separate perfmode mode for source and sink
Add support to configure perfmode for source and sink
in transcode loopback.

Change-Id: Iafb0934764139436bf9b71cd3e83cb28a1a7c4a8
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-01-22 12:45:31 +08:00
Vatsal Bucha
1ca5d397ba ASoC: wcd937x: Fix CnP when compander is disabled
Pop noise is observed at teardown when compander
is disabled. Allow proper delay after PA disable
to resolve the pop.

Change-Id: I15efa08f28bc1dd32e39b3ca1311b1e417199fd3
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-22 11:10:28 +08:00
Ramprasad Katkam
b7fc921d89 asoc: wcd937x: Clear Buck disable flag in PMU even if already up
Buck disable flag, which is used to indicate if suspend can disable
the buck, is not cleared during powerup if it is already enabled.
This causes suspend to disable buck even during active usecase.
Clear the buck disable flag when returning due to already enable.

Change-Id: I5118b66492dff27965a587e1bc6b916d5c26b9fb
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-21 18:48:17 -08:00
Karthikeyan Mani
a27b0c32ea ASoC: codecs: qcrg update for TX paths
Add qcrg updates for AMIC and DMIC register updates
and modes.

Change-Id: I7401b21cfffd2c40f456d985e2b3ea1988f4ba6c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-16 11:19:33 -08:00
Linux Build Service Account
bde36b8fc2 Merge "ASoC: msm: add external sound device dai's for kona" 2019-01-09 16:50:48 -08:00
Linux Build Service Account
a024075d5b Merge "asoc: codecs: Update power setting for CLS_H_LOHIFI mode" 2019-01-08 21:26:01 -08:00
Linux Build Service Account
2bb5bf4130 Merge "asoc: csra66x0: Add support for 16ch audio playback" 2019-01-08 16:33:59 -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
Linux Build Service Account
7d3f5b34d5 Merge "asoc: codecs: Increase timeout for session close during SSR/PDR" 2019-01-08 05:32:12 -08:00
Linux Build Service Account
1ec5816c0b Merge "dsp: Add frame size control parameter for AAC encoder" 2019-01-08 05:32:06 -08:00
Linux Build Service Account
c4967e8fa0 Merge "asoc: bolero: add support to enable VA macro BE DAI on Kona" 2019-01-08 05:32:04 -08:00
Linux Build Service Account
726f8d0cf7 Merge "ASoC: msm: add VA Macro's BE DAI links for bolero" 2019-01-08 05:32:02 -08:00
Linux Build Service Account
706d3a9a51 Merge "asoc: wcd937x: stop mbhc during ssr down" 2019-01-08 05:32:00 -08:00
Linux Build Service Account
a0b8337922 Merge "asoc: bolero: Call swr device down before setting ssr down" 2019-01-08 05:31:57 -08:00
Linux Build Service Account
e7d0905375 Merge "soc: swr-mstr: Reset swr only during init or ssr" 2019-01-08 05:31:56 -08:00
Linux Build Service Account
4c11ba0a0f Merge "asoc: wcd937x: Fix register names and properties" 2019-01-06 20:27:03 -08:00
Linux Build Service Account
becc3cca8d Merge "asoc: codecs: mbhc: Detect cross connection for mono headsets" 2019-01-06 06:32:28 -08:00
Linux Build Service Account
0c6654ade2 Merge "ASoC: wcd937x: Enable watchdog interrupt" 2019-01-06 06:32:26 -08:00
Linux Build Service Account
9cdd3ad6f9 Merge "asoc: dsp: ipc: Reduce wait timeout to 1 second" 2019-01-06 06:32:24 -08:00
Linux Build Service Account
a5443b30ea Merge "asoc: csra66x0: Support of sysfs interface" 2019-01-06 06:32:20 -08:00
Linux Build Service Account
b460c82036 Merge "audio-kernel: asoc: Remove extra const def" 2019-01-06 06:32:18 -08:00
Linux Build Service Account
20234e1e39 Merge "ASoC: bolero: Remove unwanted logs at bootup" 2019-01-06 06:32:10 -08:00
Linux Build Service Account
1d284cb3b5 Merge "asoc: sm6150: Add TX_CDC_DMA_TX_0 backend dailink" 2019-01-06 06:32:08 -08:00
Linux Build Service Account
8f31e89b77 Merge "asoc: wcd937x: Change voltage for micbias depending on dt value" 2019-01-06 06:31:32 -08:00
Linux Build Service Account
b80e10875b Merge "Asoc: sm6150: Add compress capture support" 2019-01-06 06:31:11 -08:00
Linux Build Service Account
64ea866ad3 Merge "asoc: wsa881x: change WSA temparature log level to pr_debug" 2019-01-06 06:30:56 -08:00
Linux Build Service Account
d67f7487ef Merge "asoc: msm-dai-q6-v2: add a new VA macro DMA TX CPU DAI" 2019-01-06 06:30:41 -08:00
Ramprasad Katkam
a2958a6205 asoc: wcd937x: stop mbhc during ssr down
Stop mbhc operations during ssr down to cancel
any pending detection sequences.

Change-Id: I6aa8c61c2cc74fc08adf57c58673acaa753ac322
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-03 09:45:54 +08:00
Xiaoyu Ye
5efecda1cb asoc: bolero: add support to enable VA macro BE DAI on Kona
VA HW macro supports three BE DAIs on Kona. Add support to
enable the third one.

Change-Id: I418a6a0bb1bcbc06fe71de0977d974432e1d6c22
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 17:30:13 -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
Xiaoyu Ye
f439aedf1f asoc: msm: routing: add support for VA macro DMA interface
VA macro on Kona has three DMA TX ports. Add support routing
for the third VA macro DMA TX port to add backend and the
corresponding front ends.

Change-Id: I07298045292443af1220d9b95f4cd7aee0b79c66
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 16:40:01 -08:00
Xiaoyu Ye
a83ad85054 asoc: msm-dai-q6-v2: add a new VA macro DMA TX CPU DAI
VA macro in Kona has three DMA TX ports. Add a new VA
DMA TX CPU DAI in the DSP DAI driver to use it on Kona.

Change-Id: Ic144dbed1bd63af6f0150f854fdb74d57e156839
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 12:12:26 -08:00
Aditya Bavanari
ce4f3d9b59 asoc: codecs: Increase timeout for session close during SSR/PDR
Userspace takes 10 seconds to close the session when
pcm_start fails due to concurrency with PDR/SSR.
Match the SSR timeout in va macro to user space
session tear down delay.

Change-Id: I1e0fb4bdb25a43cbe7c345a47c115410b964e6eb
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-01-02 18:10:43 +08:00
Ramprasad Katkam
5ee54aee41 asoc: bolero: Call swr device down before setting ssr down
Invoke swr device down callback to set soundwire master
to reset state before setting ssr down flag. This is to
ensure master is reset to proper state after ssr/pdr.

Change-Id: Ifb5548f603ac03b772006314f4723c0ac0176928
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 01:37:06 -08:00
Ramprasad Katkam
a4c747b6d5 soc: swr-mstr: Reset swr only during init or ssr
Reset swr only during init or ssr-pdr scenarios.
Do not reset swr during clock stop, which would
result in bad state of master and cause error
interrupts.

Change-Id: I88e071921409a5b5797aeedb8e7cb57cb5d5bb9a
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 17:31:14 +08:00
Aniket Kumar Lata
be83735305 dsp: Add frame size control parameter for AAC encoder
BT sink devices have a limitation on the packet sizes
they can receive and handle from BT sources. AAC encoder
can produce output frames which can vary in size based on
content being encoded. If frame size exceeds MTU size of
BT sink device, it will lead to incorrect decoding of
frames in BT sink.
Add a frame configuration parameter (MTU/Peak bitrate)
for AAC encoder to solve this problem.

Change-Id: Ia7795049e982400b0b3657b0b3a8990fc6920e38
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2019-01-02 17:28:08 +08:00
Vatsal Bucha
83e6ee1c40 asoc: sm6150: Add TX_CDC_DMA_TX_0 backend dailink
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>
2019-01-02 17:19:44 +08:00
Vatsal Bucha
39ead2c1e8 ASoC: bolero: Remove unwanted logs at bootup
Correct name of widgets for tx macro from
TX SWR_MIC to TX SWR_DMIC. Also assign codec pointer
to rx_priv before calling rx_macro_init_bcl_pmic_reg.

Change-Id: I268d79413c53bcd2d8e7a391859b71b7a7e3f64e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-02 17:16:23 +08:00
Vatsal Bucha
c2d6c22d1d asoc: bolero: Add routing for rx echo reference
Add mixer control and routing to enable echo reference
for rx_macro.

Change-Id: Ic1095eaa8024f2cb61722609daae94bc645b263b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-02 17:13:18 +08:00
Ramprasad Katkam
ebcfca4e9a asoc: codecs: mbhc: Detect cross connection for mono headsets
Mono headsets have only one channel connected. Hence make cross
connection decision based on the voltage result of alteast one
channel showing cross connection.

Change-Id: I22a4ea7e25d09e785e7141f4a74c2830fdff555e
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 17:07:27 +08:00
Derek Chen
0fc1535782 ASoC: msm: update quat/quin tdm slot config/mapping
Update QUAT and QUIN TDM slot configuration
and mapping information for A2B support.

Change-Id: I17a4019f961846477f880cb2a59bc4c8f4c2fe28
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-01-02 00:58:04 -08:00
Dieter Luecking
02a0f638af asoc: csra66x0: Add support for 16ch audio playback
To support 16 channel audio playback 8 codecs are needed.
Update cluster device table to support this number of
codecs.

Change-Id: I1ab3283b3174357b8b6647662c4519e5dca4bb97
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
2019-01-02 16:56:14 +08:00
Tanya Dixit
46ec0f2835 asoc: wcd937x: Fix register names and properties
Update the register names and default values to
be same as the software document of codec.

CRs-Fixed: 2334177
Change-Id: Iec3ce76dceb44cef64c1f38a6cd75cb40ee2a539
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2019-01-02 16:54:41 +08:00
Romed Schur
8883e449af asoc: csra66x0: Support of sysfs interface
Sysfs interface added to support filter register access.

Change-Id: I6dcbd3e728ab6c80c6a1d29f6fc2e795f4a09119
Signed-off-by: Romed Schur <rschur@codeaurora.org>
2019-01-02 16:49:23 +08:00
Josh Kirsch
ea69fedaa3 audio-kernel: asoc: Remove extra const def
Remove extra const definition. Causing compilation
error on ARM compiler.

Change-Id: I56961168c8a4fc1248d5d43661159b9cf1ff2d98
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
2019-01-02 16:23:11 +08:00
Vatsal Bucha
beccfad9b6 ASoC: wcd937x: Enable watchdog interrupt
Handle PDM watchdog interrupt. Enable watchdog
before analog PA is enabled and disable it
after analog PA is disabled so as to prevent false alarms.

CRs-Fixed: 2336526
Change-Id: I3c16a9dcd0f4f84bf8ad0bfde9560330c143cdf9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-02 16:20:07 +08:00
Vignesh Kulothungan
0fcf2af3df asoc: dsp: ipc: Reduce wait timeout to 1 second
Reduce the amount of time driver waits to get a response from ADSP.
Current wait time in some cases is 5 secconds, which might cause
user space crashes in Android P. So reducing the timeout to
1 second.

CRs-Fixed: 2318751
Change-Id: I6b6789aa5b408659dd57f8f6b017df52d14b28aa
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-01-02 16:04:27 +08:00
Vatsal Bucha
1793ff07cb asoc: wcd937x: Change voltage for micbias depending on dt value
MICBIAS is always set to 1.8V. Change this voltage
depending on dt value for respective micbias.

Change-Id: I8eb1e71ae0256423bfd0bcc8ba2cd6bcc4a5ee61
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-02 15:57:20 +08:00
Laxminath Kasam
ea2b058566 asoc: codecs: Update power setting for CLS_H_LOHIFI mode
In new class-H driver used for tanggu or later variants,
use LP(low power) power setting for CLS_H_LOHIFI same
as tavil codec.

Change-Id: I6a0f6e6d39e5704d6ea429ae2f3698750b7ea487
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-01-02 15:50:44 +08:00
Md Mansoor Ahmed
fc75559916 Asoc: sm6150: Add compress capture support
Add FE dialinks to enable multi compress capture
sessions on sm6150 target.

Change-Id: Ib26fc6c84d7993c34725a3b67596d4f059aa286e
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2019-01-02 15:27:28 +08:00
Surendar Karka
809cb8ed58 asoc: wsa881x: change WSA temparature log level to pr_debug
Dmesg logs are getting flooded with WSA temparature
logs. Change the log level to pr_debug to get rid
of this messages.

Change-Id: Ia4ccca47c5e6e5d56883ff73e1ae4278ff855be3
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-01-02 15:21:25 +08:00
Linux Build Service Account
bbcb107778 Merge "ASoC: msm: Get the soundwire port configuration" 2018-12-21 22:42:19 -08:00
Linux Build Service Account
04f35c8f15 Merge "ASoC: msm: add bolero codec functionality" 2018-12-21 22:42:18 -08:00
Linux Build Service Account
dd226cab67 Merge "ASoC: config: add config to compile audio drivers for kona" 2018-12-21 21:35:35 -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
Linux Build Service Account
f6d54eff30 Merge "asoc: bolero: add support to enable VA MCLK MUX select on Kona" 2018-12-21 05:09:20 -08:00
Meng Wang
b0e04799e4 ASoC: config: add config to compile audio drivers for kona
Add config to compile audio drivers for kona.

Change-Id: I3367a68d0109c80de8525fd74ebaef2959684865
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-21 12:19:44 +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
Meng Wang
19fa6defdc asoc: update kernel version for kona
Update kernel version for kona.

Change-Id: I490832f0a62f8f1b5cfe6fc6134e22cc5d8ae583
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-20 12:36:53 +08:00
Xiaoyu Ye
ccdb91522a asoc: bolero: add support to enable VA MCLK MUX select on Kona
VA macro is currently lacking capability to dynamically select
MCLK on Kona. Add support in VA macro driver to read MUX select
property from DT to enable dynamic MCLK MUX select.

Change-Id: I46d0b760119a2d8c2ed754ae9cb43ba717fa300b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-12-18 17:46:23 -08:00
Linux Build Service Account
50840ecb1b Merge "asoc: update relative header files" 2018-12-18 11:22:16 -08:00
Linux Build Service Account
8bff0e6c89 Merge "ASoC: sm8250: Add soundwire port configuration" 2018-12-18 10:31:10 -08:00
Linux Build Service Account
4dbba562bf Merge "asoc: wcd938x: update wcd938x driver" 2018-12-18 09:57:55 -08:00
Linux Build Service Account
d130426de6 Merge "asoc: routing: add afe loopback for FM on kona" 2018-12-17 21:17:20 -08:00
Meng Wang
11a25cf657 asoc: update relative header files
Move all relative header files to include folder.

Change-Id: Ic61a61a88823b4749dbe8c1f680d08201a3b4a48
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-18 10:50:27 +08:00
Sudheer Papothi
d61f0a4c25 ASoC: sm8250: Add soundwire port configuration
Add soundwire port configuration for sm8250 target.

Change-Id: Id9554c1075d07adb2258a7450453032185f17e01
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-12-17 15:31:10 -08:00
Sudheer Papothi
a3e969d6f0 ASoC: bolero: Add support to retrieve soundwire port configuration
Add support to get the platform specific soundwire port configuration
for soundwire master ports.

Change-Id: Ie1d32a77d534f6c3f397936b85c025b14d01f321
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-12-17 14:30:55 -08:00
Meng Wang
64e8c2b2af asoc: wcd938x: update wcd938x driver
Update wcd938x driver to fix compile error.

Change-Id: Ifc939a46d7e09852b147289dd9e69d2f56a67751
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-17 18:55:51 +08:00
Linux Build Service Account
28c3f72661 Merge "asoc: qcs405: add afe loopback support in machine driver" 2018-12-12 17:51:56 -08:00
Linux Build Service Account
6a7de3abe2 Merge "asoc: sm6150: use locked version of soc_find_component" 2018-12-12 08:52:07 -08:00
Linux Build Service Account
31611c4d92 Merge "ASoC: codecs: bolero: Fix playback issue over RX1" 2018-12-12 08:52:06 -08:00
Linux Build Service Account
5276dad6e9 Merge "ASoC: audio-ext-clk: Add support for external pll clk" 2018-12-12 08:52:05 -08:00
Linux Build Service Account
c4b85af5ea Merge "asoc: codecs: bolero: Update hph_pwr enum value same as class-H options" 2018-12-12 08:52:03 -08:00
Linux Build Service Account
e6de3f49bb Merge "asoc: codecs: Add ep92 version read and NULL check" 2018-12-12 08:52:02 -08:00
Linux Build Service Account
af3c54713f Merge "ASoC: Add TWS+ mono mode support" 2018-12-12 08:52:01 -08:00
Linux Build Service Account
adbf2f4288 Merge "ASoC: codecs: update max value for HPH volume" 2018-12-12 08:52:00 -08:00
Linux Build Service Account
0aaaf8eff1 Merge "asoc: codecs: bolero: Update channel mask for ec_ref port" 2018-12-12 08:51:59 -08:00
Linux Build Service Account
bed688a58c Merge "asoc: add support to get Direction of Arrival target scores" 2018-12-12 08:51:56 -08:00
Linux Build Service Account
a78f1d6599 Merge "asoc: set AFE_LOOPBACK_TX port id to EC ref port" 2018-12-12 08:51:55 -08:00
Linux Build Service Account
4e9e6445e9 Merge "asoc: add support for afe_loopback_tx BE dai" 2018-12-12 08:51:54 -08:00
Linux Build Service Account
e7b9f7aa96 Merge "asoc: sm6150: Add support for MI2S and TDM interfaces" 2018-12-12 08:51:53 -08:00
Linux Build Service Account
ee4bd965c8 Merge "asoc: sm6150: Initialize variable in msm_init_aux_dev" 2018-12-12 08:51:52 -08:00
Linux Build Service Account
2149e5be0c Merge "ASoC: wcd938x: Add support for codec wakeup" 2018-12-11 21:17:11 -08:00
Linux Build Service Account
8fcd1e0744 Merge "asoc: wcd937x: use swr device wakeup api" 2018-12-11 21:17:09 -08:00
Laxminath Kasam
5d9ea8df64 asoc: codecs: bolero: Update channel mask for ec_ref port
For get_channel_map API, return proper channel mask
and channel count for EC ref port on WSA macro.

Change-Id: Ia90f1a1c5e90075d08f01c50349d6a8479be7897
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-12-12 10:13:56 +08:00
Sudheer Papothi
d1c3e9b51e ASoC: wcd938x: Add support for codec wakeup
Add an API to wakeup codec from sleep.

Change-Id: I90de653947f794cbc4a47a91bd5f22251440ef75
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-12-11 18:12:20 -08:00
Sudheer Papothi
4d31c00084 asoc: wcd938x: Move APIs from internal header file
Move APIs from internal header file for access to other
audio modules.

Change-Id: Ib34d052e4beb63c6805abacc3c99dbff18c9af6c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-12-11 18:11:53 -08:00
Sudheer Papothi
c9443c282a ASoC: wcd938x: Add support for wcd938x codec
WCD938x codec is a soundwire based codec that supports AMICs, DMICs,
Headphones, Ear and Aux paths. Add support to enable all device
paths of wcd938x codec.

Change-Id: I81b5e603ef73afba74b8d2274012752f9ca5cb6f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-12-12 07:34:26 +05:30
Surendar Karka
ab44f1b566 asoc: qcs405: add afe loopback support in machine driver
Add machine driver changes for AFE Rx to
Tx loopback.

Change-Id: I033d0b769126c229a7734f50d48601e4bf9810bb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-11 21:17:23 +08:00
Aditya Bavanari
32b3e5e2d6 asoc: sm6150: Initialize variable in msm_init_aux_dev
Initialize codec_max_aux_devs variable in msm_init_aux_dev
function to avoid uninitialized variable usage.

CRs-Fixed: 2357928
Change-Id: I4806f68dfaa9ea22c244fd6b102d8f0eed5abe0c
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-12-11 17:34:26 +08:00
Ralf Herz
1efff87050 asoc: codecs: Add ep92 version read and NULL check
Provide chipid and version info in sysfs.
Fix error handling and avoid polling when device is not present.

Change-Id: Ie31b14e494e527ede001c334e3617f16fd687a28
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2018-12-11 17:28:37 +08:00
Surendar Karka
e7507516c4 asoc: set AFE_LOOPBACK_TX port id to EC ref port
- AFE_LOOPBACK_TX BE is the dummy backend created to
  establish the EC reference capture path. While
  opening COPP pass playback port id instead of
  AFE_LOOPBACK_TX to get reference stream data from
  AFE RX port.
- Add session type support in creating new COPP and
  while checking for existing COPP.

CRs-Fixed: 2080421
Change-Id: I979f3ce1009cc18ff14130bebb8bd51a78fbe5ac
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-12-11 17:07:01 +08:00
Aditya Bavanari
849a5fdeb1 asoc: sm6150: use locked version of soc_find_component
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>
2018-12-11 00:12:34 -08:00
Laxminath Kasam
c21e98a1a4 asoc: codecs: bolero: Update hph_pwr enum value same as class-H options
Update hph_pwr enum value for LOHIFI as per
class-H power options to maintain consistent naming.

Change-Id: Ib7deb8d84bd1163a933d06ae92a51cb29b76e3c8
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-12-11 00:10:35 -08:00
Chaithanya Krishna Bacharaju
779b11e499 asoc: add support to get Direction of Arrival target scores
Add support to get DOA tracking monitor data.
This is required to support SVA LED display feature with
FFECNS/FFNS enabled.

Change-Id: I819cdd2971195653a955b22597d35b0fe521ec51
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2018-12-11 00:07:46 -08:00
Meng Wang
2b901bc05b ASoC: codecs: update max value for HPH volume
On tavil, the range for HPHL/HPHR volume is 0 to 24.
Update max value for HPHL/HPHR Volume.

Change-Id: I03f2eb3f833e5dc93a7cddaba09e765aa6077616
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-12-11 00:05:32 -08:00
Surendar Karka
d47fda4407 asoc: add support for afe_loopback_tx BE dai
Add dai driver and routing driver changes for
afe loopback BE. This BE is used to capture
EC reference data.

Change-Id: Ia57f335bde5f8a47de0030fbf1cdb784c8821e17
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-12-10 23:58:04 -08:00
Aditya Bavanari
353a583a48 asoc: sm6150: Add support for MI2S and TDM interfaces
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>
2018-12-10 23:55:49 -08:00