Lines Matching refs:link
70 struct snd_soc_dai_link *link; in apq8016_sbc_parse_of() local
85 data = devm_kzalloc(dev, sizeof(*data) + sizeof(*link) * num_links, in apq8016_sbc_parse_of()
93 link = data->dai_link; in apq8016_sbc_parse_of()
105 link->cpu_of_node = of_parse_phandle(cpu, "sound-dai", 0); in apq8016_sbc_parse_of()
106 if (!link->cpu_of_node) { in apq8016_sbc_parse_of()
112 link->codec_of_node = of_parse_phandle(codec, "sound-dai", 0); in apq8016_sbc_parse_of()
113 if (!link->codec_of_node) { in apq8016_sbc_parse_of()
119 ret = snd_soc_of_get_dai_name(cpu, &link->cpu_dai_name); in apq8016_sbc_parse_of()
125 ret = snd_soc_of_get_dai_name(codec, &link->codec_dai_name); in apq8016_sbc_parse_of()
131 link->platform_of_node = link->cpu_of_node; in apq8016_sbc_parse_of()
133 link->playback_only = true; in apq8016_sbc_parse_of()
135 ret = of_property_read_string(np, "link-name", &link->name); in apq8016_sbc_parse_of()
141 link->stream_name = link->name; in apq8016_sbc_parse_of()
142 link->init = apq8016_sbc_dai_init; in apq8016_sbc_parse_of()
143 link++; in apq8016_sbc_parse_of()