Lines Matching defs:sdev
30 static int icl_dsp_core_stall(struct snd_sof_dev *sdev, unsigned int core_mask)
32 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
38 dev_err(sdev->dev, "error: core_mask is not in host managed cores\n");
43 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPCS,
54 static int icl_dsp_post_fw_run(struct snd_sof_dev *sdev)
56 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
59 if (sdev->first_boot) {
60 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata;
62 ret = hda_sdw_startup(sdev);
64 dev_err(sdev->dev, "error: could not startup SoundWire links\n");
70 sdev->fw_ready.flags & SOF_IPC_INFO_D3_PERSISTENT)
74 hda_sdw_int_enable(sdev, true);
81 ret = hda_dsp_enable_core(sdev, BIT(ICL_DSP_HPRO_CORE_ID));
83 dev_err(sdev->dev, "error: dsp core power up failed on core %d\n",
88 sdev->enabled_cores_mask |= BIT(ICL_DSP_HPRO_CORE_ID);
89 sdev->dsp_core_ref_count[ICL_DSP_HPRO_CORE_ID]++;
91 snd_sof_dsp_stall(sdev, BIT(ICL_DSP_HPRO_CORE_ID));
95 return hda_dsp_ctrl_clock_power_gating(sdev, true);
102 int sof_icl_ops_init(struct snd_sof_dev *sdev)
110 if (sdev->pdata->ipc_type == SOF_IPC) {
123 if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
126 sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL);
127 if (!sdev->private)
130 ipc4_data = sdev->private;
165 hda_set_dai_drv_ops(sdev, &sof_icl_ops);