topology: Add option to pass pre-processor definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



alsa-project/alsa-utils pull request #117 was opened from ranj063:

Add a -D switch to be able to pass pre-processor definitions that will
be used to expand arguments in the input config file. This will be
useful to generate multiple topology binaries from the same input config
file with different argument values.

For example: if we had a pipeline config as follows:

Object.Pipeline {
	volume-playback.1 {
		dynamic_pipeline $DYNAMIC_PIPELINE
	}
}

We can define an argument for DYNAMIC_PIPELINE as:

@args [ DYNAMIC_PIPELINE ]
@args.DYNAMIC_PIPELINE {
	type integer
	default 0
}

And when pre-processin the conf file pass "-D DYNAMIC_PIPELINE=1" to enable
dynamic pipeline in the topology.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@xxxxxxxxxxxxxxx>

Request URL   : https://github.com/alsa-project/alsa-utils/pull/117
Patch URL     : https://github.com/alsa-project/alsa-utils/pull/117.patch
Repository URL: https://github.com/alsa-project/alsa-utils



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux