Lines Matching refs:plat_data

231 	struct snd_sof_pdata *plat_data = sdev->pdata;  in sof_select_ipc_and_paths()  local
232 struct sof_loadable_file_profile *base_profile = &plat_data->ipc_file_profile_base; in sof_select_ipc_and_paths()
237 if (base_profile->ipc_type != plat_data->desc->ipc_default) in sof_select_ipc_and_paths()
240 plat_data->desc->ipc_default, base_profile->ipc_type); in sof_select_ipc_and_paths()
272 plat_data->ipc_type = out_profile.ipc_type; in sof_select_ipc_and_paths()
273 plat_data->fw_filename = out_profile.fw_name; in sof_select_ipc_and_paths()
274 plat_data->fw_filename_prefix = out_profile.fw_path; in sof_select_ipc_and_paths()
275 plat_data->fw_lib_prefix = out_profile.fw_lib_path; in sof_select_ipc_and_paths()
276 plat_data->tplg_filename_prefix = out_profile.tplg_path; in sof_select_ipc_and_paths()
311 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_init_sof_ops() local
312 struct sof_loadable_file_profile *base_profile = &plat_data->ipc_file_profile_base; in sof_init_sof_ops()
315 if (!(BIT(base_profile->ipc_type) & plat_data->desc->ipc_supported_mask)) { in sof_init_sof_ops()
318 base_profile->ipc_type, plat_data->desc->ipc_supported_mask); in sof_init_sof_ops()
326 plat_data->ipc_type = base_profile->ipc_type; in sof_init_sof_ops()
327 plat_data->tplg_filename = base_profile->tplg_name; in sof_init_sof_ops()
334 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_init_environment() local
335 struct sof_loadable_file_profile *base_profile = &plat_data->ipc_file_profile_base; in sof_init_environment()
355 } else if (plat_data->ipc_type != base_profile->ipc_type) { in sof_init_environment()
420 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_probe_continue() local
510 ret = snd_sof_machine_register(sdev, plat_data); in sof_probe_continue()
531 if (plat_data->sof_probe_complete) in sof_probe_continue()
532 plat_data->sof_probe_complete(sdev->dev); in sof_probe_continue()
539 snd_sof_machine_unregister(sdev, plat_data); in sof_probe_continue()
573 int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data) in snd_sof_device_probe() argument
588 sdev->pdata = plat_data; in snd_sof_device_probe()
596 if (plat_data->desc->dspless_mode_supported) { in snd_sof_device_probe()
626 if (plat_data->desc->ipc_timeout == 0) in snd_sof_device_probe()
629 sdev->ipc_timeout = plat_data->desc->ipc_timeout; in snd_sof_device_probe()
630 if (plat_data->desc->boot_timeout == 0) in snd_sof_device_probe()
633 sdev->boot_timeout = plat_data->desc->boot_timeout; in snd_sof_device_probe()
740 struct snd_sof_pdata *plat_data = pdata; in sof_machine_register() local
745 drv_name = plat_data->machine->drv_name; in sof_machine_register()
746 mach = plat_data->machine; in sof_machine_register()
747 size = sizeof(*plat_data->machine); in sof_machine_register()
750 plat_data->pdev_mach = in sof_machine_register()
753 if (IS_ERR(plat_data->pdev_mach)) in sof_machine_register()
754 return PTR_ERR(plat_data->pdev_mach); in sof_machine_register()
757 dev_name(&plat_data->pdev_mach->dev)); in sof_machine_register()
765 struct snd_sof_pdata *plat_data = pdata; in sof_machine_unregister() local
767 platform_device_unregister(plat_data->pdev_mach); in sof_machine_unregister()