Sound Open Firmware
Loading...
Searching...
No Matches
selector.h File Reference

Channel selector component header file. More...

Include dependency graph for selector.h:

Go to the source code of this file.

Data Structures

struct  comp_data
 Selector component private data. More...
struct  comp_func_map
 Selector processing functions map. More...

Macros

#define SEL_COEF_ONE_Q10   1024 /* int16(1 * 2^10) */
 Default mix gain.
#define SEL_SOURCE_CHANNELS_MAX   8
 Maximum supported channel count on input.
#define SEL_SINK_CHANNELS_MAX   8
 Maximum supported channel count on output.
#define SEL_MAX_NUM_CONFIGS   8
 Maximum number of configurations in the blob received with set_config().
#define SEL_NUM_IN_PIN_FMTS   1
#define SEL_NUM_OUT_PIN_FMTS   1

Typedefs

typedef void(* sel_func) (struct comp_dev *dev, struct audio_stream *sink, const struct audio_stream *source, uint32_t frames)

Functions

sel_func sel_get_processing_function (struct comp_dev *dev)
 Retrieves selector processing function.

Variables

const struct comp_func_map func_map []
 Map of formats with dedicated processing functions.

Detailed Description

Channel selector component header file.

Authors
Lech Betlej lech..nosp@m.betl.nosp@m.ej@li.nosp@m.nux..nosp@m.intel.nosp@m..com

Macro Definition Documentation

◆ SEL_COEF_ONE_Q10

#define SEL_COEF_ONE_Q10   1024 /* int16(1 * 2^10) */

Default mix gain.

◆ SEL_MAX_NUM_CONFIGS

#define SEL_MAX_NUM_CONFIGS   8

Maximum number of configurations in the blob received with set_config().

◆ SEL_NUM_IN_PIN_FMTS

#define SEL_NUM_IN_PIN_FMTS   1

◆ SEL_NUM_OUT_PIN_FMTS

#define SEL_NUM_OUT_PIN_FMTS   1

◆ SEL_SINK_CHANNELS_MAX

#define SEL_SINK_CHANNELS_MAX   8

Maximum supported channel count on output.

◆ SEL_SOURCE_CHANNELS_MAX

#define SEL_SOURCE_CHANNELS_MAX   8

Maximum supported channel count on input.

Typedef Documentation

◆ sel_func

typedef void(* sel_func) (struct comp_dev *dev, struct audio_stream *sink, const struct audio_stream *source, uint32_t frames)

Function Documentation

◆ sel_get_processing_function()

sel_func sel_get_processing_function ( struct comp_dev * dev)

Retrieves selector processing function.

Parameters
[in,out]devSelector base component device.

Variable Documentation

◆ func_map

const struct comp_func_map func_map[]
extern

Map of formats with dedicated processing functions.