Skip to content

Commit abe90f1

Browse files
committed
topology2: host-copier: add D0i3 compatibility attributes
Add playback_compatible_d0i3 and capture_compatible_d0i3 attribute definitions to the host copier widget class. This allows topologies to specify D0i3 stream compatibility flags directly on host copier widgets, enabling the DSP to enter and remain in D0i3 during S0ix while the stream is active. Enable capture_compatible_d0i3 on the WoV capture and TFLM detect host copier widgets in the HDA microphone TFLM Wake-on-Voice topology. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 54fd0a6 commit abe90f1

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

tools/topology/topology2/include/components/host-copier.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ Class.Widget."host-copier" {
8383
token_ref "copier.word"
8484
}
8585

86+
#
87+
# D0I3 compatibility flags for streams. When set, the DSP can
88+
# remain in D0i3 during S0ix while this stream is active.
89+
#
90+
DefineAttribute."playback_compatible_d0i3" {
91+
token_ref "stream.bool"
92+
}
93+
94+
DefineAttribute."capture_compatible_d0i3" {
95+
token_ref "stream.bool"
96+
}
97+
8698
attributes {
8799
#
88100
# The host copier widget name would be constructed using the copier pcm_id and

tools/topology/topology2/platform/intel/hda-mic-tflm-kpb.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Object.Pipeline.host-gateway-capture [
5252
Object.Widget.host-copier.1 {
5353
stream_name "HDA Mic WoV Capture"
5454
pcm_id $HDA_TFLM_WOV_PCM_ID
55+
capture_compatible_d0i3 1
5556
num_input_audio_formats 1
5657
num_output_audio_formats 1
5758
Object.Base.input_audio_format [
@@ -81,6 +82,7 @@ Object.Pipeline.host-gateway-micsel-mfcc-tflm-capture [
8182
Object.Widget.host-copier.1 {
8283
stream_name "HDA Mic TFLM Detect"
8384
pcm_id $HDA_TFLM_DETECT_PCM_ID
85+
capture_compatible_d0i3 1
8486
}
8587

8688
Object.Widget.micsel.1 {

0 commit comments

Comments
 (0)