]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-process-dai: add support for PCM and BE DAI objects
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 26 Apr 2021 20:12:43 +0000 (13:12 -0700)
committerJaroslav Kysela <perex@perex.cz>
Tue, 25 May 2021 16:26:51 +0000 (18:26 +0200)
commitb0be2350244bd427aef448bf79336ee0f70648e0
tree6376ac6b90316e9cf139bc864635ee67ab63db57
parent758e4dba8130fe7824c04bbdfd3c9bfb3668803c
topology: pre-process-dai: add support for PCM and BE DAI objects

Add support for pre-processing PCM and BE DAI objects:

Object.PCM.pcm."0" {
name "Port0"
direction "duplex"
}

will be converted to:

SectionPCM.'Port0' {}

The capabilities and dai configs will be added those objects are pre-processed.

An ex of DAI object would be:
Object.Dai.SSP."0" {
direction "duplex"
stream_name "NoCodec-0"
id  0
default_hw_conf_id 0
format "s24le"
quirks "lbm_mode"
sample_bits 24
}

converted to:
SectionBE {
        'SSP.0.duplex' {
                id 0
                stream_name NoCodec-0
                default_hw_conf_id 0
                data [
                        'SSP.0.duplex.sof_tkn_intel_ssp.word'
                        'SSP.0.duplex.sof_tkn_dai.word'
                        'SSP.0.duplex.sof_tkn_dai.string'
                        'SSP.0.duplex.sof_tkn_intel_ssp.short'
                ]
}

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-process-object.c