All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sridharan, Ranjani" <ranjani.sridharan@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@kernel.org>
Subject: Re: [alsa-devel] [PATCH 9/9] ASoC: soc-core: call snd_soc_dapm_shutdown() at soc_cleanup_card_resources()
Date: Tue, 5 Nov 2019 18:45:46 -0800	[thread overview]
Message-ID: <CAFQqKeXx9rXj3b0monvJ6CrBj9B0YCzwcAUc2SH7ya9yb9mjnA@mail.gmail.com> (raw)
In-Reply-To: <87ftj1hgly.wl-kuninori.morimoto.gx@renesas.com>

On Tue, Nov 5, 2019 at 6:40 PM Kuninori Morimoto <
kuninori.morimoto.gx@renesas.com> wrote:

>
> Hi Ranjani
>
> Thank you for your review
>
> >     It is easy to read code if it is cleanly using paired
> function/naming,
> >     like start <-> stop, register <-> unregister, etc, etc.
> >     But, current ALSA SoC code is very random, unbalance, not paired,
> etc.
> >     It is easy to create bug at the such code, and it will be difficult
> to
> >     debug.
> >
> >     snd_soc_bind_card() is calling snd_soc_dapm_init() for both
> >     card and component.
> >     Let's call paired snd_soc_dapm_shutdown() at paired
> >     soc_cleanup_card_resources().
> >
> >     Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> >     ---
> (snip)
> > You removed snd_soc_bind_card in one of the patches but then leaving
> snd_soc_unbind_card() will be unbalanced isnt it?
> >
> > Why not just have instantiate_card() and cleanup_card_resources()?
>
> Do you mean [7/9] patch ?
> It merges snd_soc_instantiate_card() and snd_soc_bind_card().
> Thus, snd_soc_bind_card() is still exist.
> Or am I misunderstanding ?
>
Oh yes, sorry I misread that. So why not remove cleanup_card_resources and
move everything to snd_soc_unbind_card()?

Thanks,
Ranjani

>
> Thank you for your help !!
> Best regards
> ---
> Kuninori Morimoto
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2019-11-06  2:46 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06  1:06 [alsa-devel] [PATCH 0/9] ASoC: soc-core: cleanup step5 Kuninori Morimoto
2019-11-06  1:07 ` [alsa-devel] [PATCH 1/9] ASoC: soc-core: remove soc_is_dai_link_bound() Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: remove soc_is_dai_link_bound()" to the asoc tree Mark Brown
2019-11-06  1:07 ` [alsa-devel] [PATCH 2/9] ASoC: soc-core: merge snd_soc_register_dai() and soc_add_dai() Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: merge snd_soc_register_dai() and soc_add_dai()" to the asoc tree Mark Brown
2019-11-06  1:07 ` [alsa-devel] [PATCH 3/9] ASoC: soc-core: merge snd_soc_unregister_dai() and soc_del_dai() Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: merge snd_soc_unregister_dai() and soc_del_dai()" to the asoc tree Mark Brown
2019-11-06  1:07 ` [alsa-devel] [PATCH 4/9] ASoC: soc-core: merge snd_soc_add_dai_link() and soc_bind_dai_link() Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: merge snd_soc_add_dai_link() and soc_bind_dai_link()" to the asoc tree Mark Brown
2019-11-06  1:07 ` [alsa-devel] [PATCH 5/9] ASoC: soc-core: merge snd_soc_remove_dai_link() and soc_unbind_dai_link() Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: merge snd_soc_remove_dai_link() and soc_unbind_dai_link()" to the asoc tree Mark Brown
2019-11-06  1:07 ` [alsa-devel] [PATCH 6/9] ASoC: soc-core: merge soc_remove_component() and soc_cleanup_component() Kuninori Morimoto
2019-11-12 18:46   ` Mark Brown
2019-11-13  0:50     ` Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: merge soc_remove_component() and soc_cleanup_component()" to the asoc tree Mark Brown
2019-11-06  1:07 ` [alsa-devel] [PATCH 7/9] ASoC: soc-core: merge snd_soc_bind_card() and snd_soc_instantiate_card() Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: merge snd_soc_bind_card() and snd_soc_instantiate_card()" to the asoc tree Mark Brown
2019-11-06  1:08 ` [alsa-devel] [PATCH 8/9] ASoC: soc-core: tidyup soc_probe_aux_devices() Kuninori Morimoto
2019-11-12 18:47   ` [alsa-devel] Applied "ASoC: soc-core: tidyup soc_probe_aux_devices()" to the asoc tree Mark Brown
2019-11-06  1:08 ` [alsa-devel] [PATCH 9/9] ASoC: soc-core: call snd_soc_dapm_shutdown() at soc_cleanup_card_resources() Kuninori Morimoto
2019-11-06  2:34   ` Sridharan, Ranjani
2019-11-06  2:40     ` Kuninori Morimoto
2019-11-06  2:45       ` Sridharan, Ranjani [this message]
2019-11-06  2:56         ` Kuninori Morimoto
2019-11-06  3:09           ` Sridharan, Ranjani

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=CAFQqKeXx9rXj3b0monvJ6CrBj9B0YCzwcAUc2SH7ya9yb9mjnA@mail.gmail.com \
    --to=ranjani.sridharan@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.