]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Prevent components from being bound to multiple cards
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 8 Jul 2015 18:47:43 +0000 (20:47 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 8 Jul 2015 19:05:04 +0000 (20:05 +0100)
commit8cd035409c79a7afbb5e97d2b848899cf48b0fc5
tree0ea498ff7130f099881cfa8043a52e56aece0956
parent7f68be022653a77fcec76b45c40f14fcc4edd61d
ASoC: Prevent components from being bound to multiple cards

A component can only be bound to a single card at a time. Binding it to
card while it is already bound to another will result in undefined
behavior.

As the undefined behavior might only manifest itself later on it is not
necessarily always straight forward to find the cause. To prevent this add
a check that refuses to bind a component to multiple cards as well as
prints a error describing the problem.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c