summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorLars-Peter Clausen2014-03-18 09:02:11 +0100
committerMark Brown2014-04-14 18:22:43 +0200
commit98e639fb8a3ed1bf2bd512626c3cfc2992a57113 (patch)
treeb017a1a4c6cd07839eb449c6c7e76763fb5f6f4b /include/sound/soc.h
parentASoC: Remove IO register modifier callbacks (diff)
downloadkernel-qcow2-linux-98e639fb8a3ed1bf2bd512626c3cfc2992a57113.tar.gz
kernel-qcow2-linux-98e639fb8a3ed1bf2bd512626c3cfc2992a57113.tar.xz
kernel-qcow2-linux-98e639fb8a3ed1bf2bd512626c3cfc2992a57113.zip
ASoC: Track which components have been registered with snd_soc_register_component()
snd_soc_unregister_component() takes the parent device of the component as a parameter and then looks up the component based on this. This is a problem if multiple components are registered for the same parent device. Currently drivers do not do this, but some drivers register a CPU DAI component and a platform for the same parent device. This will become a problem once platforms are also made components. To make sure that snd_soc_unregister_component() will not accidentally unregister the platform in such a case only consider components that were registered with snd_soc_register_component(). This is only meant as short term stopgap solution to be able to continue componentisation. Long term we'll need something different. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index a355d0f9a6f9..f8a79c17628e 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -662,6 +662,7 @@ struct snd_soc_component {
unsigned int active;
unsigned int ignore_pmdown_time:1; /* pmdown_time is ignored at stop */
+ unsigned int registered_as_component:1;
struct list_head list;