Skip to content

Commit 6a10864

Browse files
committed
topology2: sdw-amp-generic: add deep buffer speaker support
Include deep-buffer-spk.conf if DEEP_BUF_SPK is true and SDW_JACK is false. deep-buffer-spk.conf is only included when SDW_JACK is false because deep-buffer-spk.conf is already included in deep-buffer.conf when SDW_JACK is true. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 11a2ab5 commit 6a10864

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,27 @@ Define {
1616
SDW_SPK_ECHO_REF_PCM_ID 12
1717
}
1818

19+
# include deep buffer config if buffer size is in 1 - 1000 ms.
20+
IncludeByKey.PASSTHROUGH {
21+
"false" {
22+
IncludeByKey.DEEPBUFFER_FW_DMA_MS {
23+
"([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|1000)" {
24+
IncludeByKey.DEEP_BUF_SPK {
25+
"true" {
26+
#deep-buffer-spk.conf is included in deep-buffer.conf
27+
#and deep-buffer.conf is included if SDW_JACK is true.
28+
#Therefore, only include deep-buffer-spk.conf when
29+
#SDW_JACK is false to avoid duplicated.
30+
IncludeByKey.SDW_JACK {
31+
"false" "platform/intel/deep-buffer-spk.conf"
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}
39+
1940
Object.Dai.ALH [
2041
{
2142
dai_index 20

0 commit comments

Comments
 (0)