ASoC: core: remove support for card rebind using component framework

DRM based audio components get registered inside the component framework
bind callback. However component framework has a big mutex lock taken for
every call to component_add, component_del and bind, unbind callbacks.

This can lead to deadlock situation if we are trying to add new/remove
component within a bind/unbind callbacks. Which is what was happening
with bcm2837 rpi 3.

Revert this change till we sort out the mutex issue.

Reported-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Srinivas Kandagatla
2018-08-02 16:03:38 +01:00
committed by Mark Brown
parent 62121debfb
commit 611cbc8799
2 changed files with 0 additions and 69 deletions

View File

@@ -17,7 +17,6 @@
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/component.h>
#include <linux/regmap.h>
#include <linux/log2.h>
#include <sound/core.h>
@@ -1091,12 +1090,6 @@ struct snd_soc_card {
struct work_struct deferred_resume_work;
/* component framework related */
bool components_added;
/* set in machine driver to enable/disable auto re-binding */
bool auto_bind;
struct component_match *match;
/* lists of probed devices belonging to this card */
struct list_head component_dev_list;