
15 Aug
2015
15 Aug
'15
8 p.m.
On Sat, Aug 15, 2015 at 07:46:58PM +0530, Vinod Koul wrote:
On Fri, Aug 14, 2015 at 11:03:13PM +0100, Mark Brown wrote:
- /* Index is for each config load */
- ret = snd_soc_tplg_component_load(&platform->component, &skl_tplg_ops, fw, 0);
Which index?
The last arg of snd_soc_tplg_component_load() is id which is set as tplg.req_index = id;
So the comment tries to explain how last 0 index is added. We have only one load so we will be always 0 index
Your comment isn't explaining that at all, sorry - it's making things less clear. It's peering into the implementation to translate ID to index and even with s/id/index/ it's begging the question "ID/index is what for each component load?". If you're adding a comment here I'd expect to see something like "Use the same ID each time because..." which explains something that isn't in the code.