]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: Parse sequence of component devices
authorMengdong Lin <mengdong.lin@linux.intel.com>
Mon, 28 Nov 2016 05:33:54 +0000 (13:33 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 Dec 2016 19:29:22 +0000 (20:29 +0100)
commit14c930d0c96654bd6f5192792380b3e53e523044
treebc02c58b70ca6fce3a771f1b4170b41fe2827596
parent6bf8447b9102d1b9948ee4d75d5ad7664a61d863
ucm: Parse sequence of component devices

A machine device's sequence can enable or disable a component device by
keyword 'enadev' and 'disdev' followed the name of the component device.

UCM sequence parser will find the component device and mark if its enable
or disable sequence is needed by the parent, the machine device.

New element type and struct are defined for the sequence of a component
device. Component devices will be removed from the machine device list
'device_list' of a verb, since we don't want to expose them to audio
servers with original API to list devices for backward compatibility.
A new list 'cmpt_device_list' is used for the component devices of a verb.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/ucm/parser.c
src/ucm/ucm_local.h
src/ucm/utils.c