All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>,
	Linux-ALSA <alsa-devel@alsa-project.org>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: Re: [alsa-devel] [PATCH 7/7] ASoC: soc-pcm: tidyup soc_pcm_open() order
Date: 25 Feb 2020 13:20:01 +0900	[thread overview]
Message-ID: <87zhd7jo3b.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <20200225014039.GA21366@sirena.org.uk>


Hi Pierre-Louis, Mark

> > you'll see that the intent was to
> > - start the cpu_dai
> > - open the platform driver to e.g handle DMAs
> > - start the codec_dai.
> 
> > The second step is not really needed for Intel but might be needed on others
> > where the DMA is centrally handled (Omap, etc).
> 
> > My concern is that we've modified the order to deal with module
> > dependencies, without necessarily taking into account that DMA setup part
> 
> > That said I don't understand the initial sequence for soc_pcm_close() so I
> > am not advocating for a revert, but more a clarification of what those
> > component open/close steps are supposed to do.
> 
> It's possible we're going to shake some issues out here but the
> ordering has always been a bit arbitrary, especially the CPU vs
> CODEC ordering.  We're basically hoping that the ordering we've
> picked is the one that causes fewest glitches and upsets on the
> broad range of hardware.  My expectation/hope is that for most
> hardware the flow control between the DAI and the DMA controller
> (which has to be there anyway) will mean that it mostly doesn't
> matter, if there's anything that is too sensitive to it we can
> always revert and try something
> else.

I'm sorry to not clarify the detail.
Yes, as you mentioned, the patch exchanged start/stop order,
and some platform *might* get damage (I hope not, of course).

But we can't say that the previous order was the best order for all platform.
I'm thinking that the current order is also not the best,
but is not random.
The *best* solution is that we need to have xxx_order flag like for_each_comp_order().

Thank you for your help !!
Best regards
---
Kuninori Morimoto

      reply	other threads:[~2020-02-25  4:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27  1:48 [alsa-devel] [PATCH 0/7] ASoC: soc-pcm cleanup step2 Kuninori Morimoto
2020-01-27  1:49 ` [alsa-devel] [PATCH 1/7] ASoC: soc-pcm: add snd_soc_runtime_action() Kuninori Morimoto
2020-01-27  1:49 ` [alsa-devel] [PATCH 2/7] ASoC: soc-pcm: adjustment for DAI member 0 reset Kuninori Morimoto
2020-01-27  1:49 ` [alsa-devel] [PATCH 3/7] ASoC: soc-pcm: add for_each_dapm_widgets() macro Kuninori Morimoto
2020-01-27  1:49 ` [alsa-devel] [PATCH 4/7] ASoC: soc-pcm: goto error after trying for_each_rtd_codec_dai Kuninori Morimoto
2020-01-28  7:01   ` Takashi Iwai
2020-01-28  7:30     ` Kuninori Morimoto
2020-01-28 16:31       ` Pierre-Louis Bossart
2020-01-28 16:44         ` Takashi Iwai
2020-01-29  0:15           ` Kuninori Morimoto
2020-01-27  1:49 ` [alsa-devel] [PATCH 5/7] ASoC: soc-pcm: goto error after trying all component open Kuninori Morimoto
2020-01-27 18:34   ` Sridharan, Ranjani
2020-01-28  0:31     ` Kuninori Morimoto
2020-01-27  1:49 ` [alsa-devel] [PATCH 6/7] ASoC: soc-pcm: move soc_pcm_close() next to soc_pcm_open() Kuninori Morimoto
2020-01-27  1:49 ` [alsa-devel] [PATCH 7/7] ASoC: soc-pcm: tidyup soc_pcm_open() order Kuninori Morimoto
2020-02-25  1:22   ` Pierre-Louis Bossart
2020-02-25  1:40     ` Mark Brown
2020-02-25  4:20       ` Kuninori Morimoto [this message]

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=87zhd7jo3b.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.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.