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  ipc4_selector_coeffs_config
 IPC4 mixing coefficients configuration. More...
 
struct  sof_selector_ipc4_pin_config
 
struct  sof_selector_ipc4_config
 
struct  sof_selector_avs_ipc4_config
 
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_1CH   1
 Supported channel count on input.
 
#define SEL_SOURCE_2CH   2
 
#define SEL_SOURCE_4CH   4
 
#define SEL_SINK_1CH   1
 Supported channel count on output.
 
#define SEL_SINK_2CH   2
 
#define SEL_SINK_4CH   4
 

Typedefs

typedef void(* sel_func) (struct processing_module *mod, const struct cir_buf_source *source, struct cir_buf_sink *sink, size_t frames)
 selector processing function interface
 

Enumerations

enum  ipc4_selector_config_id { IPC4_SELECTOR_COEFFS_CONFIG_ID = 0 }
 IPC4 configuration IDs for selector. More...
 
enum  ipc4_selector_init_payload_fmt { IPC4_SEL_INIT_PAYLOAD_BASE_WITH_EXT , IPC4_SEL_INIT_PAYLOAD_BASE_WITH_OUT_FMT }
 

Functions

sel_func sel_get_processing_function (struct processing_module *mod)
 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_SINK_1CH

#define SEL_SINK_1CH   1

Supported channel count on output.

◆ SEL_SINK_2CH

#define SEL_SINK_2CH   2

◆ SEL_SINK_4CH

#define SEL_SINK_4CH   4

◆ SEL_SOURCE_1CH

#define SEL_SOURCE_1CH   1

Supported channel count on input.

◆ SEL_SOURCE_2CH

#define SEL_SOURCE_2CH   2

◆ SEL_SOURCE_4CH

#define SEL_SOURCE_4CH   4

Typedef Documentation

◆ sel_func

typedef void(* sel_func) (struct processing_module *mod, const struct cir_buf_source *source, struct cir_buf_sink *sink, size_t frames)

selector processing function interface

Enumeration Type Documentation

◆ ipc4_selector_config_id

IPC4 configuration IDs for selector.

Enumerator
IPC4_SELECTOR_COEFFS_CONFIG_ID 

Mixing coefficients config ID.

◆ ipc4_selector_init_payload_fmt

Enumerator
IPC4_SEL_INIT_PAYLOAD_BASE_WITH_EXT 
IPC4_SEL_INIT_PAYLOAD_BASE_WITH_OUT_FMT 

Function Documentation

◆ sel_get_processing_function()

sel_func sel_get_processing_function ( struct processing_module *  mod)

Retrieves selector processing function.

Parameters
[in,out]modSelector module adapter.

Variable Documentation

◆ func_map

const struct comp_func_map func_map[]
extern

Map of formats with dedicated processing functions.