alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [alsa-devel] About soc_check_tplg_fes
@ 2019-09-25 13:25 Daniel Baluta
  2019-09-25 14:49 ` Pierre-Louis Bossart
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Baluta @ 2019-09-25 13:25 UTC (permalink / raw)
  To: Linux-ALSA; +Cc: Daniel Baluta

Hi all,

In function soc_check_tplg_fes (sound/soc/soc-core.c)
there is this code:

    for_each_card_prelinks(card, i, dai_link) {

        /* ignore this FE */
        if (dai_link->dynamic) {
            dai_link->ignore = true;
            continue;
        }
        dev_info(card->dev, "info: override FE DAI link %s\n",
            card->dai_link[i].name);

So, we ignore any FE DAI link but then the info message says the contrary.

Any idea?

thanks,
Daniel.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [alsa-devel] About soc_check_tplg_fes
  2019-09-25 13:25 [alsa-devel] About soc_check_tplg_fes Daniel Baluta
@ 2019-09-25 14:49 ` Pierre-Louis Bossart
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Louis Bossart @ 2019-09-25 14:49 UTC (permalink / raw)
  To: Daniel Baluta, Linux-ALSA; +Cc: Daniel Baluta



On 9/25/19 8:25 AM, Daniel Baluta wrote:
> Hi all,
> 
> In function soc_check_tplg_fes (sound/soc/soc-core.c)
> there is this code:
> 
>      for_each_card_prelinks(card, i, dai_link) {
> 
>          /* ignore this FE */
>          if (dai_link->dynamic) {
>              dai_link->ignore = true;
>              continue;
>          }
>          dev_info(card->dev, "info: override FE DAI link %s\n",
>              card->dai_link[i].name);
> 
> So, we ignore any FE DAI link but then the info message says the contrary.
> 
> Any idea?

Yes, there a couple of such BE/FE inversions in comments, likely 
copy/paste and typos. I just saw some earlier this week in the trigger 
error messages, e.g.

	err = dpcm_be_dai_trigger(fe, stream, SNDRV_PCM_TRIGGER_STOP);
	if (err < 0)
		dev_err(fe->dev,"ASoC: trigger FE failed %d\n", err);


We should really look for all comments with 'FE' or 'BE' and clean this up.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2019-09-25 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 13:25 [alsa-devel] About soc_check_tplg_fes Daniel Baluta
2019-09-25 14:49 ` Pierre-Louis Bossart

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).