From 030f27d556b4a7cb74a2ed59d3cc8dd02dbd9b0d Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Fri, 10 Sep 2021 19:13:42 -0500 Subject: [PATCH] topology1: sof-hda-generic: add deep-buffer pipeline for analog playback Use SoundWire convention with deep-buffer using device 31. Signed-off-by: Pierre-Louis Bossart --- tools/topology/topology1/sof-hda-generic.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/topology/topology1/sof-hda-generic.m4 b/tools/topology/topology1/sof-hda-generic.m4 index 9e04d3c4a..89325aca8 100644 --- a/tools/topology/topology1/sof-hda-generic.m4 +++ b/tools/topology/topology1/sof-hda-generic.m4 @@ -104,6 +104,16 @@ PIPELINE_PCM_ADD(sof/pipe-host-volume-playback.m4, SCHEDULE_TIME_DOMAIN_TIMER, PIPELINE_PLAYBACK_SCHED_COMP_1) +# Deep buffer playback pipeline 31 on PCM 31 using max 2 channels of s32le +# Set 1000us deadline on core 0 with priority 0. +# TODO: Modify pipeline deadline to account for deep buffering +PIPELINE_PCM_ADD(sof/pipe-host-volume-playback.m4, + 31, 31, 2, s32le, + 1000, 0, 0, + 48000, 48000, 48000, + SCHEDULE_TIME_DOMAIN_TIMER, + PIPELINE_PLAYBACK_SCHED_COMP_1) + # Undefine PIPELINE_FILTERx to avoid to propagate elsewhere, other endpoints # with filters blobs will need similar handling as HSPROC_FILTERx. undefine(`PIPELINE_FILTER1') @@ -143,10 +153,12 @@ SectionGraph."mixer-host" { lines [ # connect mixer dai pipelines to PCM pipelines dapm(PIPELINE_MIXER_1, PIPELINE_SOURCE_30) + dapm(PIPELINE_MIXER_1, PIPELINE_SOURCE_31) ] } PCM_DUPLEX_ADD(HDA Analog, 0, PIPELINE_PCM_30, PIPELINE_PCM_2) +PCM_PLAYBACK_ADD(HDA Analog Deep Buffer, 31, PIPELINE_PCM_31) PCM_PLAYBACK_ADD(HDMI1, 3, PIPELINE_PCM_7) PCM_PLAYBACK_ADD(HDMI2, 4, PIPELINE_PCM_8) PCM_PLAYBACK_ADD(HDMI3, 5, PIPELINE_PCM_9)