mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Implemented the top-level redirector code for simple mixer
- mixer_abst.c is almost finished (an example module should be created now) - also fixed some error paths for name function
This commit is contained in:
parent
157cb698ac
commit
3bcf2f805d
3 changed files with 176 additions and 9 deletions
|
|
@ -497,6 +497,8 @@ int snd_mixer_class_register(snd_mixer_class_t *class, snd_mixer_t *mixer)
|
|||
* \brief Unregister mixer element class and remove all its elements
|
||||
* \param class Mixer element class
|
||||
* \return 0 on success otherwise a negative error code
|
||||
*
|
||||
* Note that the class structure is also deallocated!
|
||||
*/
|
||||
int snd_mixer_class_unregister(snd_mixer_class_t *class)
|
||||
{
|
||||
|
|
@ -929,6 +931,8 @@ int snd_mixer_class_malloc(snd_mixer_class_t **ptr)
|
|||
*/
|
||||
void snd_mixer_class_free(snd_mixer_class_t *obj)
|
||||
{
|
||||
if (obj->private_free)
|
||||
obj->private_free(obj);
|
||||
free(obj);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue