1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019 Intel Corporation. All rights reserved.
4  *
5  * Author: Lech Betlej <lech.betlej@linux.intel.com>
6  */
7 
8 #ifndef __USER_SELECTOR_H__
9 #define __USER_SELECTOR_H__
10 
11 #include <stdint.h>
12 
13 /** \brief Selector component configuration data. */
14 struct sof_sel_config {
15 	/* selector supports 1 input and 1 output */
16 	uint32_t in_channels_count;	/**< accepted values 0, 2 or 4 */
17 	uint32_t out_channels_count;	/**< accepted values 0, 1, 2 or 4 */
18 	/* note: 0 for in_channels_count or out_channels_count means that
19 	 * these are variable values and will be fetched from pcm params;
20 	 * if 2 or 4 output channels selected the component works in
21 	 * a passthrough mode
22 	 */
23 	uint32_t sel_channel;	/**< 0..3 */
24 };
25 
26 #endif /* __USER_SELECTOR_H__ */
27