Sound Open Firmware
Loading...
Searching...
No Matches
ams_helpers.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright (c) 2023 Intel Corporation
4 *
5 * Author: Ievgen Ganakov <ievgen.ganakov@intel.com>
6 */
7
14#ifndef __SOF_LIB_AMS_HELPERS_H__
15#define __SOF_LIB_AMS_HELPERS_H__
16
17#include <sof/lib/ams.h>
18#include <sof/lib/ams_msg.h>
19#include <stdint.h>
20
21#if CONFIG_AMS
22
31int ams_helper_register_producer(const struct comp_dev *dev,
32 uint32_t *ams_uuid_id,
33 const uint8_t *msg_uuid);
34
42int ams_helper_unregister_producer(const struct comp_dev *dev,
43 uint32_t ams_uuid_id);
44
54int ams_helper_register_consumer(struct comp_dev *dev,
55 uint32_t *ams_uuid_id,
56 const uint8_t *msg_uuid,
57 ams_msg_callback_fn callback);
58
67int ams_helper_unregister_consumer(struct comp_dev *dev,
68 uint32_t ams_uuid_id,
69 ams_msg_callback_fn callback);
70
80void ams_helper_prepare_payload(const struct comp_dev *dev,
81 struct ams_message_payload *payload,
82 uint32_t ams_uuid_id,
83 uint8_t *message,
84 size_t message_size);
85
86#endif /* CONFIG_AMS */
87
88#endif /* __SOF_LIB_AMS_HELPERS_H__ */
void(* ams_msg_callback_fn)(const struct ams_message_payload *const ams_message_payload, void *ctx)
ams_msg_callback_fn
Definition ams.h:67
IXC message payload.
Definition ams.h:37
Audio component base device "class" used by all other component types.
Definition component.h:587