From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: broonie@kernel.org, lgirdwood@gmail.com, alsa-devel@alsa-project.org
Cc: perex@perex.cz, tiwai@suse.com, vkoul@kernel.org,
linux-kernel@vger.kernel.org, rohitkr@codeaurora.org,
bgoswami@codeaurora.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: [PATCH v2 0/5] ASoC: core: add support to card re-bind using component framework
Date: Fri, 13 Jul 2018 16:36:27 +0100 [thread overview]
Message-ID: <20180713153632.32511-1-srinivas.kandagatla@linaro.org> (raw)
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
next reply other threads:[~2018-07-13 15:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 15:36 Srinivas Kandagatla [this message]
2018-07-13 15:36 ` [PATCH v2 1/5] ASoC: core: add support to card re-bind using component framework 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180713153632.32511-1-srinivas.kandagatla@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=rohitkr@codeaurora.org \
--cc=tiwai@suse.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).