Lines Matching refs:sdev

56 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);  in sof_update_ipc_object()  local
57 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_update_ipc_object()
270 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in set_up_volume_table() local
271 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in set_up_volume_table()
494 static int sof_copy_tuples(struct snd_sof_dev *sdev, struct snd_soc_tplg_vendor_array *array, in sof_copy_tuples() argument
498 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_copy_tuples()
511 dev_err(sdev->dev, "Invalid tuples array\n"); in sof_copy_tuples()
519 dev_err(sdev->dev, "No token array defined for token ID: %d\n", token_id); in sof_copy_tuples()
525 dev_err(sdev->dev, "No space in tuples array for new tokens from %s", in sof_copy_tuples()
535 dev_err(sdev->dev, "Invalid array size 0x%x\n", asize); in sof_copy_tuples()
542 dev_err(sdev->dev, "Invalid array size 0x%x\n", asize); in sof_copy_tuples()
821 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_control_load_volume() local
841 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_volume()
881 sdev->led_present = true; in sof_control_load_volume()
901 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_control_load_enum() local
909 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_enum()
923 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_control_load_bytes() local
930 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_bytes()
954 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_control_load() local
1020 list_add(&scontrol->list, &sdev->kcontrol_list); in sof_control_load()
1027 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_control_unload() local
1028 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_control_unload()
1035 ret = tplg_ops->control_free(sdev, scontrol); in sof_control_unload()
1152 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in spcm_bind() local
1155 if (sdev->dspless_mode_selected) in spcm_bind()
1190 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_widget_parse_tokens() local
1191 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_parse_tokens()
1246 dev_err(sdev->dev, "Invalid input audio format count for %s\n", in sof_widget_parse_tokens()
1256 dev_err(sdev->dev, "Invalid output audio format count for %s\n", in sof_widget_parse_tokens()
1281 ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size), in sof_widget_parse_tokens()
1389 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_widget_ready() local
1390 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_ready()
1405 swidget->comp_id = sdev->next_comp_id++; in sof_widget_ready()
1488 list_add(&dai->list, &sdev->dai_list); in sof_widget_ready()
1574 list_add(&spipe->list, &sdev->pipeline_list); in sof_widget_ready()
1578 list_add(&swidget->list, &sdev->widget_list); in sof_widget_ready()
1608 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_widget_unload() local
1609 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_unload()
1707 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_dai_load() local
1708 const struct sof_ipc_pcm_ops *ipc_pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_dai_load()
1738 ret = ipc_pcm_ops->pcm_setup(sdev, spcm); in sof_dai_load()
1746 list_add(&spcm->list, &sdev->pcm_list); in sof_dai_load()
1766 ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, sdev->dev, in sof_dai_load()
1793 ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, sdev->dev, in sof_dai_load()
1822 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_dai_unload() local
1823 const struct sof_ipc_pcm_ops *ipc_pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_dai_unload()
1835 ipc_pcm_ops->pcm_free(sdev, spcm); in sof_dai_unload()
1853 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_link_load() local
1854 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_link_load()
1869 ret = tplg_ops->link_setup(sdev, link); in sof_link_load()
1979 ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size), in sof_link_load()
1994 ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size), in sof_link_load()
2008 dev_err(sdev->dev, "Invalid active PDM count for %s\n", link->name); in sof_link_load()
2013 ret = sof_copy_tuples(sdev, private->array, le32_to_cpu(private->size), in sof_link_load()
2024 list_add(&slink->list, &sdev->dai_link_list); in sof_link_load()
2056 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_route_load() local
2114 list_add(&sroute->list, &sdev->route_list); in sof_route_load()
2132 static int sof_set_widget_pipeline(struct snd_sof_dev *sdev, struct snd_sof_pipeline *spipe, in sof_set_widget_pipeline() argument
2140 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) in sof_set_widget_pipeline()
2143 dev_err(sdev->dev, in sof_set_widget_pipeline()
2160 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_complete() local
2161 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_complete()
2171 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_complete()
2172 ret = tplg_ops->control_setup(sdev, scontrol); in sof_complete()
2174 dev_err(sdev->dev, "failed updating IPC struct for control %s\n", in sof_complete()
2181 list_for_each_entry(spipe, &sdev->pipeline_list, list) { in sof_complete()
2191 dev_err(sdev->dev, "failed updating IPC struct for %s\n", in sof_complete()
2198 list_for_each_entry(swidget, &sdev->widget_list, list) in sof_complete()
2201 ret = sof_set_widget_pipeline(sdev, spipe, swidget); in sof_complete()
2208 dev_err(sdev->dev, in sof_complete()
2221 ret = tplg_ops->set_up_all_pipelines(sdev, true); in sof_complete()
2223 dev_err(sdev->dev, "Failed to set up all topology pipelines: %d\n", in sof_complete()
2228 ret = tplg_ops->tear_down_all_pipelines(sdev, true); in sof_complete()
2230 dev_err(sdev->dev, "Failed to tear down topology pipelines: %d\n", in sof_complete()
2239 return tplg_ops->set_up_all_pipelines(sdev, false); in sof_complete()
2248 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_manifest() local
2249 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_manifest()
2346 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in sof_dspless_widget_ready() local
2367 list_add(&swidget->list, &sdev->widget_list); in sof_dspless_widget_ready()
2430 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in snd_sof_load_topology() local
2445 if (sdev->dspless_mode_selected) in snd_sof_load_topology()
2458 if (ret >= 0 && sdev->led_present) in snd_sof_load_topology()