Commit Graph

1386 Commits

Author SHA1 Message Date
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
Linux Build Service Account
53f0ca9225 Merge "soc: enable compilation for audio lpi driver" 2019-02-14 14:32:46 -08:00
Linux Build Service Account
12df645bec Merge "ASoC: config: add config to compile lpi TLMM drivers for kona" 2019-02-14 14:32:46 -08:00
Karthikeyan Mani
fd328a6b66 soc: enable compilation for audio lpi driver
Enable compilation of audio low power island driver
for kona.

Change-Id: I28adb30aa64204609667cedc1df5b181aa609267
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-13 11:46:27 -08:00
Karthikeyan Mani
6f6f9a387f ASoC: config: add config to compile lpi TLMM drivers for kona
Add config to compile audio low power island TLMM drivers
for kona.

Change-Id: I35a06ba826c1835cc8129acf3591c9fcf0a19214
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-13 11:43:33 -08:00
Meng Wang
c2acbee602 dsp: update copyright marking for q6afecal-hwdep and q6asm
Copyright year 2018 for q6afecal-hwdep and third party copyright
marking for q6asm are removed during updating file headers.
Add them back.

Change-Id: I0341116ca0cf82be8c3876534b98ad2c376b3531
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-02-12 08:32:44 +08:00
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
Vikram Panduranga
51f7fa7f56 dsp: voice_mhi: fix memory size before mapping
Mailbox memory was mapped with incorrect memory size.
Adding a fix to use the actual size while mapping.

Change-Id: If9a478ca044f68bed8e0899dfb023545585272f2
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-01-30 23:45:47 -08:00
Vikram Panduranga
7dbdc9aa69 dsp: q6voice: call voice MHI start/end APIs
Whenever a voice call starts or ends q6voice shall call
voice_MHI API to enable or disable MHI voting respectively.

Change-Id: Ia1125fb96c67ff6fec2242bc2b482ef7017dfb7d
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-01-30 23:43:02 -08:00
Vikram Panduranga
335304e701 dsp: config: Add configuration for voice mhi driver
Add and enable configuration for voice mhi driver
for kona target.

Change-Id: I43c28fbe26a5429f1a30b056ff96a9815acb3aa4
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-01-30 23:41:38 -08:00
Vikram Panduranga
e2db205a11 dsp: add voice MHI driver
Add voice MHI driver to support the following features -
1. Allocate and map mailbox memory needed for voice call
packet exchange.
2. Send memory mapped addresses to ADSP.
3. Vote MHI host driver at start and stop of a voice call.

Change-Id: I8ef8bc270acacab9b80bca7addccdf73bd572adf
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-01-30 23:39:34 -08:00
Linux Build Service Account
92c861b756 Merge "asoc: Update file header to GPL-2.0-only" 2019-01-29 21:57:42 -08:00
Linux Build Service Account
a052150d8d Merge "ASoC: dsp: correct param_size assignment" 2019-01-29 17:08:21 -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
c695edde0f Merge "dsp: add support to set custom channel mixer coefficients" 2019-01-28 11:11:21 -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
Linux Build Service Account
8c0603b1f3 Merge "dsp: add dma map resource cmd" 2019-01-27 23:34:54 -08:00
Vikram Panduranga
24efd2a62e dsp: add dma map resource cmd
Add a new API for mapping DMA resources
that needs to be attached to existing
SMMU SID.

Change-Id: I7a513d24ea30a5ead318e856e4c5317743fd0021
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-01-24 17:44:04 -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
Dhananjay Kumar
defd81b1a5 dsp: 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: Ifedac25de5ae6bad1092b66ec405bba66a80f608
Signed-off-by: Cong Tang <congt@codeaurora.org>
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-01-21 20:58:22 -08:00
Laxminath Kasam
a60239e354 soc: soundwire: Add support for GPIO interrupt path
In trinket target, interrupt for wakeup is provided via
chip TLMM. Add required support to handle wakeup
interrupt on SWR data line triggered over this TLMM line.

Change-Id: I7fb6d7009a6271d54d0f11f99930b0d039f57129
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-01-22 12:53:56 +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
Meng Wang
3d87e08f9d ASoC: dsp: correct param_size assignment
param_size value is not correctly assigned with roundup.
Assign the return value of roundup to param_size.

Change-Id: I92e42b4684d7be77a5fa82c8e8c90167f985f97d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-01-22 12:40:45 +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
Gerrit - the friendly Code Review server
e80520e1e4 Merge changes into audio-drivers.lnx.4.0 2019-01-08 05:37:15 -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
f6416bbf7a Merge "dsp: afe: add support for VA macro codec DMA interface" 2019-01-08 05:32:05 -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
82c45cde0a Merge "soc: swr-mstr: Change timeout for clk disable during ssr" 2019-01-08 05:32:01 -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