Skip to content
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

Audio: TDFB: Update component for IPC4 #8279

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

singalsu
Copy link
Collaborator

@singalsu singalsu commented Oct 2, 2023

First patch adds the needed IPC4 header

Second patch updates the TDFB component

@singalsu singalsu force-pushed the tdfb_add_ipc4_support branch from ee8d384 to 2fdf121 Compare October 2, 2023 13:54
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@singalsu is there an upper limit on what size should be here for TDFB ? if so, we should check our payload is above min and below max sizes.

src/audio/tdfb/tdfb.c Show resolved Hide resolved
@singalsu singalsu marked this pull request as ready for review October 3, 2023 15:03
}
#endif /* CONFIG_IPC_MAJOR_4 */

#if CONFIG_IPC_MAJOR_3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#elif

@@ -633,17 +712,82 @@ static int tdfb_cmd_set_value(struct processing_module *mod, struct sof_ipc_ctrl
comp_err(mod->dev, "tdfb_cmd_set_value() error: invalid cdata->cmd");
return -EINVAL;
}
#endif /* CONFIG_IPC_MAJOR_3 */

#if CONFIG_IPC_MAJOR_4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#elif

return -EINVAL;
#endif

#if CONFIG_IPC_MAJOR_3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#elif

src/audio/tdfb/tdfb.c Show resolved Hide resolved

#if CONFIG_IPC_MAJOR_3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#elif

}
#endif /* CONFIG_IPC_MAJOR_4 */

#if CONFIG_IPC_MAJOR_3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#elif

This patch adds struct sof_ipc4_notify_module_data that matches
the Linux kernel handler for notifications from firmware to ALSA
user space. The SOF_IPC4_NOTIFY_MODULE_EVENTID_ALSA_MAGIC_VAL
event_id is used to identify the notifications for ALSA controls
like switch and enum.

Signed-off-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Seppo Ingalsuo <[email protected]>
@singalsu singalsu force-pushed the tdfb_add_ipc4_support branch from 2fdf121 to c6ce720 Compare October 5, 2023 08:25
This patch updates the Time domain fixed beamformer (TDFB)
module prepare() to set in tdfb_params() IPC4 sink and source
parameters from initialization IPC. The notifications send to
user space for sound direction of arrival is updated to work
with IPC4 ALSA notifications.

Signed-off-by: Seppo Ingalsuo <[email protected]>
@singalsu singalsu force-pushed the tdfb_add_ipc4_support branch from c6ce720 to 6c7f67b Compare October 5, 2023 10:50
@@ -173,6 +173,7 @@ struct ipc4_message_reply {

#define SOF_IPC4_SWITCH_CONTROL_PARAM_ID 200
#define SOF_IPC4_ENUM_CONTROL_PARAM_ID 201
#define SOF_IPC4_NOTIFY_MODULE_EVENTID_ALSA_MAGIC_VAL ((uint32_t)(0xA15A << 16))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not directly with 0xA15A0000

Copy link
Collaborator

@RanderWang RanderWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kv2019i kv2019i merged commit a8ee62a into thesofproject:main Oct 10, 2023
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants