kernel-fxtec-pro1x/sound/soc/qcom
Stephan Gerhold 9ae0d92f86 ASoC: qcom: Set card->owner to avoid warnings
[ Upstream commit 3c27ea23ffb43262da6c64964163895951aaed4e ]

On Linux 5.9-rc1 I get the following warning with apq8016-sbc:

WARNING: CPU: 2 PID: 69 at sound/core/init.c:207 snd_card_new+0x36c/0x3b0 [snd]
CPU: 2 PID: 69 Comm: kworker/2:1 Not tainted 5.9.0-rc1 #1
Workqueue: events deferred_probe_work_func
pc : snd_card_new+0x36c/0x3b0 [snd]
lr : snd_card_new+0xf4/0x3b0 [snd]
Call trace:
 snd_card_new+0x36c/0x3b0 [snd]
 snd_soc_bind_card+0x340/0x9a0 [snd_soc_core]
 snd_soc_register_card+0xf4/0x110 [snd_soc_core]
 devm_snd_soc_register_card+0x44/0xa0 [snd_soc_core]
 apq8016_sbc_platform_probe+0x11c/0x140 [snd_soc_apq8016_sbc]

This warning was introduced in
commit 81033c6b584b ("ALSA: core: Warn on empty module").
It looks like we are supposed to set card->owner to THIS_MODULE.

Fix this for all the qcom ASoC drivers.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fixes: 79119c7986 ("ASoC: qcom: Add Storm machine driver")
Fixes: bdb052e81f ("ASoC: qcom: add apq8016 sound card support")
Fixes: a6f933f63f ("ASoC: qcom: apq8096: Add db820c machine driver")
Fixes: 6b1687bf76 ("ASoC: qcom: add sdm845 sound card support")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200820154511.203072-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-23 12:10:59 +02:00
..
qdsp6 ASoC: q6routing: add dummy register read/write function 2020-08-26 10:31:02 +02:00
apq8016_sbc.c ASoC: qcom: Set card->owner to avoid warnings 2020-09-23 12:10:59 +02:00
apq8096.c ASoC: qcom: Set card->owner to avoid warnings 2020-09-23 12:10:59 +02:00
common.c ASoC: qcom: Fix of-node refcount unbalance in qcom_snd_parse_of() 2019-04-05 22:33:03 +02:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
Kconfig ASoC: qcom: Drop HAS_DMA dependency to fix link failure 2020-07-29 10:16:58 +02:00
lpass-apq8016.c ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
lpass-cpu.c ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
lpass-ipq806x.c ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
lpass-lpaif-reg.h ASoC: qcom: add generic bit masks for RDMA and WRDMA 2016-02-20 01:20:18 +09:00
lpass-platform.c ASoC: qcom: Use snd_pcm_stop_xrun() helper 2018-07-04 15:41:34 +01:00
lpass.h ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
Makefile ASoC: qcom: make common.c as proper module 2018-08-06 12:50:04 +01:00
sdm845.c ASoC: qcom: Set card->owner to avoid warnings 2020-09-23 12:10:59 +02:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-09-23 12:10:59 +02:00