Lines Matching refs:dai_drv

294 	struct snd_soc_dai_driver *dai_drv,  in soc_tplg_dai_load()  argument
298 return tplg->ops->dai_load(tplg->comp, tplg->index, dai_drv, in soc_tplg_dai_load()
450 struct snd_soc_dai_driver *dai_drv = in remove_dai() local
461 if (dai->driver == dai_drv) in remove_dai()
1591 static void set_dai_flags(struct snd_soc_dai_driver *dai_drv, in set_dai_flags() argument
1595 dai_drv->symmetric_rate = in set_dai_flags()
1599 dai_drv->symmetric_channels = in set_dai_flags()
1604 dai_drv->symmetric_sample_bits = in set_dai_flags()
1612 struct snd_soc_dai_driver *dai_drv; in soc_tplg_dai_create() local
1620 dai_drv = devm_kzalloc(tplg->dev, sizeof(struct snd_soc_dai_driver), GFP_KERNEL); in soc_tplg_dai_create()
1621 if (dai_drv == NULL) in soc_tplg_dai_create()
1625 dai_drv->name = devm_kstrdup(tplg->dev, pcm->dai_name, GFP_KERNEL); in soc_tplg_dai_create()
1626 if (!dai_drv->name) { in soc_tplg_dai_create()
1631 dai_drv->id = le32_to_cpu(pcm->dai_id); in soc_tplg_dai_create()
1634 stream = &dai_drv->playback; in soc_tplg_dai_create()
1642 stream = &dai_drv->capture; in soc_tplg_dai_create()
1650 dai_drv->compress_new = snd_soc_new_compress; in soc_tplg_dai_create()
1653 ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL); in soc_tplg_dai_create()
1659 dai_drv->dobj.index = tplg->index; in soc_tplg_dai_create()
1660 dai_drv->dobj.ops = tplg->ops; in soc_tplg_dai_create()
1661 dai_drv->dobj.type = SND_SOC_DOBJ_PCM; in soc_tplg_dai_create()
1662 list_add(&dai_drv->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dai_create()
1665 dai = snd_soc_register_dai(tplg->comp, dai_drv, false); in soc_tplg_dai_create()
2219 struct snd_soc_dai_driver *dai_drv; in soc_tplg_dai_config() local
2240 dai_drv = dai->driver; in soc_tplg_dai_config()
2241 if (!dai_drv) in soc_tplg_dai_config()
2245 stream = &dai_drv->playback; in soc_tplg_dai_config()
2253 stream = &dai_drv->capture; in soc_tplg_dai_config()
2261 set_dai_flags(dai_drv, in soc_tplg_dai_config()
2266 ret = soc_tplg_dai_load(tplg, dai_drv, NULL, dai); in soc_tplg_dai_config()