topology2: Add cavs nocodec topology

Only a playback pipeline and a capture pipeline
on SSP0 are added.

Signed-off-by: Chao Song <chao.song@linux.intel.com>
This commit is contained in:
Chao Song 2021-07-09 13:43:00 +08:00 committed by Liam Girdwood
parent 95cc4613ce
commit 5374da8c89
1 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,113 @@
<include/common/vendor-token.conf>
<include/common/tokens.conf>
<include/common/manifest.conf>
<include/common/pcm.conf>
<include/common/pcm_caps.conf>
<include/common/fe_dai.conf>
<include/common/route.conf>
<include/components/host.conf>
<include/components/dai.conf>
<include/components/pipeline.conf>
<include/components/copier.conf>
<include/dais/ssp.conf>
<include/dais/hw_config.conf>
<include/pipelines/cavs/passthrough-playback.conf>
<include/pipelines/cavs/passthrough-capture.conf>
#
# List of all DAIs
#
#SSP Index: 0, Direction: duplex
Object.Dai {
SSP."0" {
id 0
direction "duplex"
name NoCodec-0
default_hw_conf_id 0
sample_bits 16
quirks "lbm_mode"
Object.Base.hw_config."SSP0" {
id 0
mclk_freq 24000000
bclk_freq 4800000
tdm_slot_width 32
}
# include DAI copier components
Object.Widget.copier."0" {
index 1
type "dai_in"
copier_type "SSP"
direction "playback"
stream_name "NoCodec-0"
period_sink_count 0
period_source_count 2
format s16le
}
Object.Widget.copier."1" {
index 2
type "dai_out"
copier_type "SSP"
direction "capture"
stream_name "NoCodec-0"
period_sink_count 2
period_source_count 0
format s16le
}
}
}
#
# Pipeline definitions
#
# Pipeline ID:1 PCM ID: 0
Object.Pipeline {
passthrough-playback."1" {
format "s16le"
Object.Widget.pipeline.1.stream_name "copier.SSP.1.0"
Object.Widget.copier.1.stream_name "Passthrough Playback 0"
}
passthrough-capture."2" {
format "s16le"
Object.Widget.pipeline.1.stream_name "copier.SSP.2.1"
Object.Widget.copier.1.stream_name "Passthrough Capture 0"
}
}
Object.PCM {
pcm."0" {
name "Port0"
direction "duplex"
Object.Base.fe_dai."Port0" {}
Object.PCM.pcm_caps."playback" {
name "Passthrough Playback 0"
formats 'S16_LE'
}
Object.PCM.pcm_caps."capture" {
name "Passthrough Capture 0"
formats 'S16_LE'
}
}
}
Object.Base {
route."0" {
source "copier.host.1.1"
sink "copier.SSP.1.0"
}
route."1" {
source "copier.SSP.2.1"
sink "copier.host.2.1"
}
}