Lines Matching refs:dr
166 struct snd_soc_dapm_route *dr; in avs_create_dapm_routes() local
171 dr = devm_kcalloc(dev, num_dr, sizeof(*dr), GFP_KERNEL); in avs_create_dapm_routes()
172 if (!dr) in avs_create_dapm_routes()
175 memcpy(dr, card_base_routes, num_base * sizeof(*dr)); in avs_create_dapm_routes()
178 dr[idx].sink = devm_kasprintf(dev, GFP_KERNEL, "Left Playback"); in avs_create_dapm_routes()
179 dr[idx].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Tx", ssp_port); in avs_create_dapm_routes()
180 if (!dr[idx].sink || !dr[idx].source) in avs_create_dapm_routes()
184 dr[idx].sink = devm_kasprintf(dev, GFP_KERNEL, "Right Playback"); in avs_create_dapm_routes()
185 dr[idx].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Tx", ssp_port); in avs_create_dapm_routes()
186 if (!dr[idx].sink || !dr[idx].source) in avs_create_dapm_routes()
190 dr[idx].sink = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Rx", ssp_port); in avs_create_dapm_routes()
191 dr[idx].source = devm_kasprintf(dev, GFP_KERNEL, "Left Capture Sense"); in avs_create_dapm_routes()
192 if (!dr[idx].sink || !dr[idx].source) in avs_create_dapm_routes()
196 dr[idx].sink = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Rx", ssp_port); in avs_create_dapm_routes()
197 dr[idx].source = devm_kasprintf(dev, GFP_KERNEL, "Right Capture Sense"); in avs_create_dapm_routes()
198 if (!dr[idx].sink || !dr[idx].source) in avs_create_dapm_routes()
201 *routes = dr; in avs_create_dapm_routes()