ASoC: SOF: Intel: Use generic names for IPC types
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 19 Sep 2023 10:42:24 +0000 (13:42 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2023 12:49:11 +0000 (13:49 +0100)
Use the new SOF_IPC_TYPE_3, SOF_IPC_TYPE_4 in core code.

No functional changes, just renaming.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230919104226.32239-8-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
18 files changed:
sound/soc/sof/intel/apl.c
sound/soc/sof/intel/bdw.c
sound/soc/sof/intel/byt.c
sound/soc/sof/intel/cnl.c
sound/soc/sof/intel/hda-dai-ops.c
sound/soc/sof/intel/hda-dai.c
sound/soc/sof/intel/hda-loader.c
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/icl.c
sound/soc/sof/intel/pci-apl.c
sound/soc/sof/intel/pci-cnl.c
sound/soc/sof/intel/pci-icl.c
sound/soc/sof/intel/pci-lnl.c
sound/soc/sof/intel/pci-mtl.c
sound/soc/sof/intel/pci-skl.c
sound/soc/sof/intel/pci-tgl.c
sound/soc/sof/intel/pci-tng.c
sound/soc/sof/intel/tgl.c

index e1f25a8f0c3262bae0f266b38f0f20fa15925c0c..776b66389c345b3f8eef37959c403edbe78b04f2 100644 (file)
@@ -39,7 +39,7 @@ int sof_apl_ops_init(struct snd_sof_dev *sdev)
        /* probe/remove/shutdown */
        sof_apl_ops.shutdown    = hda_dsp_shutdown;
 
-       if (sdev->pdata->ipc_type == SOF_IPC) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_3) {
                /* doorbell */
                sof_apl_ops.irq_thread  = hda_dsp_ipc_irq_thread;
 
@@ -52,7 +52,7 @@ int sof_apl_ops_init(struct snd_sof_dev *sdev)
                sof_apl_ops.set_power_state = hda_dsp_set_power_state_ipc3;
        }
 
-       if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) {
                struct sof_ipc4_fw_data *ipc4_data;
 
                sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL);
index 812a49b1d3f496ab6d24ad4f004e8b2aab0f45a9..511fce8e0e198be8cbb8d7a56713cb4e43c35bb7 100644 (file)
@@ -639,16 +639,16 @@ static const struct sof_dev_desc sof_acpi_broadwell_desc = {
        .resindex_imr_base = -1,
        .irqindex_host_ipc = 0,
        .chip_info = &bdw_chip_info,
-       .ipc_supported_mask = BIT(SOF_IPC),
-       .ipc_default = SOF_IPC,
+       .ipc_supported_mask = BIT(SOF_IPC_TYPE_3),
+       .ipc_default = SOF_IPC_TYPE_3,
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
+               [SOF_IPC_TYPE_3] = "intel/sof",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-bdw.ri",
+               [SOF_IPC_TYPE_3] = "sof-bdw.ri",
        },
        .nocodec_tplg_filename = "sof-bdw-nocodec.tplg",
        .ops = &sof_bdw_ops,
index faf223b383605b3d16a63725f20d0c4d1242ffe7..a976dc91d2ec69178e5cde3c0920e044290d3e14 100644 (file)
@@ -374,16 +374,16 @@ static const struct sof_dev_desc sof_acpi_baytrailcr_desc = {
        .resindex_imr_base = 2,
        .irqindex_host_ipc = 0,
        .chip_info = &byt_chip_info,
-       .ipc_supported_mask = BIT(SOF_IPC),
-       .ipc_default = SOF_IPC,
+       .ipc_supported_mask = BIT(SOF_IPC_TYPE_3),
+       .ipc_default = SOF_IPC_TYPE_3,
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
+               [SOF_IPC_TYPE_3] = "intel/sof",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-byt.ri",
+               [SOF_IPC_TYPE_3] = "sof-byt.ri",
        },
        .nocodec_tplg_filename = "sof-byt-nocodec.tplg",
        .ops = &sof_byt_ops,
