123db472bSJeeja KP /*
223db472bSJeeja KP  *  skl_topology.h - Intel HDA Platform topology header file
323db472bSJeeja KP  *
423db472bSJeeja KP  *  Copyright (C) 2014-15 Intel Corp
523db472bSJeeja KP  *  Author: Jeeja KP <jeeja.kp@intel.com>
623db472bSJeeja KP  *  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
723db472bSJeeja KP  *
823db472bSJeeja KP  *  This program is free software; you can redistribute it and/or modify
923db472bSJeeja KP  *  it under the terms of the GNU General Public License as published by
1023db472bSJeeja KP  *  the Free Software Foundation; version 2 of the License.
1123db472bSJeeja KP  *
1223db472bSJeeja KP  *  This program is distributed in the hope that it will be useful, but
1323db472bSJeeja KP  *  WITHOUT ANY WARRANTY; without even the implied warranty of
1423db472bSJeeja KP  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1523db472bSJeeja KP  *  General Public License for more details.
1623db472bSJeeja KP  *
1723db472bSJeeja KP  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1823db472bSJeeja KP  *
1923db472bSJeeja KP  */
2023db472bSJeeja KP 
2123db472bSJeeja KP #ifndef __SKL_TOPOLOGY_H__
2223db472bSJeeja KP #define __SKL_TOPOLOGY_H__
2323db472bSJeeja KP 
2423db472bSJeeja KP #include <linux/types.h>
2523db472bSJeeja KP 
2623db472bSJeeja KP #include <sound/hdaudio_ext.h>
2723db472bSJeeja KP #include <sound/soc.h>
2823db472bSJeeja KP #include "skl.h"
2923db472bSJeeja KP #include "skl-tplg-interface.h"
3023db472bSJeeja KP 
3123db472bSJeeja KP #define BITS_PER_BYTE 8
3223db472bSJeeja KP #define MAX_TS_GROUPS 8
3323db472bSJeeja KP #define MAX_DMIC_TS_GROUPS 4
3423db472bSJeeja KP #define MAX_FIXED_DMIC_PARAMS_SIZE 727
3523db472bSJeeja KP 
3623db472bSJeeja KP /* Maximum number of coefficients up down mixer module */
3723db472bSJeeja KP #define UP_DOWN_MIXER_MAX_COEFF		6
3823db472bSJeeja KP 
394cd9899fSHardik T Shah #define MODULE_MAX_IN_PINS	8
404cd9899fSHardik T Shah #define MODULE_MAX_OUT_PINS	8
414cd9899fSHardik T Shah 
427a1b749bSDharageswari R #define SKL_MIC_CH_SUPPORT	4
437a1b749bSDharageswari R #define SKL_MIC_MAX_CH_SUPPORT	8
447a1b749bSDharageswari R #define SKL_DEFAULT_MIC_SEL_GAIN	0x3FF
457a1b749bSDharageswari R #define SKL_MIC_SEL_SWITCH	0x3
467a1b749bSDharageswari R 
4723db472bSJeeja KP enum skl_channel_index {
4823db472bSJeeja KP 	SKL_CHANNEL_LEFT = 0,
4923db472bSJeeja KP 	SKL_CHANNEL_RIGHT = 1,
5023db472bSJeeja KP 	SKL_CHANNEL_CENTER = 2,
5123db472bSJeeja KP 	SKL_CHANNEL_LEFT_SURROUND = 3,
5223db472bSJeeja KP 	SKL_CHANNEL_CENTER_SURROUND = 3,
5323db472bSJeeja KP 	SKL_CHANNEL_RIGHT_SURROUND = 4,
5423db472bSJeeja KP 	SKL_CHANNEL_LFE = 7,
5523db472bSJeeja KP 	SKL_CHANNEL_INVALID = 0xF,
5623db472bSJeeja KP };
5723db472bSJeeja KP 
5823db472bSJeeja KP enum skl_bitdepth {
5923db472bSJeeja KP 	SKL_DEPTH_8BIT = 8,
6023db472bSJeeja KP 	SKL_DEPTH_16BIT = 16,
6123db472bSJeeja KP 	SKL_DEPTH_24BIT = 24,
6223db472bSJeeja KP 	SKL_DEPTH_32BIT = 32,
6323db472bSJeeja KP 	SKL_DEPTH_INVALID
6423db472bSJeeja KP };
6523db472bSJeeja KP 
6623db472bSJeeja KP 
6723db472bSJeeja KP enum skl_s_freq {
6823db472bSJeeja KP 	SKL_FS_8000 = 8000,
6923db472bSJeeja KP 	SKL_FS_11025 = 11025,
7023db472bSJeeja KP 	SKL_FS_12000 = 12000,
7123db472bSJeeja KP 	SKL_FS_16000 = 16000,
7223db472bSJeeja KP 	SKL_FS_22050 = 22050,
7323db472bSJeeja KP 	SKL_FS_24000 = 24000,
7423db472bSJeeja KP 	SKL_FS_32000 = 32000,
7523db472bSJeeja KP 	SKL_FS_44100 = 44100,
7623db472bSJeeja KP 	SKL_FS_48000 = 48000,
7723db472bSJeeja KP 	SKL_FS_64000 = 64000,
7823db472bSJeeja KP 	SKL_FS_88200 = 88200,
7923db472bSJeeja KP 	SKL_FS_96000 = 96000,
8023db472bSJeeja KP 	SKL_FS_128000 = 128000,
8123db472bSJeeja KP 	SKL_FS_176400 = 176400,
8223db472bSJeeja KP 	SKL_FS_192000 = 192000,
8323db472bSJeeja KP 	SKL_FS_INVALID
8423db472bSJeeja KP };
8523db472bSJeeja KP 
8623db472bSJeeja KP enum skl_widget_type {
8723db472bSJeeja KP 	SKL_WIDGET_VMIXER = 1,
8823db472bSJeeja KP 	SKL_WIDGET_MIXER = 2,
8923db472bSJeeja KP 	SKL_WIDGET_PGA = 3,
9023db472bSJeeja KP 	SKL_WIDGET_MUX = 4
9123db472bSJeeja KP };
9223db472bSJeeja KP 
9323db472bSJeeja KP struct skl_audio_data_format {
9423db472bSJeeja KP 	enum skl_s_freq s_freq;
9523db472bSJeeja KP 	enum skl_bitdepth bit_depth;
9623db472bSJeeja KP 	u32 channel_map;
9723db472bSJeeja KP 	enum skl_ch_cfg ch_cfg;
9823db472bSJeeja KP 	enum skl_interleaving interleaving;
9923db472bSJeeja KP 	u8 number_of_channels;
10023db472bSJeeja KP 	u8 valid_bit_depth;
10123db472bSJeeja KP 	u8 sample_type;
10223db472bSJeeja KP 	u8 reserved[1];
10323db472bSJeeja KP } __packed;
10423db472bSJeeja KP 
10523db472bSJeeja KP struct skl_base_cfg {
10623db472bSJeeja KP 	u32 cps;
10723db472bSJeeja KP 	u32 ibs;
10823db472bSJeeja KP 	u32 obs;
10923db472bSJeeja KP 	u32 is_pages;
11023db472bSJeeja KP 	struct skl_audio_data_format audio_fmt;
11123db472bSJeeja KP };
11223db472bSJeeja KP 
11323db472bSJeeja KP struct skl_cpr_gtw_cfg {
11423db472bSJeeja KP 	u32 node_id;
11523db472bSJeeja KP 	u32 dma_buffer_size;
11623db472bSJeeja KP 	u32 config_length;
11723db472bSJeeja KP 	/* not mandatory; required only for DMIC/I2S */
11823db472bSJeeja KP 	u32 config_data[1];
11923db472bSJeeja KP } __packed;
12023db472bSJeeja KP 
121c115fa5eSDharageswari.R struct skl_dma_control {
122c115fa5eSDharageswari.R 	u32 node_id;
123c115fa5eSDharageswari.R 	u32 config_length;
1240b6d76bbSJeeja KP 	u32 config_data[0];
125c115fa5eSDharageswari.R } __packed;
126c115fa5eSDharageswari.R 
12723db472bSJeeja KP struct skl_cpr_cfg {
12823db472bSJeeja KP 	struct skl_base_cfg base_cfg;
12923db472bSJeeja KP 	struct skl_audio_data_format out_fmt;
13023db472bSJeeja KP 	u32 cpr_feature_mask;
13123db472bSJeeja KP 	struct skl_cpr_gtw_cfg gtw_cfg;
13223db472bSJeeja KP } __packed;
13323db472bSJeeja KP 
134a0ffe48bSHardik T Shah 
135a0ffe48bSHardik T Shah struct skl_src_module_cfg {
136a0ffe48bSHardik T Shah 	struct skl_base_cfg base_cfg;
137a0ffe48bSHardik T Shah 	enum skl_s_freq src_cfg;
138a0ffe48bSHardik T Shah } __packed;
139a0ffe48bSHardik T Shah 
1404e10996bSJeeja KP struct notification_mask {
1414e10996bSJeeja KP 	u32 notify;
1424e10996bSJeeja KP 	u32 enable;
1434e10996bSJeeja KP } __packed;
1444e10996bSJeeja KP 
145a0ffe48bSHardik T Shah struct skl_up_down_mixer_cfg {
146a0ffe48bSHardik T Shah 	struct skl_base_cfg base_cfg;
147a0ffe48bSHardik T Shah 	enum skl_ch_cfg out_ch_cfg;
148a0ffe48bSHardik T Shah 	/* This should be set to 1 if user coefficients are required */
149a0ffe48bSHardik T Shah 	u32 coeff_sel;
150a0ffe48bSHardik T Shah 	/* Pass the user coeff in this array */
151a0ffe48bSHardik T Shah 	s32 coeff[UP_DOWN_MIXER_MAX_COEFF];
152a0ffe48bSHardik T Shah } __packed;
153a0ffe48bSHardik T Shah 
154399b210bSJeeja KP struct skl_algo_cfg {
155399b210bSJeeja KP 	struct skl_base_cfg  base_cfg;
156399b210bSJeeja KP 	char params[0];
157399b210bSJeeja KP } __packed;
158399b210bSJeeja KP 
159fd18110fSDharageswari R struct skl_base_outfmt_cfg {
160fd18110fSDharageswari R 	struct skl_base_cfg base_cfg;
161fd18110fSDharageswari R 	struct skl_audio_data_format out_fmt;
162fd18110fSDharageswari R } __packed;
163fd18110fSDharageswari R 
16423db472bSJeeja KP enum skl_dma_type {
16523db472bSJeeja KP 	SKL_DMA_HDA_HOST_OUTPUT_CLASS = 0,
16623db472bSJeeja KP 	SKL_DMA_HDA_HOST_INPUT_CLASS = 1,
16723db472bSJeeja KP 	SKL_DMA_HDA_HOST_INOUT_CLASS = 2,
16823db472bSJeeja KP 	SKL_DMA_HDA_LINK_OUTPUT_CLASS = 8,
16923db472bSJeeja KP 	SKL_DMA_HDA_LINK_INPUT_CLASS = 9,
17023db472bSJeeja KP 	SKL_DMA_HDA_LINK_INOUT_CLASS = 0xA,
17123db472bSJeeja KP 	SKL_DMA_DMIC_LINK_INPUT_CLASS = 0xB,
17223db472bSJeeja KP 	SKL_DMA_I2S_LINK_OUTPUT_CLASS = 0xC,
17323db472bSJeeja KP 	SKL_DMA_I2S_LINK_INPUT_CLASS = 0xD,
17423db472bSJeeja KP };
17523db472bSJeeja KP 
17623db472bSJeeja KP union skl_ssp_dma_node {
17723db472bSJeeja KP 	u8 val;
17823db472bSJeeja KP 	struct {
179d7b18813SJeeja KP 		u8 time_slot_index:4;
18023db472bSJeeja KP 		u8 i2s_instance:4;
18123db472bSJeeja KP 	} dma_node;
18223db472bSJeeja KP };
18323db472bSJeeja KP 
18423db472bSJeeja KP union skl_connector_node_id {
18523db472bSJeeja KP 	u32 val;
18623db472bSJeeja KP 	struct {
18723db472bSJeeja KP 		u32 vindex:8;
18823db472bSJeeja KP 		u32 dma_type:4;
18923db472bSJeeja KP 		u32 rsvd:20;
19023db472bSJeeja KP 	} node;
19123db472bSJeeja KP };
19223db472bSJeeja KP 
19323db472bSJeeja KP struct skl_module_fmt {
19423db472bSJeeja KP 	u32 channels;
19523db472bSJeeja KP 	u32 s_freq;
19623db472bSJeeja KP 	u32 bit_depth;
19723db472bSJeeja KP 	u32 valid_bit_depth;
19823db472bSJeeja KP 	u32 ch_cfg;
1994cd9899fSHardik T Shah 	u32 interleaving_style;
2004cd9899fSHardik T Shah 	u32 sample_type;
2014cd9899fSHardik T Shah 	u32 ch_map;
20223db472bSJeeja KP };
20323db472bSJeeja KP 
2044f745708SJeeja KP struct skl_module_cfg;
2054f745708SJeeja KP 
2065e8f0ee4SDharageswari R struct skl_mod_inst_map {
2075e8f0ee4SDharageswari R 	u16 mod_id;
2085e8f0ee4SDharageswari R 	u16 inst_id;
2095e8f0ee4SDharageswari R };
2105e8f0ee4SDharageswari R 
2115e8f0ee4SDharageswari R struct skl_kpb_params {
2125e8f0ee4SDharageswari R 	u32 num_modules;
2135e8f0ee4SDharageswari R 	struct skl_mod_inst_map map[0];
2145e8f0ee4SDharageswari R };
2155e8f0ee4SDharageswari R 
21623db472bSJeeja KP struct skl_module_inst_id {
217b7c50555SVinod Koul 	int module_id;
21823db472bSJeeja KP 	u32 instance_id;
219700a9a63SDharageswari R 	int pvt_id;
22023db472bSJeeja KP };
22123db472bSJeeja KP 
2224f745708SJeeja KP enum skl_module_pin_state {
2234f745708SJeeja KP 	SKL_PIN_UNBIND = 0,
2244f745708SJeeja KP 	SKL_PIN_BIND_DONE = 1,
2254f745708SJeeja KP };
2264f745708SJeeja KP 
22723db472bSJeeja KP struct skl_module_pin {
22823db472bSJeeja KP 	struct skl_module_inst_id id;
22923db472bSJeeja KP 	bool is_dynamic;
23023db472bSJeeja KP 	bool in_use;
2314f745708SJeeja KP 	enum skl_module_pin_state pin_state;
2324f745708SJeeja KP 	struct skl_module_cfg *tgt_mcfg;
23323db472bSJeeja KP };
23423db472bSJeeja KP 
23523db472bSJeeja KP struct skl_specific_cfg {
2364ced1827SJeeja KP 	u32 set_params;
237abb74003SJeeja KP 	u32 param_id;
23823db472bSJeeja KP 	u32 caps_size;
23923db472bSJeeja KP 	u32 *caps;
24023db472bSJeeja KP };
24123db472bSJeeja KP 
24223db472bSJeeja KP enum skl_pipe_state {
24323db472bSJeeja KP 	SKL_PIPE_INVALID = 0,
24423db472bSJeeja KP 	SKL_PIPE_CREATED = 1,
24523db472bSJeeja KP 	SKL_PIPE_PAUSED = 2,
2462004432fSJeeja KP 	SKL_PIPE_STARTED = 3,
2472004432fSJeeja KP 	SKL_PIPE_RESET = 4
24823db472bSJeeja KP };
24923db472bSJeeja KP 
25023db472bSJeeja KP struct skl_pipe_module {
25123db472bSJeeja KP 	struct snd_soc_dapm_widget *w;
25223db472bSJeeja KP 	struct list_head node;
25323db472bSJeeja KP };
25423db472bSJeeja KP 
25523db472bSJeeja KP struct skl_pipe_params {
25623db472bSJeeja KP 	u8 host_dma_id;
25723db472bSJeeja KP 	u8 link_dma_id;
25823db472bSJeeja KP 	u32 ch;
25923db472bSJeeja KP 	u32 s_freq;
26023db472bSJeeja KP 	u32 s_fmt;
26123db472bSJeeja KP 	u8 linktype;
26212c3be0eSJeeja KP 	snd_pcm_format_t format;
26312c3be0eSJeeja KP 	int link_index;
26423db472bSJeeja KP 	int stream;
2657f975a38SJeeja KP 	unsigned int host_bps;
2667f975a38SJeeja KP 	unsigned int link_bps;
26723db472bSJeeja KP };
26823db472bSJeeja KP 
26923db472bSJeeja KP struct skl_pipe {
27023db472bSJeeja KP 	u8 ppl_id;
27123db472bSJeeja KP 	u8 pipe_priority;
27223db472bSJeeja KP 	u16 conn_type;
27323db472bSJeeja KP 	u32 memory_pages;
2748a0cb236SVinod Koul 	u8 lp_mode;
27523db472bSJeeja KP 	struct skl_pipe_params *p_params;
27623db472bSJeeja KP 	enum skl_pipe_state state;
27723db472bSJeeja KP 	struct list_head w_list;
278f0aa94faSJeeja KP 	bool passthru;
27923db472bSJeeja KP };
28023db472bSJeeja KP 
28123db472bSJeeja KP enum skl_module_state {
28223db472bSJeeja KP 	SKL_MODULE_UNINIT = 0,
283d643678bSJeeja KP 	SKL_MODULE_LOADED = 1,
284d643678bSJeeja KP 	SKL_MODULE_INIT_DONE = 2,
285d643678bSJeeja KP 	SKL_MODULE_BIND_DONE = 3,
286d643678bSJeeja KP 	SKL_MODULE_UNLOADED = 4,
28723db472bSJeeja KP };
28823db472bSJeeja KP 
2896bd9dcf3SVinod Koul enum d0i3_capability {
2906bd9dcf3SVinod Koul 	SKL_D0I3_NONE = 0,
2916bd9dcf3SVinod Koul 	SKL_D0I3_STREAMING = 1,
2926bd9dcf3SVinod Koul 	SKL_D0I3_NON_STREAMING = 2,
2936bd9dcf3SVinod Koul };
2946bd9dcf3SVinod Koul 
29523db472bSJeeja KP struct skl_module_cfg {
29609305da9SShreyas NC 	u8 guid[16];
29723db472bSJeeja KP 	struct skl_module_inst_id id;
29804afbbbbSHardik T Shah 	u8 domain;
2994cd9899fSHardik T Shah 	bool homogenous_inputs;
3004cd9899fSHardik T Shah 	bool homogenous_outputs;
3014cd9899fSHardik T Shah 	struct skl_module_fmt in_fmt[MODULE_MAX_IN_PINS];
3024cd9899fSHardik T Shah 	struct skl_module_fmt out_fmt[MODULE_MAX_OUT_PINS];
30323db472bSJeeja KP 	u8 max_in_queue;
30423db472bSJeeja KP 	u8 max_out_queue;
30523db472bSJeeja KP 	u8 in_queue_mask;
30623db472bSJeeja KP 	u8 out_queue_mask;
30723db472bSJeeja KP 	u8 in_queue;
30823db472bSJeeja KP 	u8 out_queue;
30923db472bSJeeja KP 	u32 mcps;
31023db472bSJeeja KP 	u32 ibs;
31123db472bSJeeja KP 	u32 obs;
31223db472bSJeeja KP 	u8 is_loadable;
31323db472bSJeeja KP 	u8 core_id;
31423db472bSJeeja KP 	u8 dev_type;
31523db472bSJeeja KP 	u8 dma_id;
31623db472bSJeeja KP 	u8 time_slot;
3177a1b749bSDharageswari R 	u8 dmic_ch_combo_index;
3187a1b749bSDharageswari R 	u32 dmic_ch_type;
31923db472bSJeeja KP 	u32 params_fixup;
32023db472bSJeeja KP 	u32 converter;
32123db472bSJeeja KP 	u32 vbus_id;
322b18c458dSJeeja KP 	u32 mem_pages;
3236bd9dcf3SVinod Koul 	enum d0i3_capability d0i3_caps;
32423db472bSJeeja KP 	struct skl_module_pin *m_in_pin;
32523db472bSJeeja KP 	struct skl_module_pin *m_out_pin;
32623db472bSJeeja KP 	enum skl_module_type m_type;
32723db472bSJeeja KP 	enum skl_hw_conn_type  hw_conn_type;
32823db472bSJeeja KP 	enum skl_module_state m_state;
32923db472bSJeeja KP 	struct skl_pipe *pipe;
33023db472bSJeeja KP 	struct skl_specific_cfg formats_config;
33123db472bSJeeja KP };
332a0ffe48bSHardik T Shah 
333abb74003SJeeja KP struct skl_algo_data {
334abb74003SJeeja KP 	u32 param_id;
3354ced1827SJeeja KP 	u32 set_params;
336abb74003SJeeja KP 	u32 max;
3370d682104SDharageswari R 	u32 size;
338abb74003SJeeja KP 	char *params;
339abb74003SJeeja KP };
340abb74003SJeeja KP 
341e4e2d2f4SJeeja KP struct skl_pipeline {
342e4e2d2f4SJeeja KP 	struct skl_pipe *pipe;
343e4e2d2f4SJeeja KP 	struct list_head node;
344e4e2d2f4SJeeja KP };
345e4e2d2f4SJeeja KP 
346b8c722ddSJeeja KP struct skl_module_deferred_bind {
347b8c722ddSJeeja KP 	struct skl_module_cfg *src;
348b8c722ddSJeeja KP 	struct skl_module_cfg *dst;
349b8c722ddSJeeja KP 	struct list_head node;
350b8c722ddSJeeja KP };
351b8c722ddSJeeja KP 
3527a1b749bSDharageswari R struct skl_mic_sel_config {
3537a1b749bSDharageswari R 	u16 mic_switch;
3547a1b749bSDharageswari R 	u16 flags;
3557a1b749bSDharageswari R 	u16 blob[SKL_MIC_MAX_CH_SUPPORT][SKL_MIC_MAX_CH_SUPPORT];
3567a1b749bSDharageswari R } __packed;
3577a1b749bSDharageswari R 
3587a1b749bSDharageswari R enum skl_channel {
3597a1b749bSDharageswari R 	SKL_CH_MONO = 1,
3607a1b749bSDharageswari R 	SKL_CH_STEREO = 2,
3617a1b749bSDharageswari R 	SKL_CH_TRIO = 3,
3627a1b749bSDharageswari R 	SKL_CH_QUATRO = 4,
3637a1b749bSDharageswari R };
3647a1b749bSDharageswari R 
365d93f8e55SVinod Koul static inline struct skl *get_skl_ctx(struct device *dev)
366d93f8e55SVinod Koul {
367d93f8e55SVinod Koul 	struct hdac_ext_bus *ebus = dev_get_drvdata(dev);
368d93f8e55SVinod Koul 
369d93f8e55SVinod Koul 	return ebus_to_skl(ebus);
370d93f8e55SVinod Koul }
371d93f8e55SVinod Koul 
372cfb0a873SVinod Koul int skl_tplg_be_update_params(struct snd_soc_dai *dai,
373cfb0a873SVinod Koul 	struct skl_pipe_params *params);
374c115fa5eSDharageswari.R int skl_dsp_set_dma_control(struct skl_sst *ctx,
375c115fa5eSDharageswari.R 		struct skl_module_cfg *mconfig);
376cfb0a873SVinod Koul void skl_tplg_set_be_dmic_config(struct snd_soc_dai *dai,
377cfb0a873SVinod Koul 	struct skl_pipe_params *params, int stream);
378cfb0a873SVinod Koul int skl_tplg_init(struct snd_soc_platform *platform,
379cfb0a873SVinod Koul 				struct hdac_ext_bus *ebus);
380cfb0a873SVinod Koul struct skl_module_cfg *skl_tplg_fe_get_cpr_module(
381cfb0a873SVinod Koul 		struct snd_soc_dai *dai, int stream);
382cfb0a873SVinod Koul int skl_tplg_update_pipe_params(struct device *dev,
383cfb0a873SVinod Koul 		struct skl_module_cfg *mconfig, struct skl_pipe_params *params);
384cfb0a873SVinod Koul 
385a83e3b4cSVinod Koul void skl_tplg_d0i3_get(struct skl *skl, enum d0i3_capability caps);
386a83e3b4cSVinod Koul void skl_tplg_d0i3_put(struct skl *skl, enum d0i3_capability caps);
387a83e3b4cSVinod Koul 
388c9b1e834SJeeja KP int skl_create_pipeline(struct skl_sst *ctx, struct skl_pipe *pipe);
389c9b1e834SJeeja KP 
390c9b1e834SJeeja KP int skl_run_pipe(struct skl_sst *ctx, struct skl_pipe *pipe);
391c9b1e834SJeeja KP 
392c9b1e834SJeeja KP int skl_pause_pipe(struct skl_sst *ctx, struct skl_pipe *pipe);
393c9b1e834SJeeja KP 
394c9b1e834SJeeja KP int skl_delete_pipe(struct skl_sst *ctx, struct skl_pipe *pipe);
395c9b1e834SJeeja KP 
396c9b1e834SJeeja KP int skl_stop_pipe(struct skl_sst *ctx, struct skl_pipe *pipe);
397c9b1e834SJeeja KP 
3982004432fSJeeja KP int skl_reset_pipe(struct skl_sst *ctx, struct skl_pipe *pipe);
3992004432fSJeeja KP 
4009939a9c3SJeeja KP int skl_init_module(struct skl_sst *ctx, struct skl_module_cfg *module_config);
401beb73b26SJeeja KP 
402beb73b26SJeeja KP int skl_bind_modules(struct skl_sst *ctx, struct skl_module_cfg
403beb73b26SJeeja KP 	*src_module, struct skl_module_cfg *dst_module);
404beb73b26SJeeja KP 
405beb73b26SJeeja KP int skl_unbind_modules(struct skl_sst *ctx, struct skl_module_cfg
406beb73b26SJeeja KP 	*src_module, struct skl_module_cfg *dst_module);
407beb73b26SJeeja KP 
4089939a9c3SJeeja KP int skl_set_module_params(struct skl_sst *ctx, u32 *params, int size,
4099939a9c3SJeeja KP 			u32 param_id, struct skl_module_cfg *mcfg);
4107d9f2911SOmair M Abdullah int skl_get_module_params(struct skl_sst *ctx, u32 *params, int size,
4117d9f2911SOmair M Abdullah 			  u32 param_id, struct skl_module_cfg *mcfg);
4129939a9c3SJeeja KP 
413718a42b5SDharageswari.R struct skl_module_cfg *skl_tplg_be_get_cpr_module(struct snd_soc_dai *dai,
414718a42b5SDharageswari.R 								int stream);
41523db472bSJeeja KP enum skl_bitdepth skl_get_bit_depth(int params);
416ad036bdeSJeeja KP int skl_pcm_host_dma_prepare(struct device *dev,
417ad036bdeSJeeja KP 			struct skl_pipe_params *params);
418ad036bdeSJeeja KP int skl_pcm_link_dma_prepare(struct device *dev,
419ad036bdeSJeeja KP 			struct skl_pipe_params *params);
42023db472bSJeeja KP #endif
421