Lines Matching defs:vol_data
128 struct vol_data { struct
130 uint32_t mailbox_offset; /**< store peak volume in mailbox */
133 struct ipc4_peak_volume_regs peak_regs;
135 int32_t *peak_vol;
137 int32_t volume[SOF_IPC_MAX_CHANNELS]; /**< current volume */
138 int32_t tvolume[SOF_IPC_MAX_CHANNELS]; /**< target volume */
139 int32_t mvolume[SOF_IPC_MAX_CHANNELS]; /**< mute volume */
140 int32_t rvolume[SOF_IPC_MAX_CHANNELS]; /**< ramp start volume */
141 int32_t ramp_coef[SOF_IPC_MAX_CHANNELS]; /**< parameter for slope */
143 int32_t *vol;
144 uint32_t initial_ramp; /**< ramp space in ms */
145 uint32_t ramp_type; /**< SOF_VOLUME_ */
146 int32_t vol_min; /**< minimum volume */
147 int32_t vol_max; /**< maximum volume */
148 int32_t vol_ramp_range; /**< max ramp transition */
150 uint32_t vol_ramp_frames;
151 uint32_t vol_ramp_elapsed_frames; /**< frames since transition */
152 int32_t sample_rate_inv; /**< 1000x inverse of sample rate as Q1.31 */
153 unsigned int channels; /**< current channels count */
154 bool muted[SOF_IPC_MAX_CHANNELS]; /**< set if channel is muted */
155 bool ramp_finished; /**< control ramp launch */
156 vol_scale_func scale_vol; /**< volume processing function */
157 vol_zc_func zc_get; /**< function getting nearest zero crossing frame */
158 bool copy_gain; /**< control copy gain or not */
159 uint32_t attenuation; /**< peakmeter adjustment in range [0 - 31] */