@@ -396,16 +396,16 @@ static const struct sof_dev_desc sof_acpi_baytrail_desc = {
        .resindex_imr_base = 2,
        .irqindex_host_ipc = 5,
        .chip_info = &byt_chip_info,
-       .ipc_supported_mask = BIT(SOF_IPC),
-       .ipc_default = SOF_IPC,
+       .ipc_supported_mask = BIT(SOF_IPC_TYPE_3),
+       .ipc_default = SOF_IPC_TYPE_3,
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
+               [SOF_IPC_TYPE_3] = "intel/sof",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-byt.ri",
+               [SOF_IPC_TYPE_3] = "sof-byt.ri",
        },
        .nocodec_tplg_filename = "sof-byt-nocodec.tplg",
        .ops = &sof_byt_ops,
@@ -418,16 +418,16 @@ static const struct sof_dev_desc sof_acpi_cherrytrail_desc = {
        .resindex_imr_base = 2,
        .irqindex_host_ipc = 5,
        .chip_info = &cht_chip_info,
-       .ipc_supported_mask = BIT(SOF_IPC),
-       .ipc_default = SOF_IPC,
+       .ipc_supported_mask = BIT(SOF_IPC_TYPE_3),
+       .ipc_default = SOF_IPC_TYPE_3,
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
+               [SOF_IPC_TYPE_3] = "intel/sof",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-cht.ri",
+               [SOF_IPC_TYPE_3] = "sof-cht.ri",
        },
        .nocodec_tplg_filename = "sof-cht-nocodec.tplg",
        .ops = &sof_cht_ops,
index c6fbf42852620d836671d7c9eed002bdb4b51321..598cf50abadb3ae6e18f1adbe248bf1ab31a5fb9 100644 (file)
@@ -386,7 +386,7 @@ int sof_cnl_ops_init(struct snd_sof_dev *sdev)
        sof_cnl_ops.shutdown    = hda_dsp_shutdown;
 
        /* ipc */
-       if (sdev->pdata->ipc_type == SOF_IPC) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_3) {
                /* doorbell */
                sof_cnl_ops.irq_thread  = cnl_ipc_irq_thread;
 
@@ -399,7 +399,7 @@ int sof_cnl_ops_init(struct snd_sof_dev *sdev)
                sof_cnl_ops.set_power_state = hda_dsp_set_power_state_ipc3;
        }
 
-       if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) {
                struct sof_ipc4_fw_data *ipc4_data;
 
                sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL);
index 494ced2b746e116109a6ca8cebff3e74451d6766..012a75f366ab4c3c411eef89ccbbc5ff9b44635e 100644 (file)
@@ -609,7 +609,7 @@ hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidg
        sdai = swidget->private;
 
        switch (sdev->pdata->ipc_type) {
-       case SOF_IPC:
+       case SOF_IPC_TYPE_3:
        {
                struct sof_dai_private_data *private = sdai->private;
 
@@ -617,7 +617,7 @@ hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidg
                        return &hda_ipc3_dma_ops;
                break;
        }
-       case SOF_INTEL_IPC4:
+       case SOF_IPC_TYPE_4:
        {
                struct sof_ipc4_copier *ipc4_copier = sdai->private;
                const struct sof_intel_dsp_desc *chip;
index f3cefd86608120ce8ba1044091078e2e80022ed1..318a21c12cd005338bc6303da72825894227fab6 100644 (file)
@@ -607,7 +607,7 @@ void hda_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops)
        ssp_set_dai_drv_ops(sdev, ops);
        dmic_set_dai_drv_ops(sdev, ops);
 
-       if (sdev->pdata->ipc_type == SOF_INTEL_IPC4 && !hda_use_tplg_nhlt) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4 && !hda_use_tplg_nhlt) {
                struct sof_ipc4_fw_data *ipc4_data = sdev->private;
 
                ipc4_data->nhlt = intel_nhlt_init(sdev->dev);
@@ -616,7 +616,7 @@ void hda_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops)
 
 void hda_ops_free(struct snd_sof_dev *sdev)
 {
-       if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) {
                struct sof_ipc4_fw_data *ipc4_data = sdev->private;
 
                if (!hda_use_tplg_nhlt)
index 1e2669a8088d8aae15c32229558aae1430a4578b..46fb2d1425e9f2c0b82264407f7455b9235438b9 100644 (file)
@@ -643,7 +643,7 @@ int hda_dsp_post_fw_run(struct snd_sof_dev *sdev)
                /* Check if IMR boot is usable */
                if (!sof_debug_check_flag(SOF_DBG_IGNORE_D3_PERSISTENT) &&
                    (sdev->fw_ready.flags & SOF_IPC_INFO_D3_PERSISTENT ||
-                    sdev->pdata->ipc_type == SOF_INTEL_IPC4))
+                    sdev->pdata->ipc_type == SOF_IPC_TYPE_4))
                        hdev->imrboot_supported = true;
        }
 
