linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] ASoC: core: add support to card re-bind using component framework
@ 2018-07-13 15:36 Srinivas Kandagatla
  2018-07-13 15:36 ` [PATCH v2 1/5] " Srinivas Kandagatla
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Srinivas Kandagatla @ 2018-07-13 15:36 UTC (permalink / raw)
  To: broonie, lgirdwood, alsa-devel
  Cc: perex, tiwai, vkoul, linux-kernel, rohitkr, bgoswami,
	Srinivas Kandagatla

During discussion regarding card re-binding when components unregister
and register back at https://lkml.org/lkml/2018/7/9/785 it was suggested
that component framework can be added into core to provide this feature.

With this new changes the card will re-bind once the dependent component
re-registers after unregistering. This works based on the match done
from component name using component framework.

I have tested this patch with qdsp start-stop and module-load-unload usecase
for more than 10000 times in loop on Qcom platforms.

Thanks,
srini

Changes since v1:
 - Added new flag to enable/disable auto bind at card level, It is useful
  if machine driver/module is really removed/unloaded. Also to help cleanup
  the master component. Without this we will endup with a memory leak if the
  machine driver and memory associated with card are removed.
 - removed unregister from unbind callback.
 - updated match function as suggested by Vinod.
 - Added qdsp6 cleanup patches to this series.

Srinivas Kandagatla (5):
  ASoC: core: add support to card re-bind using component framework
  ASoC: qdsp6: q6afe-dai: remove component fw related code
  ASoC: qdsp6: q6asm-dai: remove component framework related code
  ASoC: qdsp6: q6routing: remove component framework related code
  ASoC: qcom: apq8096: remove component framework related code

 include/sound/soc.h              |  7 ++++
 sound/soc/qcom/apq8096.c         | 75 ++++------------------------------------
 sound/soc/qcom/qdsp6/q6afe-dai.c | 34 +++---------------
 sound/soc/qcom/qdsp6/q6asm-dai.c | 35 +++----------------
 sound/soc/qcom/qdsp6/q6routing.c | 32 ++++-------------
 sound/soc/soc-core.c             | 62 +++++++++++++++++++++++++++++++++
 6 files changed, 89 insertions(+), 156 deletions(-)

-- 
2.16.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-07-18 12:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-13 15:36 [PATCH v2 0/5] ASoC: core: add support to card re-bind using component framework Srinivas Kandagatla
2018-07-13 15:36 ` [PATCH v2 1/5] " Srinivas Kandagatla
2018-07-18 12:29   ` Applied "ASoC: core: add support to card re-bind using component framework" to the asoc tree Mark Brown
2018-07-13 15:36 ` [PATCH v2 2/5] ASoC: qdsp6: q6afe-dai: remove component fw related code Srinivas Kandagatla
2018-07-18 12:28   ` Applied "ASoC: qdsp6: q6afe-dai: remove component fw related code" to the asoc tree Mark Brown
2018-07-13 15:36 ` [PATCH v2 3/5] ASoC: qdsp6: q6asm-dai: remove component framework related code Srinivas Kandagatla
2018-07-18 12:28   ` Applied "ASoC: qdsp6: q6asm-dai: remove component framework related code" to the asoc tree Mark Brown
2018-07-13 15:36 ` [PATCH v2 4/5] ASoC: qdsp6: q6routing: remove component framework related code Srinivas Kandagatla
2018-07-18 12:27   ` Applied "ASoC: qdsp6: q6routing: remove component framework related code" to the asoc tree Mark Brown
2018-07-13 15:36 ` [PATCH v2 5/5] ASoC: qcom: apq8096: remove component framework related code Srinivas Kandagatla
2018-07-18 12:27   ` Applied "ASoC: qcom: apq8096: remove component framework related code" to the asoc tree Mark Brown
2018-07-16  4:26 ` [PATCH v2 0/5] ASoC: core: add support to card re-bind using component framework Vinod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).