Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
275 changes: 262 additions & 13 deletions tools/topology/topology2/cavs-benchmark-hda.conf
Original file line number Diff line number Diff line change
@@ -1,20 +1,171 @@
<include/components/dcblock.conf>
<include/components/rtnr.conf>
<include/components/igo_nr.conf>
<include/components/src_lite.conf>
<include/components/asrc.conf>
<include/components/tdfb.conf>
<include/components/template_comp.conf>
<include/components/micsel.conf>
<searchdir:include>
<searchdir:include/common>
<searchdir:include/components>
<searchdir:include/dais>
<searchdir:include/pipelines>
<searchdir:include/pipelines/cavs>
<searchdir:platform>
<searchdir:platform/intel>

<vendor-token.conf>
<tokens.conf>
<virtual.conf>
<host-gateway-playback.conf>
<host-gateway-capture.conf>
<dai-copier.conf>
<io-gateway.conf>
<io-gateway-capture.conf>
<mixout-dai-copier-playback.conf>
<mixout-aria-gain-mixin-playback.conf>
<host-copier-gain-mixin-playback.conf>
<highpass-capture-be.conf>
<data.conf>
<pcm.conf>
<pcm_caps.conf>
<fe_dai.conf>
<hda.conf>
<hw_config_simple.conf>
<manifest.conf>
<route.conf>
<common_definitions.conf>
<module-copier.conf>

<aria.conf>
<asrc.conf>
<dcblock.conf>
<drc.conf>
<eqiir.conf>
<eqfir.conf>
<gain.conf>
<igo_nr.conf>
<micsel.conf>
<mixin.conf>
<mixout.conf>
<multiband_drc.conf>
<rtnr.conf>
<src.conf>
<src_lite.conf>
<tdfb.conf>
<template_comp.conf>

Define {
HDA_CONFIG "none"
PLATFORM "none"
ANALOG_PLAYBACK_PCM 'Analog Playback'
ANALOG_CAPTURE_PCM 'Analog Capture'
HDA_ANALOG_DAI_NAME 'Analog'
HDA_ANALOG_CAPTURE_RATE 48000
HDA_ANALOG_PLAYBACK_RATE 48000
BENCH_PLAYBACK_HOST_PIPELINE 1
BENCH_PLAYBACK_DAI_PIPELINE 2
BENCH_CAPTURE_HOST_PIPELINE 3
BENCH_CAPTURE_DAI_PIPELINE 4
BENCH_PLAYBACK_DAI_COPIER "dai-copier.HDA.Analog.playback"
BENCH_CAPTURE_DAI_COPIER "dai-copier.HDA.Analog.capture"
BENCH_PCM_CHANNELS_MIN 2
BENCH_PCM_CHANNELS_MAX 2
}

# override defaults with platform-specific config
IncludeByKey.PLATFORM {
"mtl" "platform/intel/mtl.conf"
"lnl" "platform/intel/lnl.conf"
"ptl" "platform/intel/ptl.conf"
}

Object.Widget.virtual [
{
name 'codec0_in'
type input
index 1
}
{
name 'codec1_in'
type input
index 2
}
{
name 'codec0_out'
type output
index 3
}
{
name 'codec1_out'
type output
index 4
}
{
name 'codec2_in'
type input
index 5
}
{
name 'codec2_out'
type output
index 6
}
{
name 'iDisp1_out'
type output
index 7
}
{
name 'iDisp2_out'
type output
index 8
}
{
name 'iDisp3_out'
type output
index 9
}
{
name 'iDisp3 Tx'
type out_drv
index 0
}
{
name 'iDisp2 Tx'
type out_drv
index 1
}
{
name 'iDisp1 Tx'
type out_drv
index 2
}
{
name 'Analog CPU Playback'
type out_drv
index 3
}
{
name 'Digital CPU Playback'
type out_drv
index 4
}
{
name 'Alt Analog CPU Playback'
type out_drv
index 5
}
{
name 'Analog CPU Capture'
type input
index 6
}
{
name 'Digital CPU Capture'
type input
index 7
}
{
name 'Alt Analog CPU Capture'
type input
index 8
}
]

Object.Dai.HDA [
{
name $HDA_ANALOG_DAI_NAME
Expand All @@ -40,21 +191,119 @@ Object.PCM.pcm [
name $ANALOG_PLAYBACK_PCM
formats 'S32_LE,S24_LE,S16_LE'
rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
channels_min 1
channels_max 8
channels_min $BENCH_PCM_CHANNELS_MIN
channels_max $BENCH_PCM_CHANNELS_MAX
}
Object.PCM.pcm_caps.2 {
direction "capture"
name $ANALOG_CAPTURE_PCM
formats 'S32_LE,S24_LE,S16_LE'
rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
channels_min 1
channels_max 8
channels_min $BENCH_PCM_CHANNELS_MIN
channels_max $BENCH_PCM_CHANNELS_MAX
}
direction duplex
}
]

Object.Pipeline {
io-gateway [
{
index $BENCH_PLAYBACK_DAI_PIPELINE
direction playback
Object.Widget.dai-copier.1 {
node_type $HDA_LINK_OUTPUT_CLASS
stream_name $HDA_ANALOG_DAI_NAME
dai_type "HDA"
copier_type "HDA"
num_input_pins 1
num_input_audio_formats 1
num_output_audio_formats 1
IncludeByKey.BENCH_MODULE_FORMAT {
"s16" {
Object.Base.input_audio_format [
{
in_bit_depth 16
in_valid_bit_depth 16
}
]
}
"s24" {
Object.Base.input_audio_format [
{
in_bit_depth 32
in_valid_bit_depth 24
}
]
}
"s32" {
Object.Base.input_audio_format [
{
in_bit_depth 32
in_valid_bit_depth 32
}
]
}
}
Object.Base.output_audio_format [
{
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
}
]
io-gateway-capture [
{
index $BENCH_CAPTURE_DAI_PIPELINE
direction capture
Object.Widget.dai-copier.1 {
dai_type "HDA"
type "dai_out"
copier_type "HDA"
stream_name $HDA_ANALOG_DAI_NAME
node_type $HDA_LINK_INPUT_CLASS
num_output_pins 1
num_input_audio_formats 1
num_output_audio_formats 1
Object.Base.input_audio_format [
{
in_bit_depth 32
in_valid_bit_depth 32
}
]
IncludeByKey.BENCH_MODULE_FORMAT {
"s16" {
Object.Base.output_audio_format [
{
out_bit_depth 16
out_valid_bit_depth 16
}
]
}
"s24" {
Object.Base.output_audio_format [
{
out_bit_depth 32
out_valid_bit_depth 24
}
]
}
"s32" {
Object.Base.output_audio_format [
{
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
}
}
}
]
}

IncludeByKey.BENCH_CONFIG {
"benchmark" {
Object.Pipeline {
Expand Down Expand Up @@ -314,7 +563,7 @@ IncludeByKey.BENCH_CONFIG {
index 5
direction capture

Object.Widget.dai-copier."1" {
Object.Widget.dai-copier.1 {
dai_type "HDA"
type "dai_out"
copier_type "HDA"
Expand Down
Loading
Loading