1divert(-1)
2
3dnl Defines the macro for SRC widget
4DECLARE_SOF_RT_UUID("src", src_uuid, 0xc1c5326d, 0x8390, 0x46b4,
5		 0xaa, 0x47, 0x95, 0xc3, 0xbe, 0xca, 0x65, 0x50)
6
7dnl SRC name)
8define(`N_SRC', `SRC'PIPELINE_ID`.'$1)
9
10dnl W_SRC(name, format, periods_sink, periods_source, data)
11define(`W_SRC',
12`SectionVendorTuples."'N_SRC($1)`_tuples_uuid" {'
13`	tokens "sof_comp_tokens"'
14`	tuples."uuid" {'
15`		SOF_TKN_COMP_UUID'		STR(src_uuid)
16`	}'
17`}'
18`SectionData."'N_SRC($1)`_data_uuid" {'
19`	tuples "'N_SRC($1)`_tuples_uuid"'
20`}'
21`SectionVendorTuples."'N_SRC($1)`_tuples_w" {'
22`	tokens "sof_comp_tokens"'
23`	tuples."word" {'
24`		SOF_TKN_COMP_PERIOD_SINK_COUNT'		STR($3)
25`		SOF_TKN_COMP_PERIOD_SOURCE_COUNT'	STR($4)
26`	}'
27`}'
28`SectionData."'N_SRC($1)`_data_w" {'
29`	tuples "'N_SRC($1)`_tuples_w"'
30`}'
31`SectionVendorTuples."'N_SRC($1)`_tuples_str" {'
32`	tokens "sof_comp_tokens"'
33`	tuples."string" {'
34`		SOF_TKN_COMP_FORMAT'	STR($2)
35`	}'
36`}'
37`SectionData."'N_SRC($1)`_data_str" {'
38`	tuples "'N_SRC($1)`_tuples_str"'
39`}'
40`SectionWidget."'N_SRC($1)`" {'
41`	index "'PIPELINE_ID`"'
42`	type "src"'
43`	no_pm "true"'
44`	data ['
45`		"'N_SRC($1)`_data_uuid"'
46`		"'N_SRC($1)`_data_w"'
47`		"'N_SRC($1)`_data_str"'
48`		"'$5`"'
49`	]'
50`}')
51
52divert(0)dnl
53