alsa-utils/topology
Ranjani Sridharan b2e85be668 topology: pre-process-object: check attribute validity
Attributes can have constraints set for valid values, min
or max values. If the attribute value is set in an object,
the value must be validated against the set constraints.

An example for attribute constraint would be:
DefineAttribute."direction" {
		constraints {
			valid_values [
				"playback"
				"capture"
			]
			tuple_values [
				0
				1
			]
		}
}

where the tuple_values array would translate the valid_values of
playback as 0 and capture as 1.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-05-25 18:26:51 +02:00
..
alsatplg.rst alsatplg: add decode command 2020-02-09 20:52:30 +01:00
Makefile.am topology: pre-process-object: Add support for pre-processing Objects 2021-05-25 18:26:51 +02:00
pre-process-class.c topology: pre-process-class: add function to convert valid attribute values to integer tuple values 2021-05-25 18:26:51 +02:00
pre-process-object.c topology: pre-process-object: check attribute validity 2021-05-25 18:26:51 +02:00
pre-processor.c topology: pre-process-object: Add support for pre-processing Objects 2021-05-25 18:26:51 +02:00
pre-processor.h topology: pre-process-object: Add support for pre-processing Objects 2021-05-25 18:26:51 +02:00
topology.c topology: Add support for pre-processing Topology2.0 syntax 2021-05-25 18:26:51 +02:00
topology.h topology: Add support for pre-processing Topology2.0 syntax 2021-05-25 18:26:51 +02:00