Skip to content

Commit 030e6f8

Browse files
singalsukv2019i
authored andcommitted
Tools: Topology: Add FLOAT_LE and U8 formats to SDW microphones
This patch adds option to add float and unsigned 8-bit capture formats to SDW microphones if PCM_FORMAT_ALL is set to true. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 8ff6484 commit 030e6f8

1 file changed

Lines changed: 55 additions & 2 deletions

File tree

tools/topology/topology2/platform/intel/sdw-dmic-generic.conf

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,53 @@ IncludeByKey.SDW_DMIC_ENHANCED_CAPTURE {
3636
Object.Widget.host-copier.1 {
3737
stream_name "sdw dmic"
3838
pcm_id 4
39-
}
39+
IncludeByKey.PCM_FORMAT_ALL {
40+
"true" {
41+
num_output_audio_formats 5
42+
Object.Base.output_audio_format [
43+
{
44+
out_bit_depth 16
45+
out_valid_bit_depth 16
46+
}
47+
{
48+
out_bit_depth 32
49+
out_valid_bit_depth 32
50+
}
51+
{
52+
out_bit_depth 32
53+
out_valid_bit_depth 24
54+
}
55+
{
56+
out_bit_depth 32
57+
out_valid_bit_depth 32
58+
out_sample_type $SAMPLE_TYPE_FLOAT
59+
}
60+
{
61+
out_bit_depth 8
62+
out_valid_bit_depth 8
63+
out_sample_type $SAMPLE_TYPE_UNSIGNED_INTEGER
64+
}
65+
]
66+
}
67+
"false" {
68+
num_output_audio_formats 3
69+
Object.Base.output_audio_format [
70+
{
71+
out_bit_depth 16
72+
out_valid_bit_depth 16
73+
}
74+
{
75+
out_bit_depth 32
76+
out_valid_bit_depth 24
77+
}
78+
{
79+
out_bit_depth 32
80+
out_valid_bit_depth 32
81+
}
82+
]
83+
}
84+
}
85+
}
4086

4187
Object.Widget.tdfb.1 {
4288
Object.Control {
@@ -180,7 +226,14 @@ Object.PCM.pcm [
180226

181227
Object.PCM.pcm_caps.1 {
182228
name "sdw dmic"
183-
formats 'S16_LE,S24_LE,S32_LE'
229+
IncludeByKey.PCM_FORMAT_ALL {
230+
"true" {
231+
formats 'S16_LE,S24_LE,S32_LE,U8,FLOAT_LE'
232+
}
233+
"false" {
234+
formats 'S16_LE,S24_LE,S32_LE'
235+
}
236+
}
184237
}
185238
}
186239
]

0 commit comments

Comments
 (0)