alsa-lib/src
Fuwei Tang a3b4bd2c8c topology: Look up references for an object based on its index
We can distinguish different use cases by the object index value, the default
value is 0, meaning applicable for all use cases, defined by macro "SND_TOLG_INDEX_ALL".
An element can only refer to other elements for "all" use cases or the same use
cases, i.e. it can only refer to elements with index value "SND_TOLG_INDEX_ALL"
or the same index value as itself.
The object list has been sorted in ascending order of index, so when we look up
a reference for an object, we traverse the object list it depends on, if we have
not found the reference until index of the object list is greater than index of
the object, we give up and return an error.

Signed-off-by: Fuwei Tang <fuweix.tang@intel.com>
Reviewed-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-04-21 12:57:48 +02:00
..
alisp alisp: remove alloca() from FA_pcm_info() 2016-07-14 16:33:53 +02:00
conf conf/cards: add VC4-HDMI card 2017-03-20 12:05:36 +01:00
control ctl: correct documentation about TLV feature 2016-09-30 17:13:11 +02:00
hwdep conf: Add thread-safe global tree reference 2016-05-17 15:51:20 +02:00
mixer mixer: Fix rounding mode documentation 2016-08-22 11:27:03 +02:00
pcm pcm: dmix: Disable var_periodsize as default 2017-04-10 11:50:18 +02:00
rawmidi rawmidi: virtual: fix reading into a small buffer 2017-03-20 10:34:21 +01:00
seq seq: improve documentation about new get pid/card functions 2017-01-03 17:49:07 +01:00
timer conf: Add thread-safe global tree reference 2016-05-17 15:51:20 +02:00
topology topology: Look up references for an object based on its index 2017-04-21 12:57:48 +02:00
ucm ucm parser: fix possible string overflow in uc_mgr_import_master_config() 2017-02-27 09:53:26 +01:00
async.c async: Handle previously installed signal handler 2016-06-01 08:16:31 +02:00
conf.c conf: Search included files under user specified configuration directories 2016-10-25 09:25:22 +02:00
confmisc.c conf: remove alloca() from snd_func_private_pcm_subdevice() 2016-07-14 16:33:52 +02:00
dlmisc.c dlmisc: Remove unused label 2014-11-16 09:43:39 +01:00
error.c all places: doxygen cleanups 2013-04-08 16:42:24 +02:00
input.c Make all the remaining ops structure constants. 2008-11-21 20:48:33 +01:00
Makefile.am topology: autotools: Add build support for topology core 2015-07-30 17:10:14 +02:00
names.c Remove docs for snd_names_list and snd_names_list_free 2012-01-19 12:35:20 +01:00
output.c fix doc errors 2009-08-04 09:17:20 +02:00
shmarea.c support building w/out System V shared memory 2015-11-05 14:37:11 +01:00
socket.c Remove unused hostname resolution in shm plugins and aserver 2015-01-28 16:23:06 +01:00
userfile.c snd_user_file: fix memory leak 2014-11-03 17:26:00 +01:00
Versions.in Fix wrong exported functions 2008-02-04 14:15:44 +01:00