Home
last modified time | relevance | path

Searched refs:plat_data (Results 1 – 12 of 12) sorted by relevance

/sound/soc/fsl/
Dimx-card.c115 struct imx_card_plat_data *plat_data; member
258 const struct imx_card_plat_data *plat_data = data->plat_data; in akcodec_get_mclk_rate() local
265 for (i = 0; i < plat_data->num_tdm_fs_mul; i++) { in akcodec_get_mclk_rate()
267 if (width != plat_data->tdm_fs_mul[i].min) in akcodec_get_mclk_rate()
269 return rate * plat_data->tdm_fs_mul[i].mul; in akcodec_get_mclk_rate()
272 for (i = 0; i < plat_data->num_fs_mul; i++) { in akcodec_get_mclk_rate()
273 if (rate >= plat_data->fs_mul[i].rmin && in akcodec_get_mclk_rate()
274 rate <= plat_data->fs_mul[i].rmax) { in akcodec_get_mclk_rate()
275 width = max(width, plat_data->fs_mul[i].wmin); in akcodec_get_mclk_rate()
276 width = min(width, plat_data->fs_mul[i].wmax); in akcodec_get_mclk_rate()
[all …]
/sound/soc/sof/
Dcore.c188 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_probe_continue() local
282 ret = snd_sof_machine_register(sdev, plat_data); in sof_probe_continue()
303 if (plat_data->sof_probe_complete) in sof_probe_continue()
304 plat_data->sof_probe_complete(sdev->dev); in sof_probe_continue()
311 snd_sof_machine_unregister(sdev, plat_data); in sof_probe_continue()
346 int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data) in snd_sof_device_probe() argument
361 sdev->pdata = plat_data; in snd_sof_device_probe()
366 if (!(BIT(plat_data->ipc_type) & plat_data->desc->ipc_supported_mask)) { in snd_sof_device_probe()
368 plat_data->ipc_type, plat_data->desc->ipc_supported_mask); in snd_sof_device_probe()
403 if (plat_data->desc->ipc_timeout == 0) in snd_sof_device_probe()
[all …]
Dloader.c19 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw() local
25 if (plat_data->fw) in snd_sof_load_firmware_raw()
29 plat_data->fw_filename_prefix, in snd_sof_load_firmware_raw()
30 plat_data->fw_filename); in snd_sof_load_firmware_raw()
34 ret = request_firmware(&plat_data->fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw()
51 plat_data->fw_offset = ext_man_size; in snd_sof_load_firmware_raw()
70 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_memcpy() local
103 release_firmware(plat_data->fw); in snd_sof_load_firmware_memcpy()
104 plat_data->fw = NULL; in snd_sof_load_firmware_memcpy()
Dipc3-loader.c141 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc3_fw_parse_ext_man() local
142 const struct firmware *fw = plat_data->fw; in sof_ipc3_fw_parse_ext_man()
313 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc3_load_fw_to_dsp() local
314 const struct firmware *fw = plat_data->fw; in sof_ipc3_load_fw_to_dsp()
321 if (!plat_data->fw) in sof_ipc3_load_fw_to_dsp()
324 header = (struct snd_sof_fw_header *)(fw->data + plat_data->fw_offset); in sof_ipc3_load_fw_to_dsp()
334 module = (struct snd_sof_mod_hdr *)(fw->data + plat_data->fw_offset + in sof_ipc3_load_fw_to_dsp()
336 remaining = fw->size - sizeof(*header) - plat_data->fw_offset; in sof_ipc3_load_fw_to_dsp()
377 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc3_validate_firmware() local
378 const struct firmware *fw = plat_data->fw; in sof_ipc3_validate_firmware()
[all …]
Dsof-audio.c879 struct snd_sof_pdata *plat_data = pdata; in sof_machine_register() local
884 drv_name = plat_data->machine->drv_name; in sof_machine_register()
885 mach = plat_data->machine; in sof_machine_register()
886 size = sizeof(*plat_data->machine); in sof_machine_register()
889 plat_data->pdev_mach = in sof_machine_register()
892 if (IS_ERR(plat_data->pdev_mach)) in sof_machine_register()
893 return PTR_ERR(plat_data->pdev_mach); in sof_machine_register()
896 dev_name(&plat_data->pdev_mach->dev)); in sof_machine_register()
904 struct snd_sof_pdata *plat_data = pdata; in sof_machine_unregister() local
906 if (!IS_ERR_OR_NULL(plat_data->pdev_mach)) in sof_machine_unregister()
[all …]
Dipc4-loader.c20 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc4_fw_parse_ext_man() local
22 const struct firmware *fw = plat_data->fw; in sof_ipc4_fw_parse_ext_man()
141 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_ipc4_validate_firmware() local
143 const struct firmware *fw = plat_data->fw; in sof_ipc4_validate_firmware()
Dpcm.c603 struct snd_sof_pdata *plat_data = sdev->pdata; in sof_pcm_probe() local
620 plat_data->tplg_filename_prefix, in sof_pcm_probe()
621 plat_data->tplg_filename); in sof_pcm_probe()
656 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_new_platform_drv() local
659 if (plat_data->machine) in snd_sof_new_platform_drv()
660 drv_name = plat_data->machine->drv_name; in snd_sof_new_platform_drv()
661 else if (plat_data->of_machine) in snd_sof_new_platform_drv()
662 drv_name = plat_data->of_machine->drv_name; in snd_sof_new_platform_drv()
Dsof-priv.h615 int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data);
/sound/soc/sof/intel/
Dhda-loader.c321 struct snd_sof_pdata *plat_data = sdev->pdata; in hda_dsp_cl_boot_firmware_iccmax() local
332 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware_iccmax()
337 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware_iccmax()
388 struct snd_sof_pdata *plat_data = sdev->pdata; in hda_dsp_cl_boot_firmware() local
389 const struct sof_dev_desc *desc = plat_data->desc; in hda_dsp_cl_boot_firmware()
408 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware()
413 stripped_firmware.data = plat_data->fw->data + plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
414 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
Dhda-loader-skl.c497 struct snd_sof_pdata *plat_data = sdev->pdata; in cl_copy_fw_skl() local
498 const struct firmware *fw = plat_data->fw; in cl_copy_fw_skl()
503 stripped_firmware.data = plat_data->fw->data + plat_data->fw_offset; in cl_copy_fw_skl()
504 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in cl_copy_fw_skl()
/sound/soc/sof/amd/
Dacp-loader.c51 struct snd_sof_pdata *plat_data = sdev->pdata; in acp_dsp_block_write() local
64 size_fw = plat_data->fw->size; in acp_dsp_block_write()
155 struct snd_sof_pdata *plat_data = sdev->pdata; in acp_dsp_pre_fw_run() local
189 dma_size = (PAGE_ALIGN(plat_data->fw->size) >> PAGE_SHIFT) * ACP_PAGE_SIZE; in acp_dsp_pre_fw_run()
/sound/soc/codecs/
Dmt6660.h24 struct mt6660_platform_data plat_data; member