aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorFrédéric Boisnard <fredericx.boisnard@intel.com>2013-09-17 22:43:18 +0200
committerDavid Wagner <david.wagner@intel.com>2014-04-22 15:29:24 +0200
commit9e2c240f20f82159b59c37ed3c722c1279f7863e (patch)
tree47299577ba50514919fd0be522044098538246f7 /README
parent782bfda5e796cb46d0e7be0dc882ff686d5ad2a2 (diff)
Add a function to disambiguate duplicate control names
Control names are not unique and can be shared by multiple mixers controls. When this happens, there is no way of accessing the mixer using its control name, because mixer_get_ctl_by_name() always returns the first match. The only way of accessing the mixer is through its control number, i.e. using mixer_get_ctl(). This patch adds the function mixer_get_ctl_by_name_and_index() to offer the possibility to retrieve a control through its name and index. This index corresponds to the nth occurence of the control name in the global supported controls names list. Change-Id: Ie29bf2a949ecf69f106bbe359155cdbfbe98928c Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com> Signed-off-by: David Wagner <david.wagner@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-Tracking-BZ: 139255
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions