Commit Graph

2521 次程式碼提交

作者 SHA1 備註 提交日期
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
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
Linux Build Service Account
2370220aff Merge "dsp: update kernel version and uapi path" into audio-drivers.lnx.5.0 2019-12-31 15:27:06 -08:00
Linux Build Service Account
d7e8e70263 Merge "dsp: afe: update wakeup APIs" into audio-drivers.lnx.5.0 2019-12-31 15:27:04 -08:00
Linux Build Service Account
c6e429778b Merge "ASoC: codec: Change micbias widgets to supply widgets" into audio-drivers.lnx.5.0 2019-12-31 15:26:06 -08:00
Linux Build Service Account
b8ebaa7745 Merge "asoc: codec: add io header file" into audio-drivers.lnx.5.0 2019-12-31 15:26:03 -08:00
Vignesh Kulothungan
e10da09823 ASoC: update uapi header location
Update uapi header location from uapi/
to uapi/audio.

Change-Id: I3c3e0f413dbb4bcd2aa8c9891bfb0a5806c80ad8
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-27 11:26:10 -08:00
Vignesh Kulothungan
76d80b53ac dsp: update ion alloc header file
Update the header file which defines ion allocation
in kernel 5.4.

Change-Id: I1dc09c32bf5ea611ba0e49c670d4dd32206dc1b3
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-27 11:20:57 -08:00
Vignesh Kulothungan
61b2ca830f soc: swr: update SWRM_MCP_FRAME_CTRL_BANK_ADDR
Update SWRM_MCP_FRAME_CTRL_BANK_ADDR to SWRM_MCP_FRAME_CTRL_BANK.

Change-Id: I092effc8f620aa29cc4e2b48fe977991caae13e6
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-27 11:19:06 -08:00
Sudheer Papothi
bb13c65f24 soc: soundwire: update regmap support for soundwire
Update regmap support for soundwire interface. This change
adds init function to initialize soundwire register map.

Change-Id: I9a6eee5c0ca507cafdf6416a4adea4e60b714eba
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:17:58 -08:00
Sudheer Papothi
2e7fc986d2 ASoC: bolero: Add codec DAI to support PCM interface
Add codec DAI to support PCM interface to soundwire master on
RX macro in bolero codec driver.

Change-Id: Iaf5a9d9cf78ec9dc29b60ebd7736504ec6470e57
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:17:19 -08:00
Sudheer Papothi
7f9dfd57cc ASoC: wsa883x: Enable WSA883x codec driver
Enable WSA883x codec driver to support WSA883x smart speaker
amplifier.

Change-Id: I0a773459c28ca2afc7232ec33001351152a7249a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:17:02 -08:00
Meng Wang
4a03bd5171 asoc: update snd info api
Update snd info API and userspace and get codec info.

Change-Id: Ic9cfc89365cf6263a9b1c02403d68e7740bebbeb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-27 11:15:55 -08:00
Sudheer Papothi
11d5299f26 soc: soundwire: Add support for PCM data type
Add support to enable PCM data transfer through soundwire interface.

Change-Id: I9b162beb7fcdc6bbb90303acb77c350dbcf8c490
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:15:20 -08:00
Sudheer Papothi
9d6350f7f0 soc: swr: update soundwire master and slave registers
Update soundwire master and slave registers based on the hardware
version.

Change-Id: I8a27bdfbbff133569a7391af8adddadd804bd50f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:14:40 -08:00
Sudheer Papothi
087a9f7661 soc:soundwire: soundwire master updates
Set the number of auto enumeration slaves to six.
Handle auto enumeration failed status.

Change-Id: I322e228ccee57c87840b585ab40947a0afd1b554
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:14:16 -08:00
Vignesh Kulothungan
14f50ed4f2 include: soc: Add swr device definition
Add definition for sound wire device id

Change-Id: I2b599d96abdb880bdeb60153e03e6123e337bfe9
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-27 11:12:35 -08:00