Lines Matching refs:plat_data
267 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_select_ipc_and_paths() local
268 struct sof_loadable_file_profile *base_profile = &plat_data->ipc_file_profile_base; in sof_select_ipc_and_paths()
273 if (base_profile->ipc_type != plat_data->desc->ipc_default) in sof_select_ipc_and_paths()
276 plat_data->desc->ipc_default, base_profile->ipc_type); in sof_select_ipc_and_paths()
308 plat_data->ipc_type = out_profile.ipc_type; in sof_select_ipc_and_paths()
309 plat_data->fw_filename = out_profile.fw_name; in sof_select_ipc_and_paths()
310 plat_data->fw_filename_prefix = out_profile.fw_path; in sof_select_ipc_and_paths()
311 plat_data->fw_lib_prefix = out_profile.fw_lib_path; in sof_select_ipc_and_paths()
312 plat_data->tplg_filename_prefix = out_profile.tplg_path; in sof_select_ipc_and_paths()
347 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_init_sof_ops() local
348 struct sof_loadable_file_profile *base_profile = &plat_data->ipc_file_profile_base; in sof_init_sof_ops()
351 if (!(BIT(base_profile->ipc_type) & plat_data->desc->ipc_supported_mask)) { in sof_init_sof_ops()
354 base_profile->ipc_type, plat_data->desc->ipc_supported_mask); in sof_init_sof_ops()
362 plat_data->ipc_type = base_profile->ipc_type; in sof_init_sof_ops()
363 plat_data->tplg_filename = base_profile->tplg_name; in sof_init_sof_ops()
370 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_init_environment() local
371 struct sof_loadable_file_profile *base_profile = &plat_data->ipc_file_profile_base; in sof_init_environment()
391 } else if (plat_data->ipc_type != base_profile->ipc_type) { in sof_init_environment()
456 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_probe_continue() local
546 ret = snd_sof_machine_register(sdev, plat_data); in sof_probe_continue()
567 if (plat_data->sof_probe_complete) in sof_probe_continue()
568 plat_data->sof_probe_complete(sdev->dev); in sof_probe_continue()
575 snd_sof_machine_unregister(sdev, plat_data); in sof_probe_continue()
611 struct snd_sof_pdata *plat_data) in sof_apply_profile_override() argument
626 plat_data->disable_function_topology = true; in sof_apply_profile_override()
630 int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data) in snd_sof_device_probe() argument
645 sdev->pdata = plat_data; in snd_sof_device_probe()
653 if (plat_data->desc->dspless_mode_supported) { in snd_sof_device_probe()
661 sof_apply_profile_override(&plat_data->ipc_file_profile_base, plat_data); in snd_sof_device_probe()
685 if (plat_data->desc->ipc_timeout == 0) in snd_sof_device_probe()
688 sdev->ipc_timeout = plat_data->desc->ipc_timeout; in snd_sof_device_probe()
689 if (plat_data->desc->boot_timeout == 0) in snd_sof_device_probe()
692 sdev->boot_timeout = plat_data->desc->boot_timeout; in snd_sof_device_probe()
808 struct snd_sof_pdata *plat_data = pdata; in sof_machine_register() local
813 drv_name = plat_data->machine->drv_name; in sof_machine_register()
814 mach = plat_data->machine; in sof_machine_register()
815 size = sizeof(*plat_data->machine); in sof_machine_register()
818 plat_data->pdev_mach = in sof_machine_register()
821 if (IS_ERR(plat_data->pdev_mach)) in sof_machine_register()
822 return PTR_ERR(plat_data->pdev_mach); in sof_machine_register()
825 dev_name(&plat_data->pdev_mach->dev)); in sof_machine_register()
833 struct snd_sof_pdata *plat_data = pdata; in sof_machine_unregister() local
835 platform_device_unregister(plat_data->pdev_mach); in sof_machine_unregister()