Sound Open Firmware
Loading...
Searching...
No Matches
sound_dose.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2025 Intel Corporation.
4 *
5 */
6
7#include <kernel/abi.h>
8#include <kernel/header.h>
10
11#ifndef __USER_SOUND_DOSE_H__
12#define __USER_SOUND_DOSE_H__
13
14#define SOF_SOUND_DOSE_SETUP_PARAM_ID 0
15#define SOF_SOUND_DOSE_VOLUME_PARAM_ID 1
16#define SOF_SOUND_DOSE_GAIN_PARAM_ID 2
17#define SOF_SOUND_DOSE_PAYLOAD_PARAM_ID 3
18
19#define SOF_SOUND_DOSE_SENS_MIN_DB (-10 * 100) /* -10 to +130 dB */
20#define SOF_SOUND_DOSE_SENS_MAX_DB (130 * 100)
21#define SOF_SOUND_DOSE_VOLUME_MIN_DB (-100 * 100) /* -100 to +40 dB */
22#define SOF_SOUND_DOSE_VOLUME_MAX_DB (40 * 100)
23#define SOF_SOUND_DOSE_GAIN_MIN_DB (-100 * 100) /* -100 to 0 dB */
24#define SOF_SOUND_DOSE_GAIN_MAX_DB (0 * 100)
25
27 int16_t mel_value; /* Decibels x100, e.g. 85 dB is 8500 */
28 int16_t dbfs_value; /* Decibels x100 */
29 int16_t current_sens_dbfs_dbspl; /* Decibels x100 */
30 int16_t current_volume_offset; /* Decibels x100 */
31 int16_t current_gain; /* Decibels x100 */
32 uint16_t reserved16;
33 uint32_t reserved32[4];
34} __attribute__((packed));
35
37 int16_t sens_dbfs_dbspl; /* Decibels x100 */
38 int16_t reserved;
39} __attribute__((packed));
40
42 int16_t volume_offset; /* Decibels x100 */
43 int16_t reserved;
44} __attribute__((packed));
45
47 int16_t gain; /* Decibels x100 */
48 int16_t reserved;
49} __attribute__((packed));
50
51#endif /* __USER_SOUND_DOSE_H__ */
ABI definitions.
Non IPC command header.
Definition sound_dose.h:26
int16_t dbfs_value
Definition sound_dose.h:28
uint16_t reserved16
reserved for future use
Definition sound_dose.h:32
int16_t mel_value
Definition sound_dose.h:27
int16_t current_gain
Definition sound_dose.h:31
int16_t current_sens_dbfs_dbspl
Definition sound_dose.h:29
int16_t current_volume_offset
Definition sound_dose.h:30
uint32_t reserved32[4]
reserved for future use
Definition sound_dose.h:33
Definition sound_dose.h:46
int16_t reserved
Definition sound_dose.h:48
int16_t gain
Definition sound_dose.h:47
Definition sound_dose.h:36
int16_t sens_dbfs_dbspl
Definition sound_dose.h:37
int16_t reserved
Definition sound_dose.h:38
Definition sound_dose.h:41
int16_t volume_offset
Definition sound_dose.h:42
int16_t reserved
Definition sound_dose.h:43