Commit graph

2,536 commits

Author SHA1 Message Date
Sudheer Papothi
cdeb593d01 soc: soundwire: Update bus clock frequency based on usecase
Some usecases need soundwire bus clock frequency to run at
lower clock rate for better power and performance. Update
soundwire bus clock frequency based on usecase.

Change-Id: I2e786d9f5d5d2ec3841daa934802eeafa79a8f6c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-15 00:32:43 +05:30
qctecmdr
b30560f219 Merge "ASoC: lahaina: Update BTFM Tx codec dai name for slimbus_7 BE DAILINK" 2020-02-13 22:19:33 -08:00
qctecmdr
27b52591d3 Merge "asoc: mbhc: update mode for analog type-c headset check" 2020-02-11 21:22:12 -08:00
Banajit Goswami
5504847f9a ASoC: lahaina: Update BTFM Tx codec dai name for slimbus_7 BE DAILINK
Update the codec dai name for slimbus_7 backend dailink used for BT use
cases.

Change-Id: I7330f95a106a7c5b3b9d8c588f93342d466d2d2c
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2020-02-11 20:06:08 -08:00
Sudheer Papothi
15ae299940 ASoC: lahaina: Fix compilation issue on GKI
Fix compilation issue on GKI.

Change-Id: Ic577eb8fde1492e71c2d4faf010aa165634ee511
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-11 00:11:06 +05:30
qctecmdr
0e5d51f7fd Merge "soc: soundwire: udpate soundwire slave registers" 2020-02-09 21:11:39 -08:00
qctecmdr
5ad1b37c7f Merge "ASoC: lahaina: Update wsa883x aux codec configuration on lahaina" 2020-02-09 21:11:39 -08:00
qctecmdr
0add91a70a Merge "audio: correct misspelled variable and functions" 2020-02-09 21:11:38 -08:00
Meng Wang
7f70656cc0 asoc: mbhc: update mode for analog type-c headset check
POWER_SUPPLY_TYPEC_SINK_AUDIO_ADAPTER is not supported on new
kernel-5.4. Update mode to TYPEC_ACCESSORY_AUDIO for analog
type-c headset.

Change-Id: Id46ea2eebea8257a48134431f07a81b6ed7e6c7d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-02-10 09:38:35 +08:00
Sudheer Papothi
5a0d1cee91 ASoC: lahaina: Update wsa883x aux codec configuration on lahaina
Update wsa883x aux codec configuration on lahaina.

Change-Id: Icd1b2f2d8557a0430b49329dc0fbebb99a3e9fa5
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-08 03:13:55 +05:30
Sudheer Papothi
b2d648baf0 ASoC: wcd938x: Update soundwire master channel type
Update soundwire master channel type properly before sending to
soundwire master.

Change-Id: I459c6e8d1cc688c3e6e5a0369e095f0b12fbb7c6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-07 14:35:00 +05:30
Sudheer Papothi
1c11c5cf73 soc: soundwire: Disable clock gating when soundwire is out of clock stop
Disable clock gating when soundwire is out of clock stop mode.

Change-Id: I97187fa2deed26fb3270abee1d05f679ace2c0c4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-06 23:49:10 -08:00
Sudheer Papothi
8972743568 ASoC: wsa883x: Disable interrupts during bootup
Disable interrupts while bringing codec out of reset to avoid fake
interrupts.

Change-Id: Iec1e6c67429b7424693c2628e6f6d121a4c9ce71
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-07 13:16:44 +05:30
Sudheer Papothi
1d6a693f3f soc: soundwire: udpate soundwire slave registers
Update soundwire slave registers as the per hardware specification.

Change-Id: I975d7f12273de2b2eb3d9323b6f781426e18c527
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-07 07:58:57 +05:30
Vignesh Kulothungan
fa01a84d23 audio: correct misspelled variable and functions
Update dai link names to match with machine driver.
Update typo in audio notifier function name.

Change-Id: I8ada233bbcb1596f245cf1925691c115c2d62755
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-05 14:37:45 -08:00
Ramlal Karra
3e2c37d273 asoc: codecs: Add unified SWR Tx mapping support
Add dynamic port enablement for wcd938x and
wcd937x targets to support unified swr tx port
mapping added as part of SWR 1.6 updates.

Change-Id: If0cf823dc51028fd5bd95f5a49ffe05998526be6
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-02-05 09:56:57 -08:00
Sudheer Papothi
669089fdbd soc: soundwire: Handle soundwire slave reset gracefully
If soundwire slave does not implement reset functionality, handle
soundwire slave reset error gracefully in soundwire master driver.

