Skip to content

Commit 0360d21

Browse files
committed
topology: aw88399: define custom deepbuffer routing to smart amp
Disable HDA config's built-in deepbuffer (which routes to HDA analog codec) and define our own deepbuffer PCM 31 that routes to the AW88399 smart amp. This prevents routing conflicts where mixin.15.1 would have two outputs (one to HDA mixout.2.1 and one to smart amp mixout.20.1). Routes: - Regular playback (PCM 0): mixin.1.1 → mixout.20.1 → smart_amp → SSP1 - Deepbuffer (PCM 31): mixin.15.1 → mixout.20.1 → smart_amp → SSP1 Signed-off-by: Yakov Till <yakov.till@gmail.com>
1 parent 87edacc commit 0360d21

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

tools/topology/topology2/sof-hda-generic-aw88399.conf

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ IncludeByKey.PLATFORM {
7575
"ptl" "platform/intel/ptl.conf"
7676
}
7777

78+
# Disable deepbuffer in HDA config - we'll define our own that routes to smart amp
79+
Define {
80+
DEEPBUFFER_FW_DMA_MS 0
81+
}
82+
7883
# include HDA config if needed.
7984
IncludeByKey.HDA_CONFIG {
8085
"mix" "cavs-mixin-mixout-hda.conf"
@@ -83,6 +88,20 @@ IncludeByKey.HDA_CONFIG {
8388
"passthrough" "cavs-passthrough-hda.conf"
8489
}
8590

91+
# Define our own deepbuffer that routes to AW88399 smart amp
92+
Define {
93+
DEEP_BUFFER_PIPELINE_ID 15
94+
DEEP_BUFFER_PCM_ID 31
95+
DEEP_BUFFER_PIPELINE_SRC 'mixin.15.1'
96+
DEEP_BUFFER_PIPELINE_SINK 'mixout.20.1'
97+
DEEP_BUFFER_PCM_NAME 'Deepbuffer Speaker'
98+
DEEPBUFFER_D0I3_COMPATIBLE true
99+
DEEP_BUF_JACK_RATE 48000
100+
DEEPBUFFER_FW_DMA_MS 100
101+
}
102+
103+
<deepbuffer-playback.conf>
104+
86105
# include DMIC config if needed.
87106
IncludeByKey.NUM_DMICS {
88107
"[1-4]" "platform/intel/dmic-generic.conf"
@@ -269,11 +288,6 @@ Object.Base.route [
269288
{
270289
source 'mixin.1.1'
271290
sink 'mixout.20.1'
272-
}
273-
{
274-
# Route deepbuffer (PCM 31) through AW88399 smart amp
275-
source 'mixin.15.1'
276-
sink 'mixout.20.1'
277291
}
278292
{
279293
source 'smart_amp.20.1'

0 commit comments

Comments
 (0)