Skip to content

Commit 4db3875

Browse files
committed
audio: module-interface: better explain .trigger method
struct module_interface::trigger() is called from both hot and cold contexts, therefore it usually shouldn't be marked as __cold. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 9a886fd commit 4db3875

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/include/module/module/interface.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ struct module_interface {
239239

240240
/**
241241
* (optional) Module specific trigger procedure, called when modules are triggered. Usually
242-
* can be __cold
242+
* shouldn't be __cold. If a module implements this method, even if it only handles
243+
* commands, running in non-LL context, it will still be called from the high priority
244+
* LL context, which will cause a short jump to DRAM to check for supported commands.
243245
*/
244246
int (*trigger)(struct processing_module *mod, int cmd);
245247

0 commit comments

Comments
 (0)