Skip to content

Commit

Permalink
topology2: doc: volume-playback.conf: Doxygenify exsisting comments
Browse files Browse the repository at this point in the history
Signed-off-by: Jyri Sarha <[email protected]>
  • Loading branch information
Jyri Sarha committed Sep 1, 2023
1 parent 80d6b30 commit e28a0c1
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions tools/topology/topology2/include/pipelines/volume-playback.conf
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
#
# Volume playback pipeline
#
# A simple pipeline. All attributes defined herein are namespaced by alsatplg to
# "Object.Pipeline.volume-playback.N.attribute_name"
#
# Usage: this component can be used by declaring in the top-level topology conf file as follows:
#
# Object.Pipeline.volume-playback."N" {
# format "s16le"
# period 1000
# time_domain "timer"
# channels 2
# rate 48000
# }
#
# where N is the unique pipeline_id for this pipeline object within the same alsaconf node.
#
#
# (source) host.N.playback -> buffer.N.1 -> volume.N.1 -> buffer.N.2 (sink endpoint)
#
## \struct volume_playback
## \brief Volume playback pipeline
##
## \par Instantiating volume-playback pipeline
##
## A simple pipeline. All attributes defined herein are namespaced by alsatplg
## to "Object.Pipeline.volume-playback.N.attribute_name"
##
## Usage: this component can be used by declaring in the top-level topology conf file as follows:
##
## Object.Pipeline.volume-playback."N" {
## format "s16le"
## period 1000
## time_domain "timer"
## channels 2
## rate 48000
## }
##
## where N is the unique pipeline_id for this pipeline object within the same alsaconf node.
##
##
## (source) host.N.playback -> buffer.N.1 -> volume.N.1 -> buffer.N.2 (sink endpoint)
##

<include/common/route.conf>
<include/components/buffer.conf>
Expand All @@ -27,11 +29,11 @@
<include/components/volume.conf>

Class.Pipeline."volume-playback" {
# include common pipeline attribute definitions
## include common pipeline attribute definitions
<include/pipelines/pipeline-common.conf>

attributes {
# pipeline name is constructed as "volume-playback.1"
## pipeline name is constructed as "volume-playback.1"
!constructor [
"index"
]
Expand All @@ -42,8 +44,8 @@ Class.Pipeline."volume-playback" {
"direction"
]
#
# volume-playback objects instantiated within the same alsaconf node must have
# unique index attribute
## volume-playback objects instantiated within the same alsaconf node must have
## unique index attribute
#
unique "instance"
}
Expand All @@ -52,6 +54,7 @@ Class.Pipeline."volume-playback" {
pipeline."1" {}

host."playback" {
## "aif_in" is for playback
type "aif_in"
}

Expand All @@ -74,9 +77,9 @@ Class.Pipeline."volume-playback" {
}
}

# Pipeline connections
# The index attribute values for the source/sink widgets will be populated
# when the route objects are built
## Pipeline connections
## The index attribute values for the source/sink widgets will be populated
## when the route objects are built
Object.Base {
route."1" {
source "host.$index.playback"
Expand Down

0 comments on commit e28a0c1

Please sign in to comment.