Skip to content

Commit 5a286c8

Browse files
serhiy-katsyuba-intellgirdwood
authored andcommitted
audio: base_fw_intel: fix incorrect DAI type usage
We have two enums with DAI types: enum sof_ipc_dai_type in SOF and enum dai_type in Zephyr. dai_get_device() expects the SOF enum sof_ipc_dai_type and then internally converts it to the Zephyr enum dai_type. This fix does not change any behavior as both DAI_INTEL_SSP and SOF_DAI_INTEL_SSP are currently declared as 1. However, there is a risk that those enums might go out of sync in the future. Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
1 parent 2925c4b commit 5a286c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/audio/base_fw_intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ __cold int basefw_vendor_dma_control(uint32_t node_id, const char *config_data,
422422
{
423423
union ipc4_connector_node_id node = (union ipc4_connector_node_id)node_id;
424424
int ret, result;
425-
enum dai_type type;
425+
enum sof_ipc_dai_type type;
426426

427427
assert_can_be_cold();
428428

@@ -442,7 +442,7 @@ __cold int basefw_vendor_dma_control(uint32_t node_id, const char *config_data,
442442
return IPC4_SUCCESS;
443443
case ipc4_i2s_link_output_class:
444444
case ipc4_i2s_link_input_class:
445-
type = DAI_INTEL_SSP;
445+
type = SOF_DAI_INTEL_SSP;
446446
break;
447447
default:
448448
return IPC4_INVALID_RESOURCE_ID;

0 commit comments

Comments
 (0)