Change-Id: I24f34d3e8665c187c4ac9dd2bc8acb2b39ad2df6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-29 23:06:40 -08:00
Sudheer Papothi
265ff04ddc ASoC: bolero: Add support for bolero v2.0 hardware
Add support for bolero v2.0 hardware functionality.

Change-Id: I5dca1666b92d6e8de0adae8a11cab0fbca61ab6d
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-29 11:54:30 -08:00
Karthikeyan Mani
1d5de9e7b5 asoc: codecs: swr-dmic: Enable swr dmic supply
Supply for swr dmic is from wcd mic bias.
Enable the power supply by calling corresponding
interfaces from cdc supply driver.

Change-Id: I9db6a4799ebfdd974d9e12c47053d8d73da2b883
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-28 21:51:56 -08:00
Karthikeyan Mani
a5a7ba3b43 asoc: codecs: wcd938x: Add widget to enable micbias standalone
Add widgets to enable mic bias standlaone without
dependency on any use case.

Change-Id: I1f61cd9403d3f83baa199f9c669680d9c7b5c371
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-28 21:51:29 -08:00
Karthikeyan Mani
669b885ac7 asoc: codecs: Add codec supply to enable mic bias pin
Add interface to initialize and enable/disable
wcd codec supply.

Change-Id: If2b2a3120f7f0c87dc6ebe1c1e6c9062b7f2891e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-28 21:42:29 -08:00
Vignesh Kulothungan
823f0f01fe ASoC: add config check for QGKI
Add CONFIG_AUDIO_QGKI check for variables and functions
in audio drivers, so they are used only during a QGKI build.

Change-Id: Ia04232566367f196f298a49cf3962bb7927bec6a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-26 03:51:32 +05:30
Vignesh Kulothungan
bde9a11153 ASoC: compress: update codec option wma to wma_dec
Update codec option wma to wma_dec.

Change-Id: I6462c6a5a9a5b2f1e6f74df951a101331ce75872
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-22 15:34:30 -08:00
Meng Wang
7ecd3d4fed asoc: use upstream definition of snd_codec
Update drivers to use upstream definition of snd_codec
as compr_passthr and flags variables are no longer supported
on kernel 5.4.

Change-Id: I5b0fc43af9cdae0a40e9e4f086fcecdb4be85f76
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-17 17:09:09 -08:00
Linux Build Service Account
bda63b8dfe Merge "asoc: compress: update codec option wma to wma_dec" into audio-drivers.lnx.5.0 2020-01-17 10:40:59 -08:00
Meng Wang
d6bde74f93 asoc: compress: update codec option wma to wma_dec
Update codec option wma to wma_dec.

Change-Id: I1e22c7d2793b2e58a4507e562b4a57ac0a29f418
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-01-16 17:53:22 +08:00
Vignesh Kulothungan
63cd9ad609 asoc: lahaina: remove defunct implementation of qos
Remove defunct implementation of front end qos
prepare function.
Add todo debug log to add the new QOS prepare
implementation.

Change-Id: I95893d0309d465100d7abbab5e1acf6269fd1cde
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-15 20:38:40 -08:00
Linux Build Service Account
6744f565b2 Merge "ASoC: wsa883x: update supply and variant configuration" into audio-drivers.lnx.5.0 2020-01-10 16:43:42 -08:00
Vignesh Kulothungan
7697755430 ASoC: add lahaina machine driver
Add machine driver for lahaina.

Change-Id: I5a55e4a5f7ce853816fb822c41502c526edd88b7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-10 16:21:47 -08:00
Karthikeyan Mani
3f9c454715 config: Enable swr dmic config
Enable config to compile swr dmic driver.

Change-Id: I55a5d3d7d59ad350335fa9b55fbce58664fd8523
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-10 08:43:47 -08:00
Karthikeyan Mani
daef08854a asoc: codecs: Add swr dmic codec
Add initial changes for supporting swr dmic
where each codec can support single mic recording
over soundwire port.

Change-Id: I0319bfb5c850d48b563f46d5dd77f21d4a83f029
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-10 17:24:14 +05:30
Sudheer Papothi
e8b606b2b9 ASoC: wsa883x: update supply and variant configuration
Update supply and variant configuration for wsa883x speaker amplifer.

Change-Id: Ib3e1ae149cc4b9144229b5e2dfab9bb0cc8dab1c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-09 08:07:37 +05:30
Linux Build Service Account
f6b14a755d Merge "ASoC: wsa883x: Add support for VBAT monitor" into audio-drivers.lnx.5.0 2020-01-08 17:20:33 -08:00
Vignesh Kulothungan
fb3a1bd924 audio: enable audio compilation for lahaina
Include lahaina kernel config definitions to enable
audio drivers compilation.

