Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
remove platform lib/dai.h from SOF Zephyr builds#9653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
0e25512afb6401ac4029f57c15a021cd3f411f55f6c9fd56cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -24,6 +24,7 @@ | ||
| #include <sof/lib/memory.h> | ||
| #include <ipc4/base_fw.h> | ||
| #include <ipc4/alh.h> | ||
| #include <rimage/sof/user/manifest.h> | ||
| #include "copier/copier_gain.h" | ||
| @@ -47,6 +48,10 @@ struct ipc4_modules_info { | ||
| #define PLATFORM_LPSRAM_EBB_COUNT (DT_REG_SIZE(DT_NODELABEL(sram1)) / SRAM_BANK_SIZE) | ||
| #define PLATFORM_HPSRAM_EBB_COUNT (DT_REG_SIZE(DT_NODELABEL(sram0)) / SRAM_BANK_SIZE) | ||
| #define DT_NUM_SSP_BASE DT_NUM_INST_STATUS_OKAY(intel_ssp) | ||
| #define DT_NUM_HDA_IN DT_PROP(DT_INST(0, intel_adsp_hda_link_in), dma_channels) | ||
| #define DT_NUM_HDA_OUT DT_PROP(DT_INST(0, intel_adsp_hda_link_out), dma_channels) | ||
| LOG_MODULE_REGISTER(basefw_intel, CONFIG_SOF_LOG_LEVEL); | ||
| int basefw_vendor_fw_config(uint32_t *data_offset, char *data) | ||
| @@ -83,8 +88,8 @@ int basefw_vendor_hw_config(uint32_t *data_offset, char *data) | ||
| tuple = tlv_next(tuple); | ||
| /* 2 DMIC dais */ | ||
| value = DAI_NUM_SSP_BASE + DAI_NUM_HDA_IN + DAI_NUM_HDA_OUT + | ||
| DAI_NUM_ALH_BI_DIR_LINKS + 2; | ||
| value = DT_NUM_SSP_BASE + DT_NUM_HDA_IN + DT_NUM_HDA_OUT + | ||
| IPC4_DAI_NUM_ALH_BI_DIR_LINKS + 2; | ||
lgirdwood marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| tlv_value_uint32_set(tuple, IPC4_GATEWAY_COUNT_HW_CFG, value); | ||
| tuple = tlv_next(tuple); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -36,10 +36,19 @@ | ||
| #define IPC4_ALH_DAI_INDEX_OFFSET 0 | ||
| #endif | ||
| #if defined(CONFIG_SOC_SERIES_INTEL_ADSP_CAVS) || \ | ||
| defined(CONFIG_SOC_INTEL_ACE15_MTPM) | ||
| #define IPC4_DAI_NUM_ALH_BI_DIR_LINKS 16 | ||
| #define IPC4_DAI_NUM_ALH_BI_DIR_LINKS_GROUP 4 | ||
| #else | ||
| #define IPC4_DAI_NUM_ALH_BI_DIR_LINKS 0 | ||
| #define IPC4_DAI_NUM_ALH_BI_DIR_LINKS_GROUP 0 | ||
| #endif | ||
| /* copier id = (group id << 4) + codec id + IPC4_ALH_DAI_INDEX_OFFSET | ||
| * dai_index = (group id << 8) + codec id; | ||
| */ | ||
| #define IPC4_ALH_DAI_INDEX(x) ((((x) & 0xF0) << DAI_NUM_ALH_BI_DIR_LINKS_GROUP) + \ | ||
| #define IPC4_ALH_DAI_INDEX(x) ((((x) & 0xF0) << IPC4_DAI_NUM_ALH_BI_DIR_LINKS_GROUP) + \ | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw, should this be in Zephyr now ? CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lgirdwood I took a look at this, but we don't really have a good schema for ALH instances in DT, and on newer platforms (ace20 onwards), this is really replaced by the HDA link DMA. And to add to that, this bi-dir-link group is really only used to parse the blob, so it's not even strictly tied to hw interface and its use, so in the end did not seem worth the effort. | ||
| (((x) & 0xF) - IPC4_ALH_DAI_INDEX_OFFSET)) | ||
| /* Multi-gateways addressing starts from IPC4_ALH_MULTI_GTW_BASE */ | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.