-
Notifications
You must be signed in to change notification settings - Fork 321
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
remove platform lib/dai.h from SOF Zephyr builds #9653
remove platform lib/dai.h from SOF Zephyr builds #9653
Conversation
Stub build is failing. I think #9651 will help with this. Current chain_dma.c require HDA drivers to be enabled in the build. Will confirm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff - nice to see more deletions of legacy code.
/* 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) + \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, should this be in Zephyr now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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.
The alh.h headers have used SOF platform layer to handle differences between different Intel ALH generations. In the end the only difference is the encoding used for DAI index. Move the variation to ipc4/alh.h directly as this only affects Intel builds with ALH support. Signed-off-by: Kai Vehmanen <[email protected]>
Stop using platform layer to query number of SSP instances and number of HDA in/out DMA channels. The hardware specific information is already defined in device tree data, so no need to have same information duplicated in SOF platform layer. Signed-off-by: Kai Vehmanen <[email protected]>
To calculate the gateway count in hardware config IPC response, ALH bidirection link count is needed. Instead of pulling this from the SOF platform layer, use the ipc4/alh.h directly as it now has this information. Signed-off-by: Kai Vehmanen <[email protected]>
Stop using the SOF platform layer and directly pull the hardware properties from devicetree. Signed-off-by: Kai Vehmanen <[email protected]>
Use of native Zephyr DAIs has no dependency to SOF platform definitions anymore, so this include can be removed. Signed-off-by: Kai Vehmanen <[email protected]>
No longer needed for Zephyr builds, can be removed as unused. Signed-off-by: Kai Vehmanen <[email protected]>
No longer needed for Zephyr builds, can be removed as unused. Signed-off-by: Kai Vehmanen <[email protected]>
b2f426e
to
c9fd56c
Compare
V2 pushed:
|
A patch series the convert remaining use of platform lib/dai.h in SOF cmmon code to either device-tree (in generic code) or simple ifdefs (in vendor specific compiliation units).
In the end of series, remove the lib/dai.h definitions for all Zephyr-only SOF platforms.
Link: #5794