1 Jul
2014
1 Jul
'14
3:49 p.m.
On 07/01/2014 09:47 AM, Benoit Cousson wrote: [...] for (i = 0; i < rtd->num_codecs; i++) {
struct snd_soc_dai *codec_dai = rtd->codec_dais[i];
/* check client and interface hw capabilities */
snprintf(new_name, sizeof(new_name), "%s %s-%d",
rtd->dai_link->stream_name, codec_dai->name, num);
We may need to rethink how to do the naming for multiple CODEC DAI links here. This implementation will just keep overwriting new_name with each loop iteration and end up using the last one. Vinod may have some insights.