Commit Graph

11 Commits

Author SHA1 Message Date
Vignesh Kulothungan
e334b71c41 dsp: probe defer when remoteproc is uninitialized
There can be race condition that audio_notifier probe
function is called before remoteproc-adsp driver instance
is initialized. In such case, NULL handle would be returned.
It should not be treated as unrecovery error. Update return
status to EPROBE_DEFER upon getting NULL handle back from remoteproc

Change-Id: Id9d182949d12923a25b582142e3fe8bad85e19de
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Signed-off-by: Patrick Lai <plai@codeaurora.org>
2021-04-09 16:21:37 -07:00
Vignesh Kulothungan
3e64caacf8 dsp: initialize head of client linked list
Client list head is initialized during audio notifier probe,
and clients cant be added to the list before it is initialized,
which can lead to undesired behavior.
Initialize client list head during declaration.

Change-Id: I03fe218399662df8ac0665f34273c8e7749c1ad2
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2021-04-01 10:25:49 -07:00
Laxminath Kasam
103d2cc5a9 audio-kernel: Fix audio_notifier service registration issue
Change default return value to 0.

Change-Id: I44c069ce451ee4eeeb6de526cf85e299d3cf7fe0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-08 19:25:34 +05:30
Jyotirmoi Sarma
b1797ef8b8 audio-kernel: Enable new PDR interface
Migrate to upstream PDR interface
Add audio-notifer as a platform driver

Change-Id: Ia07e12f134e77c4a63744052d060c589f5fb6d29
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-16 14:13:45 +05:30
Guodong Hu
4d71a88b69 dsp: redefine audio_notifier_init to silence PDR error
CONFIG_MSM_QDSP6_PDR is not enabled on Auto targets.

Change-Id: If7ac374bbe88635eeb328593b4d3a9f01a716c5c
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-06-18 02:12:16 -07:00
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
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
Meng Wang
61af6849e9 ASoC: switch audio drivers to SPDX identifier
Switch audio drivers to SPDX identifier on msm-4.19.

Change-Id: Ic3f0230a516db251b8d81e8a7e73dbc04d66fe1b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-07 15:47:32 +08:00
Laxminath Kasam
8b1366a648 Audio: DLKM support for all audio modules
Switch to DLKM for all audio kernel modules.

Change-Id: I6a96023a21f655f873531af9ace81f2b01eb0f58
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-11-02 13:42:09 +05:30
Laxminath Kasam
8f7ccc2e6f audio-lnx: Add latest snapshot for audio drivers.
Propagate the changes based on latest snapshot
for audio kernel source tree at below cutoff of
kernel msm-4.9 -
(040750bfa78 -
 "Revert "ARM: dts: msm: Add DT node for aop-qmp
  clock controller on SDM845 v2"")

CRs-Fixed: 2104096
Change-Id: I0927c40b3a188dbf892e7ec4c1c7810953724929
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-09-04 20:12:56 +05:30
Laxminath Kasam
605b42f92c audio-lnx: Rename folders to new flat structure.
Kernel audio drivers can be categorised into below folders.
asoc - ALSA based drivers,
asoc/codecs - codec drivers,
ipc - APR IPC communication drivers,
dsp - DSP low level drivers/Audio ION/ADSP Loader,
dsp/codecs - Native encoders and decoders,
soc - SoC based drivers(pinctrl/regmap/soundwire)

Restructure drivers to above folder format.
Include directories also follow above format.

Change-Id: I8fa0857baaacd47db126fb5c1f1f5ed7e886dbc0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-08-18 16:56:12 -06:00