-
Notifications
You must be signed in to change notification settings - Fork 349
[DNM] dai: add support for Intel UAOL DAI #9227
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,12 @@ void dai_set_link_hda_config(uint16_t *link_config, | |
| } | ||
| link_cfg.part.stream = common_config->host_dma_config[0]->stream_id; | ||
| break; | ||
| case SOF_DAI_INTEL_UAOL: | ||
| link_cfg.full = 0; | ||
| link_cfg.part.hchan = out_fmt->channels_count - 1; | ||
| link_cfg.part.dir = common_config->direction; | ||
| link_cfg.part.stream = common_config->host_dma_config[0]->stream_id; | ||
| break; | ||
| default: | ||
| /* other types of DAIs not need link_config */ | ||
| return; | ||
|
|
@@ -115,6 +121,13 @@ int dai_config_dma_channel(struct dai_data *dd, struct comp_dev *dev, const void | |
| */ | ||
| channel = 0; | ||
| break; | ||
| #if ACE_VERSION > ACE_VERSION_1_5 | ||
| case SOF_DAI_INTEL_UAOL: | ||
| channel = 0; | ||
| if (dai->host_dma_config[0]->pre_allocated_by_host) | ||
| channel = dai->host_dma_config[0]->dma_channel_id; | ||
| break; | ||
|
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. I don't fully understand this. for LNL+ all the DMA stuff is handled in the same way with an HDaudio-based solution. We just moved some of the ALH stuff into the HDaudio prodessing - see line 94 the test for ALH. so shouldn't the UAOL stuff also be moved under the HDAudio category? Why special case what looks identical?
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. my comment still stands.
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. @tlissows any update here ?
Contributor
Author
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. Removed support for MTL, so the line is no longer present. |
||
| #endif | ||
| default: | ||
| /* other types of DAIs not handled for now */ | ||
| comp_err(dev, "dai_config_dma_channel(): Unknown dai type %d", dai->type); | ||
|
|
@@ -177,6 +190,16 @@ int ipc_dai_data_config(struct dai_data *dd, struct comp_dev *dev) | |
| dev->ipc_config.frame_fmt, dd->stream_id); | ||
|
|
||
| break; | ||
| case SOF_DAI_INTEL_UAOL: | ||
| #ifdef CONFIG_ZEPHYR_NATIVE_DRIVERS | ||
| dd->stream_id = dai_get_stream_id(dai_p, dai->direction); | ||
| dev->ipc_config.frame_fmt = SOF_IPC_FRAME_S32_LE; | ||
| dd->config.burst_elems = dai_get_fifo_depth(dd->dai, dai->direction); | ||
| break; | ||
| #else | ||
| /* only native Zephyr driver supported */ | ||
| return -EINVAL; | ||
| #endif | ||
| default: | ||
| /* other types of DAIs not handled for now */ | ||
| comp_warn(dev, "dai_data_config(): Unknown dai type %d", dai->type); | ||
|
|
@@ -393,7 +416,7 @@ int dai_config(struct dai_data *dd, struct comp_dev *dev, struct ipc_config_dai | |
| if (ret < 0) | ||
| return ret; | ||
|
|
||
| return dai_set_config(dd->dai, common_config, copier_cfg->gtw_cfg.config_data); | ||
| return dai_set_config(dd->dai, common_config, &copier_cfg->gtw_cfg); | ||
| } | ||
|
|
||
| #if CONFIG_ZEPHYR_NATIVE_DRIVERS | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.