Change-Id: I4f910c2ebe2d2839fe49f50fcf96d0e4dc227a81
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-08 13:42:21 -08:00
Vignesh Kulothungan
509b4d2883 config: add config definitions for lahaina
Add kernel configuration definitions for lahaina.

Change-Id: Id55db52d04b779b0e8b9e50ea1c27bfe387ae72b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-08 13:41:55 -08:00
Vignesh Kulothungan
16a9d512d7 ASoC: codecs: use function if config is enabled
Use "wcd_mbhc_usbc_ana_event_handler" function only when
CONFIG_QCOM_FSA4480_I2C is enabled.

Change-Id: I5211a8ce09fb06021310e528b5815fdbcd3f2dab
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-07 18:59:45 -08:00
Vignesh Kulothungan
46c4e1f885 ASoC: remove unused functions
Remove unused function "wsa883x_regcache_sync" and
"wsa883x_resource_acquire".

Change-Id: Ic4dca68671673141be833926305116d8cd881d89
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-07 18:59:41 -08:00
Vignesh Kulothungan
050dd0ef56 ASoC: codecs: wsa883x: update wsa883x_reg_readable
Update wsa883x_reg_readable variable name to wsa883x_reg_access.

Change-Id: Icab949163f32fda7c5f6caf0dfe4641eb100a539
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-07 18:18:49 -08:00
Sudheer Papothi
eecf60dcb5 ASoC: wsa883x: Add support for VBAT monitor
Add support for VBAT monitor on WSA883x speaker amplifier
for signal profiling.

Change-Id: I1544b601ac9ee4e8ed6da3839cc46914bbae5d93
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-07 14:39:09 -08:00
Vignesh Kulothungan
923be76f78 dsp: compile avtimer based on avtimer config
Enable compilation of avtimer only if CONFIG_MSM_AVTIMER
is enabled.

Change-Id: I64cc8c65dbe22fafee527da80d3615fb5201665f
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-06 23:47:16 -08:00
Linux Build Service Account
11c35ea451 Merge "asoc: kona: update dai-link definition for new kernel" into audio-drivers.lnx.5.0 2020-01-06 18:27:13 -08:00
Linux Build Service Account
be1c1b3408 Merge "asoc: kona: update aux codec APIs" into audio-drivers.lnx.5.0 2020-01-06 18:26:16 -08:00
Meng Wang
b2bdcaa776 asoc: codec: compile wcd dsp manager only for external codec
wcd dsp manager is not needed for bolero and wcd938x. Compile it
when CONFIG_WCD9XXX_CODEC_CORE is enabled

Change-Id: Ia341e6893520769eb1f973a5df74ad9bb2b57063
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-01-07 08:51:57 +08:00
Meng Wang
53155fe958 asoc: kona: update aux codec APIs
update aux codec APIs for new kernel.

Change-Id: If2c2aecbd2379ece5f47c7d9be35911f929dbae9
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-01-02 17:32:14 -08:00
Linux Build Service Account
1599fbce86 Merge changes I3c3e0f41,I1dc09c32 into audio-drivers.lnx.5.0
* changes:
  ASoC: update uapi header location
  dsp: update ion alloc header file
2020-01-02 15:20:35 -08:00
Linux Build Service Account
46462c81dd Merge "soc: swr: update SWRM_MCP_FRAME_CTRL_BANK_ADDR" into audio-drivers.lnx.5.0 2020-01-02 15:20:34 -08:00
Linux Build Service Account
a762b09064 Merge "ASoC: update cpu_dai_name references" into audio-drivers.lnx.5.0 2020-01-02 14:19:43 -08:00
Linux Build Service Account
77f50499d9 Merge "asoc: lsm: update access_ok api for msm_lsm_client" into audio-drivers.lnx.5.0 2020-01-02 14:19:33 -08:00
Linux Build Service Account
411161e61b Merge "ipc: apr: update scm header file" into audio-drivers.lnx.5.0 2020-01-02 09:59:04 -08:00
Meng Wang
11d85c7ace asoc: kona: update dai-link definition for new kernel
cpu_dai_name, platform_name, codec_name, codec_dai_name are
removed in kernel-5.4 version of ASoC. Update dai-link definition
to reflect the same.

Change-Id: Ife0072a65e6e554bad20cea9844f30245108fd95
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-01-02 14:12:14 +08:00