ASoC: dwc: Disallow building designware_pcm as a module
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 28 Apr 2017 09:55:25 +0000 (10:55 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 30 Apr 2017 12:27:04 +0000 (20:27 +0800)
commitc9afc1834e8132783772d73007706d3ae3848483
tree9886620f1c7cac7d56aec5a21bcd9e280c568ca0
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
ASoC: dwc: Disallow building designware_pcm as a module

Designware PCM is an extension to Designware I2S and they are dependent
on each other. For this reason, make Designware PCM a boolean which will
compile with Desigwnare I2S module. The name of the module is not changed
but the name of the files need to be changed.

Also, without this commit we get errors when probbing designware_i2s module
because of unspecified license:

designware_pcm: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
designware_pcm: Unknown symbol __rcu_read_lock (err 0)
designware_pcm: Unknown symbol devm_snd_soc_register_platform (err 0)
designware_pcm: Unknown symbol synchronize_rcu (err 0)
designware_pcm: Unknown symbol __rcu_read_unlock (err 0)
designware_pcm: Unknown symbol snd_soc_set_runtime_hwparams (err 0)

So, this is really needed as a fix.

Fixes: 79361b2b98b7 ("ASoC: dwc: Add PIO PCM extension")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/Kconfig
sound/soc/dwc/Makefile
sound/soc/dwc/designware_i2s.c [deleted file]
sound/soc/dwc/designware_pcm.c [deleted file]
sound/soc/dwc/dwc-i2s.c [new file with mode: 0644]
sound/soc/dwc/dwc-pcm.c [new file with mode: 0644]