index 15e6779efaa3bcc9e0dc16e6a92271930eba7a0f..01de9ce38147512cb657a56903a1f62a9ce18a42 100644 (file)
@@ -718,7 +718,7 @@ void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags)
        hda_dsp_get_state(sdev, level);
 
        /* The firmware register dump only available with IPC3 */
-       if (flags & SOF_DBG_DUMP_REGS && sdev->pdata->ipc_type == SOF_IPC) {
+       if (flags & SOF_DBG_DUMP_REGS && sdev->pdata->ipc_type == SOF_IPC_TYPE_3) {
                u32 status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_SRAM_REG_FW_STATUS);
                u32 panic = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_SRAM_REG_FW_TRACEP);
 
index 7ac10167a90d77c2f7863c9a02f3fa51772fd36f..8e29d6bb6fe82f44df20e15ea25fd26209bf7509 100644 (file)
@@ -107,7 +107,7 @@ int sof_icl_ops_init(struct snd_sof_dev *sdev)
        /* probe/remove/shutdown */
        sof_icl_ops.shutdown    = hda_dsp_shutdown;
 
-       if (sdev->pdata->ipc_type == SOF_IPC) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_3) {
                /* doorbell */
                sof_icl_ops.irq_thread  = cnl_ipc_irq_thread;
 
@@ -120,7 +120,7 @@ int sof_icl_ops_init(struct snd_sof_dev *sdev)
                sof_icl_ops.set_power_state = hda_dsp_set_power_state_ipc3;
        }
 
-       if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) {
                struct sof_ipc4_fw_data *ipc4_data;
 
                sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL);
index 460f87f25dac224d1648d7272423d1aff6e652b8..4b287b5e9077cb0e1ac99c3431adbac3bc64b6b9 100644 (file)
@@ -27,23 +27,23 @@ static const struct sof_dev_desc bxt_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &apl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/apl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/apl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/apl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/apl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-apl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-apl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-apl-nocodec.tplg",
        .ops = &sof_apl_ops,
@@ -59,23 +59,23 @@ static const struct sof_dev_desc glk_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &apl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/glk",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/glk",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/glk",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/glk",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-glk.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-glk.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-glk-nocodec.tplg",
        .ops = &sof_apl_ops,
index e2c50e7b0aa78e85f4b5f9321cf57b260cc2401a..9fa0cd2eae79a3697811936248776f033a55b708 100644 (file)
@@ -28,23 +28,23 @@ static const struct sof_dev_desc cnl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &cnl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/cnl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/cnl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/cnl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/cnl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-cnl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-cnl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-cnl-nocodec.tplg",
        .ops = &sof_cnl_ops,
@@ -61,23 +61,23 @@ static const struct sof_dev_desc cfl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &cnl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/cnl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/cnl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/cnl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/cnl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-cfl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-cfl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-cnl-nocodec.tplg",
        .ops = &sof_cnl_ops,
@@ -94,23 +94,23 @@ static const struct sof_dev_desc cml_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &cnl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/cnl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/cnl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/cnl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/cnl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-cml.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-cml.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-cnl-nocodec.tplg",
        .ops = &sof_cnl_ops,
index 0a65df3ed9e2b3ede4555032f484a04710eb9b08..b99c7c9aad7dd3e779b0b93bff6cad9e51b3e7e3 100644 (file)
@@ -28,23 +28,23 @@ static const struct sof_dev_desc icl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &icl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/icl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/icl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/icl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/icl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-icl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-icl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-icl-nocodec.tplg",
        .ops = &sof_icl_ops,
@@ -60,23 +60,23 @@ static const struct sof_dev_desc jsl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &jsl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/jsl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/jsl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/jsl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/jsl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-jsl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-jsl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-jsl-nocodec.tplg",
        .ops = &sof_cnl_ops,
