]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: Execute sequence of component devices
authorMengdong Lin <mengdong.lin@linux.intel.com>
Mon, 28 Nov 2016 05:34:21 +0000 (13:34 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 Dec 2016 19:29:34 +0000 (20:29 +0100)
commit60b68cb47ed5da9b3c0adde04c69df2649feafe8
tree9172aef433b5aedf15c25178dca8431956e157ac
parent14c930d0c96654bd6f5192792380b3e53e523044
ucm: Execute sequence of component devices

A machine device's sequence can enable or disable a component device. So
when executing a machine device's sequence, the enable or disable sequence
of its component devices will also be excecuted.

Components don't define card device cdev in their sequences. So before
executing a component device sequence, UCM manager will
- store cdev defined by the sequence of its parent, the machine device;
- mark itself entering 'component domain'.

Then this cdev will be used to excute the sequence of the component
device.

When UCM manager completes executing the sequence of the component device,
it will leave 'compnent domain' and reset the saved cdev to NULL.

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/main.c
src/ucm/ucm_local.h