Skip to content

Commit f0bb303

Browse files
singalsulgirdwood
authored andcommitted
Tools: Topology: Move object formats for compress to include files
This patch moves formats definitions for the objects in pipeline compr-playback to separate include files in new directory include/formats. It avoids duplication of same input and output formats several times and prepares to add new formats and sample rates later. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 51b166b commit f0bb303

File tree

4 files changed

+125
-518
lines changed

4 files changed

+125
-518
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# All input formats for e.g. host-copier
2+
num_input_audio_formats 20
3+
CombineArrays.Object.Base.input_audio_format [
4+
{
5+
in_rate [
6+
8000
7+
44100
8+
48000
9+
96000
10+
192000
11+
]
12+
in_bit_depth [ 8 ]
13+
in_valid_bit_depth [ 8 ]
14+
in_sample_type [ $SAMPLE_TYPE_UNSIGNED_INTEGER ]
15+
}
16+
{
17+
in_rate [
18+
8000
19+
44100
20+
48000
21+
96000
22+
192000
23+
]
24+
in_bit_depth [ 16 ]
25+
in_valid_bit_depth [ 16 ]
26+
}
27+
{
28+
in_rate [
29+
8000
30+
44100
31+
48000
32+
96000
33+
192000
34+
]
35+
in_bit_depth [ 32 ]
36+
in_valid_bit_depth [ 24 ]
37+
}
38+
{
39+
in_rate [
40+
8000
41+
44100
42+
48000
43+
96000
44+
192000
45+
]
46+
in_bit_depth [ 32 ]
47+
in_valid_bit_depth [ 32 ]
48+
}
49+
]
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Output audio formats for e.g. host-copier
2+
num_output_audio_formats 20
3+
CombineArrays.Object.Base.output_audio_format [
4+
{
5+
out_rate [
6+
8000
7+
44100
8+
48000
9+
96000
10+
192000
11+
]
12+
out_bit_depth [ 8 ]
13+
out_valid_bit_depth [ 8 ]
14+
out_sample_type [ $SAMPLE_TYPE_UNSIGNED_INTEGER ]
15+
}
16+
{
17+
out_rate [
18+
8000
19+
44100
20+
48000
21+
96000
22+
192000
23+
]
24+
out_bit_depth [ 16 ]
25+
out_valid_bit_depth [ 16 ]
26+
}
27+
{
28+
out_rate [
29+
8000
30+
44100
31+
48000
32+
96000
33+
192000
34+
]
35+
out_bit_depth [ 32 ]
36+
out_valid_bit_depth [ 24 ]
37+
}
38+
{
39+
out_rate [
40+
8000
41+
44100
42+
48000
43+
96000
44+
192000
45+
]
46+
out_bit_depth [ 32 ]
47+
out_valid_bit_depth [ 32 ]
48+
}
49+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Output audio formats for e.g. module-copier, s32
2+
num_output_audio_formats 5
3+
CombineArrays.Object.Base.output_audio_format [
4+
{
5+
out_rate [
6+
8000
7+
44100
8+
48000
9+
96000
10+
192000
11+
]
12+
out_bit_depth [ 32 ]
13+
out_valid_bit_depth [ 32 ]
14+
}
15+
]

0 commit comments

Comments
 (0)