index 1b12c280edb46c3146e03721593050ed9c2252d3..78a57eb9cbc377c0b525827a0539baea6850ca6f 100644 (file)
@@ -29,17 +29,17 @@ static const struct sof_dev_desc lnl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info              = &lnl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_INTEL_IPC4,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_4,
        .dspless_mode_supported = true,
        .default_fw_path = {
-               [SOF_INTEL_IPC4] = "intel/sof-ipc4/lnl",
+               [SOF_IPC_TYPE_4] = "intel/sof-ipc4/lnl",
        },
        .default_tplg_path = {
-               [SOF_INTEL_IPC4] = "intel/sof-ace-tplg",
+               [SOF_IPC_TYPE_4] = "intel/sof-ace-tplg",
        },
        .default_fw_filename = {
-               [SOF_INTEL_IPC4] = "sof-lnl.ri",
+               [SOF_IPC_TYPE_4] = "sof-lnl.ri",
        },
        .nocodec_tplg_filename = "sof-lnl-nocodec.tplg",
        .ops = &sof_lnl_ops,
index 7868b0827e844ed5305580fbefc157e6440753f0..235e31a261063bb2c97a4b9f3e541c520a215f1b 100644 (file)
@@ -29,20 +29,20 @@ static const struct sof_dev_desc mtl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &mtl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_INTEL_IPC4,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_4,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_INTEL_IPC4] = "intel/sof-ipc4/mtl",
+               [SOF_IPC_TYPE_4] = "intel/sof-ipc4/mtl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/sof-ipc4-lib/mtl",
+               [SOF_IPC_TYPE_4] = "intel/sof-ipc4-lib/mtl",
        },
        .default_tplg_path = {
-               [SOF_INTEL_IPC4] = "intel/sof-ace-tplg",
+               [SOF_IPC_TYPE_4] = "intel/sof-ace-tplg",
        },
        .default_fw_filename = {
-               [SOF_INTEL_IPC4] = "sof-mtl.ri",
+               [SOF_IPC_TYPE_4] = "sof-mtl.ri",
        },
        .nocodec_tplg_filename = "sof-mtl-nocodec.tplg",
        .ops = &sof_mtl_ops,
index a6588b138a8c074de03f28aa1294e3515a917a8a..9dde439a0b0f5563d08a61d85fb765ea427b01c9 100644 (file)
@@ -24,17 +24,17 @@ static struct sof_dev_desc skl_desc = {
        .resindex_imr_base      = -1,
        .chip_info = &skl_chip_info,
        .irqindex_host_ipc      = -1,
-       .ipc_supported_mask     = BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_INTEL_IPC4,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_4,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_INTEL_IPC4] = "intel/avs/skl",
+               [SOF_IPC_TYPE_4] = "intel/avs/skl",
        },
        .default_tplg_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-skl-nocodec.tplg",
        .ops = &sof_skl_ops,
@@ -49,17 +49,17 @@ static struct sof_dev_desc kbl_desc = {
        .resindex_imr_base      = -1,
        .chip_info = &skl_chip_info,
        .irqindex_host_ipc      = -1,
-       .ipc_supported_mask     = BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_INTEL_IPC4,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_4,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_INTEL_IPC4] = "intel/avs/kbl",
+               [SOF_IPC_TYPE_4] = "intel/avs/kbl",
        },
        .default_tplg_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-kbl-nocodec.tplg",
        .ops = &sof_skl_ops,
index d688f9373fb2f5ede2aa0a5dfc612419b9b9fa94..0660d4b2ac96b66da5997d1aed60ddb91341571a 100644 (file)
@@ -28,23 +28,23 @@ static const struct sof_dev_desc tgl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &tgl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/tgl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/tgl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/tgl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/tgl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-tgl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-tgl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-tgl-nocodec.tplg",
        .ops = &sof_tgl_ops,
@@ -61,23 +61,23 @@ static const struct sof_dev_desc tglh_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &tglh_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/tgl-h",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/tgl-h",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/tgl-h",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/tgl-h",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-tgl-h.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-tgl-h.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-tgl-nocodec.tplg",
        .ops = &sof_tgl_ops,
@@ -93,23 +93,23 @@ static const struct sof_dev_desc ehl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &ehl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/ehl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/ehl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/ehl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/ehl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-ehl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-ehl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-ehl-nocodec.tplg",
        .ops = &sof_tgl_ops,
@@ -126,23 +126,23 @@ static const struct sof_dev_desc adls_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &adls_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/adl-s",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/adl-s",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/adl-s",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/adl-s",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-adl-s.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-adl-s.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-adl-nocodec.tplg",
        .ops = &sof_tgl_ops,
