Parse control element id from the config.
- Parameters
-
conf | the config tree to parse |
ctl_id | the pointer to store the resultant control element id |
cardp | the pointer to store the card index |
cchannelsp | the pointer to store the number of channels (optional) |
hwctlp | the pointer to store the h/w control flag (optional) |
- Returns
- 0 if successful, or a negative error code
- Deprecated
- Since 1.2.5 This function parses the given config tree to retrieve the control element id and the card index. It's used by softvol. External PCM plugins can use this function for creating or assigining their controls.
cchannelsp and hwctlp arguments are optional. Set NULL if not necessary.