-
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
Audio: TDFB: Update component for IPC4 #8279
Conversation
ee8d384
to
2fdf121
Compare
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.
@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
Outdated
} | ||
#endif /* CONFIG_IPC_MAJOR_4 */ | ||
|
||
#if CONFIG_IPC_MAJOR_3 |
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.
#elif
src/audio/tdfb/tdfb.c
Outdated
@@ -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 |
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.
#elif
src/audio/tdfb/tdfb.c
Outdated
return -EINVAL; | ||
#endif | ||
|
||
#if CONFIG_IPC_MAJOR_3 |
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.
#elif
src/audio/tdfb/tdfb.c
Outdated
|
||
#if CONFIG_IPC_MAJOR_3 |
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.
#elif
src/audio/tdfb/tdfb.c
Outdated
} | ||
#endif /* CONFIG_IPC_MAJOR_4 */ | ||
|
||
#if CONFIG_IPC_MAJOR_3 |
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.
#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]>
2fdf121
to
c6ce720
Compare
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]>
c6ce720
to
6c7f67b
Compare
@@ -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)) |
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.
why not directly with 0xA15A0000
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.
LGTM
First patch adds the needed IPC4 header
Second patch updates the TDFB component