@@ -159,23 +159,23 @@ static const struct sof_dev_desc adl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &tgl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/adl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/adl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/adl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/adl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-adl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-adl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-adl-nocodec.tplg",
        .ops = &sof_tgl_ops,
@@ -192,23 +192,23 @@ static const struct sof_dev_desc adl_n_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &tgl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/adl-n",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/adl-n",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/adl-n",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/adl-n",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-adl-n.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-adl-n.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-adl-nocodec.tplg",
        .ops = &sof_tgl_ops,
@@ -225,23 +225,23 @@ static const struct sof_dev_desc rpls_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &adls_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/rpl-s",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/rpl-s",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/rpl-s",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/rpl-s",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-rpl-s.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-rpl-s.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-rpl-nocodec.tplg",
        .ops = &sof_tgl_ops,
@@ -258,23 +258,23 @@ static const struct sof_dev_desc rpl_desc = {
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
        .chip_info = &tgl_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC) | BIT(SOF_INTEL_IPC4),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3) | BIT(SOF_IPC_TYPE_4),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .dspless_mode_supported = true,         /* Only supported for HDaudio */
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
-               [SOF_INTEL_IPC4] = "intel/avs/rpl",
+               [SOF_IPC_TYPE_3] = "intel/sof",
+               [SOF_IPC_TYPE_4] = "intel/avs/rpl",
        },
        .default_lib_path = {
-               [SOF_INTEL_IPC4] = "intel/avs-lib/rpl",
+               [SOF_IPC_TYPE_4] = "intel/avs-lib/rpl",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
-               [SOF_INTEL_IPC4] = "intel/avs-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_4] = "intel/avs-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-rpl.ri",
-               [SOF_INTEL_IPC4] = "dsp_basefw.bin",
+               [SOF_IPC_TYPE_3] = "sof-rpl.ri",
+               [SOF_IPC_TYPE_4] = "dsp_basefw.bin",
        },
        .nocodec_tplg_filename = "sof-rpl-nocodec.tplg",
        .ops = &sof_tgl_ops,
index 4ae4fe17cc0bc55d4c2dae6f0280f1bb83f8f462..c90173003c2ba86f76bc4e66ba167500e8af385e 100644 (file)
@@ -208,16 +208,16 @@ static const struct sof_dev_desc tng_desc = {
        .resindex_imr_base      = 0,
        .irqindex_host_ipc      = -1,
        .chip_info = &tng_chip_info,
-       .ipc_supported_mask     = BIT(SOF_IPC),
-       .ipc_default            = SOF_IPC,
+       .ipc_supported_mask     = BIT(SOF_IPC_TYPE_3),
+       .ipc_default            = SOF_IPC_TYPE_3,
        .default_fw_path = {
-               [SOF_IPC] = "intel/sof",
+               [SOF_IPC_TYPE_3] = "intel/sof",
        },
        .default_tplg_path = {
-               [SOF_IPC] = "intel/sof-tplg",
+               [SOF_IPC_TYPE_3] = "intel/sof-tplg",
        },
        .default_fw_filename = {
-               [SOF_IPC] = "sof-byt.ri",
+               [SOF_IPC_TYPE_3] = "sof-byt.ri",
        },
        .nocodec_tplg_filename = "sof-byt.tplg",
        .ops = &sof_tng_ops,
index bb9f20253c996da3a746da7ddcb7e7c8006a0283..61dfc18a8fc070bcbf1232e27d262278fbd516b6 100644 (file)
@@ -66,7 +66,7 @@ int sof_tgl_ops_init(struct snd_sof_dev *sdev)
        /* probe/remove/shutdown */
        sof_tgl_ops.shutdown    = hda_dsp_shutdown_dma_flush;
 
-       if (sdev->pdata->ipc_type == SOF_IPC) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_3) {
                /* doorbell */
                sof_tgl_ops.irq_thread  = cnl_ipc_irq_thread;
 
@@ -79,7 +79,7 @@ int sof_tgl_ops_init(struct snd_sof_dev *sdev)
                sof_tgl_ops.set_power_state = hda_dsp_set_power_state_ipc3;
        }
 
-       if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
+       if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) {
                struct sof_ipc4_fw_data *ipc4_data;
 
                sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL);