Wykres commitów

524 Commity

Autor SHA1 Wiadomość Data
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
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
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
qctecmdr
b1a49c6b67 Merge "ASoC: bolero: va-macro: Fix ioremap in va macro probe" 2019-03-29 01:41:04 -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
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
36e68604f0 Merge "asoc: wcd-spi: use CMA memory for TX and RX buffer instead of kzalloc" 2019-03-20 02:29:22 -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
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
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
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
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
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
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
dcd3cb3de2 Merge "ASoC: rx-macro: Enable hph idle detect feature" 2019-02-27 01:15:35 -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
4b44ce5637 Merge "ASoC: wcd-mbhc: Disable moisture_en when duty cycle is enabled" 2019-02-27 01:15:28 -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
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
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
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
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
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
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
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
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
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
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