mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: fix some variable constness issues
I submitted earlier a patch that made the value parameter of snd_use_case_get() non-const, but as that changed the public API, the patch couldn't be accepted. This is the same patch, modifying the internal code so that there are fewer issues with constness, but the public API is left alone (a comment was added to the function documentation, though, so that hopefully nobody else will try to fix the same unfixable problem). Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
a102e66440
commit
567c831e69
2 changed files with 18 additions and 16 deletions
|
|
@ -224,8 +224,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
|
|||
* \param value Value pointer
|
||||
* \return Zero if success, otherwise a negative error code
|
||||
*
|
||||
* Note: String is dynamically allocated, use free() to
|
||||
* deallocate this string.
|
||||
* Note: The returned string is dynamically allocated, use free() to
|
||||
* deallocate this string. (Yes, the value parameter shouldn't be marked as
|
||||
* "const", but it's too late to fix it, sorry about that.)
|
||||
*
|
||||
* Known identifiers:
|
||||
* NULL - return current card
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue