Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/audio/base_fw_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ __cold int basefw_vendor_dma_control(uint32_t node_id, const char *config_data,
{
union ipc4_connector_node_id node = (union ipc4_connector_node_id)node_id;
int ret, result;
enum dai_type type;
enum sof_ipc_dai_type type;

assert_can_be_cold();

Expand All @@ -442,7 +442,7 @@ __cold int basefw_vendor_dma_control(uint32_t node_id, const char *config_data,
return IPC4_SUCCESS;
case ipc4_i2s_link_output_class:
case ipc4_i2s_link_input_class:
type = DAI_INTEL_SSP;
type = SOF_DAI_INTEL_SSP;
break;
default:
return IPC4_INVALID_RESOURCE_ID;
Expand Down
3 changes: 2 additions & 1 deletion src/include/sof/lib/dai-zephyr.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <sof/ipc/topology.h>
#include <sof/audio/pcm_converter.h>
#include <sof/audio/ipc-config.h>
#include <ipc/dai.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
Expand Down Expand Up @@ -305,7 +306,7 @@ void dai_release_llp_slot(struct dai_data *dd);
/**
* \brief Retrieve a pointer to the Zephyr device structure for a DAI of a given type and index.
*/
const struct device *dai_get_device(uint32_t type, uint32_t index);
const struct device *dai_get_device(enum sof_ipc_dai_type type, uint32_t index);

/**
* \brief Retrieve the list of all DAI devices.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static int sof_dai_type_to_zephyr(uint32_t type)
}
}

const struct device *dai_get_device(uint32_t type, uint32_t index)
const struct device *dai_get_device(enum sof_ipc_dai_type type, uint32_t index)
{
struct dai_config cfg;
int z_type;
Expand Down