ALSA Library Reference Manual
DECLARATION
typedef struct snd_switch
{
unsigned char name[32]; /* unique identification of switch (from driver) */
unsigned int type; /* look to SND_SW_TYPE_* */
unsigned int low; /* low range value */
unsigned int high; /* high range value */
union
{
unsigned int enable:1; /* 0 = off, 1 = on */
unsigned char data8[32]; /* 8-bit data */
unsigned short data16[16]; /* 16-bit data */
unsigned int data32[8]; /* 32-bit data */
int item_number; /* active list item number */
char item[32]; /* list item, low=high -> item number */
}
value;
unsigned int subtype; /* look to SND_SW_SUBTYPE_* */
unsigned char reserved[28];
}
snd_switch_t;
REFERENCE
- int snd_ctl_mixer_switch_read (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_mixer_switch_write (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_pcm_capture_switch_read (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_pcm_capture_switch_write (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_pcm_channel_switch_read (snd_ctl_t * handle, int dev, int channel, snd_switch_t * sw);
- int snd_ctl_pcm_channel_switch_write (snd_ctl_t * handle, int dev, int channel, snd_switch_t * sw);
- int snd_ctl_pcm_playback_switch_read (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_pcm_playback_switch_write (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_rawmidi_input_switch_read (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_rawmidi_input_switch_write (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_rawmidi_output_switch_read (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_rawmidi_output_switch_write (snd_ctl_t * handle, int dev, snd_switch_t * sw);
- int snd_ctl_switch_read (snd_ctl_t * handle, snd_switch_t * sw);
- int snd_ctl_switch_write (snd_ctl_t * handle, snd_switch_t * sw);