Linux Kernel
3.7.1
|
#include <linux/threads.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/time.h>
#include <sound/core.h>
#include <sound/minors.h>
#include <sound/info.h>
#include <sound/control.h>
Go to the source code of this file.
Data Structures | |
struct | snd_kctl_ioctl |
struct | user_element |
Macros | |
#define | MAX_USER_CONTROLS 32 |
#define | MAX_CONTROL_COUNT 1028 |
#define | snd_ctl_ioctl_compat NULL |
EXPORT_SYMBOL | ( | snd_ctl_notify | ) |
EXPORT_SYMBOL | ( | snd_ctl_new1 | ) |
EXPORT_SYMBOL | ( | snd_ctl_free_one | ) |
EXPORT_SYMBOL | ( | snd_ctl_add | ) |
EXPORT_SYMBOL | ( | snd_ctl_replace | ) |
EXPORT_SYMBOL | ( | snd_ctl_remove | ) |
EXPORT_SYMBOL | ( | snd_ctl_remove_id | ) |
EXPORT_SYMBOL | ( | snd_ctl_rename_id | ) |
EXPORT_SYMBOL | ( | snd_ctl_find_numid | ) |
EXPORT_SYMBOL | ( | snd_ctl_find_id | ) |
EXPORT_SYMBOL | ( | snd_ctl_register_ioctl | ) |
EXPORT_SYMBOL | ( | snd_ctl_unregister_ioctl | ) |
EXPORT_SYMBOL | ( | snd_ctl_boolean_mono_info | ) |
EXPORT_SYMBOL | ( | snd_ctl_boolean_stereo_info | ) |
EXPORT_SYMBOL | ( | snd_ctl_enum_info | ) |
EXPORT_SYMBOL_GPL | ( | snd_ctl_activate_id | ) |
snd_ctl_activate_id - activate/inactivate the control of the given id : the card instance : the control id to activate/inactivate : non-zero to activate
Finds the control instance with the given id, and activate or inactivate the control together with notification, if changed.
Returns 0 if unchanged, 1 if changed, or a negative error code on failure.
int snd_ctl_add | ( | struct snd_card * | card, |
struct snd_kcontrol * | kcontrol | ||
) |
snd_ctl_add - add the control instance to the card : the card instance : the control instance to add
Adds the control instance created via snd_ctl_new() or snd_ctl_new1() to the given card. Assigns also an unique numid used for fast search.
Returns zero if successful, or a negative error code on failure.
It frees automatically the control which cannot be added.
int snd_ctl_boolean_mono_info | ( | struct snd_kcontrol * | kcontrol, |
struct snd_ctl_elem_info * | uinfo | ||
) |
int snd_ctl_boolean_stereo_info | ( | struct snd_kcontrol * | kcontrol, |
struct snd_ctl_elem_info * | uinfo | ||
) |
int snd_ctl_enum_info | ( | struct snd_ctl_elem_info * | info, |
unsigned int | channels, | ||
unsigned int | items, | ||
const char *const | names[] | ||
) |
snd_ctl_enum_info - fills the info structure for an enumerated control : the structure to be filled : the number of the control's channels; often one : the number of control values; also the size of : an array containing the names of all control values
Sets all required fields in to their appropriate values. If the control's accessibility is not the default (readable and writable), the caller has to fill ->access.
|
read |
snd_ctl_find_id - find the control instance with the given id : the card instance : the id to search
Finds the control instance with the given id from the card.
Returns the pointer of the instance if found, or NULL if not.
The caller must down card->controls_rwsem before calling this function (if the race condition can happen).
|
read |
snd_ctl_find_numid - find the control instance with the given number-id : the card instance : the number-id to search
Finds the control instance with the given number-id from the card.
Returns the pointer of the instance if found, or NULL if not.
The caller must down card->controls_rwsem before calling this function (if the race condition can happen).
void snd_ctl_free_one | ( | struct snd_kcontrol * | kcontrol | ) |
|
read |
snd_ctl_new1 - create a control instance from the template : the initialization record : the private data to set
Allocates a new struct snd_kcontrol instance and initialize from the given template. When the access field of ncontrol is 0, it's assumed as READWRITE access. When the count field is 0, it's assumes as one.
Returns the pointer of the newly generated instance, or NULL on failure.
int snd_ctl_register_ioctl | ( | snd_kctl_ioctl_func_t | fcn | ) |
int snd_ctl_remove | ( | struct snd_card * | card, |
struct snd_kcontrol * | kcontrol | ||
) |
snd_ctl_remove - remove the control from the card and release it : the card instance : the control instance to remove
Removes the control from the card and then releases the instance. You don't need to call snd_ctl_free_one(). You must be in the write lock - down_write(&card->controls_rwsem).
Returns 0 if successful, or a negative error code on failure.
int snd_ctl_remove_id | ( | struct snd_card * | card, |
struct snd_ctl_elem_id * | id | ||
) |
int snd_ctl_rename_id | ( | struct snd_card * | card, |
struct snd_ctl_elem_id * | src_id, | ||
struct snd_ctl_elem_id * | dst_id | ||
) |
snd_ctl_replace - replace the control instance of the card : the card instance : the control instance to replace : add the control if not already added
Replaces the given control. If the given control does not exist and the add_on_replace flag is set, the control is added. If the control exists, it is destroyed first.
Returns zero if successful, or a negative error code on failure.
It frees automatically the control which cannot be added or replaced.
int snd_ctl_unregister_ioctl | ( | snd_kctl_ioctl_func_t | fcn | ) |