Re: [PATCH 5/6] ASoC: soc-core: setup card->rtd_num at snd_soc_instantiate_card()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel

Thank you for your feedback

> > @@ -2008,6 +2006,7 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card)
> >                 goto probe_end;
> >
> >         /* add predefined DAI links to the list */
> > +       card->num_rtd = 0;
> 
> Shouldn't this be placed before the comment above?
> 
> >         for_each_card_prelinks(card, i, dai_link) {
> >                 ret = snd_soc_add_dai_link(card, dai_link);
> >                 if (ret < 0)

It is used under this for_each_card_prelinks() loop.
card->num_rtd setup and this loop are 1 set.
Thus, I added it under comment.

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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux