Commit Graph

999 Commits

Author SHA1 Message Date
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
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
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
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