Lines Matching defs:channel
965 static int _snd_mixer_selem_set_volume(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long value)
970 if ((unsigned int) channel >= s->str[dir].channels)
976 channel = 0;
977 if (value != s->str[dir].vol[channel]) {
978 s->str[dir].vol[channel] = value;
984 static int _snd_mixer_selem_set_switch(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, int value)
987 if ((unsigned int) channel >= s->str[dir].channels)
991 channel = 0;
993 if (!(s->str[dir].sw & (1 << channel))) {
994 s->str[dir].sw |= 1 << channel;
998 if (s->str[dir].sw & (1 << channel)) {
999 s->str[dir].sw &= ~(1 << channel);
1085 snd_mixer_selem_channel_id_t channel, long *value)
1090 if ((unsigned int) channel >= s->str[dir].channels)
1092 *value = s->str[dir].vol[channel];
1219 snd_mixer_selem_channel_id_t channel,
1232 if ((err = get_volume_ops(elem, dir, channel, &volume)) < 0)
1243 snd_mixer_selem_channel_id_t channel, int *value)
1248 if ((unsigned int) channel >= s->str[dir].channels)
1250 *value = !!(s->str[dir].sw & (1 << channel));
1255 snd_mixer_selem_channel_id_t channel, long value)
1258 changed = _snd_mixer_selem_set_volume(elem, dir, channel, value);
1281 snd_mixer_selem_channel_id_t channel,
1297 return set_volume_ops(elem, dir, channel, value);
1301 snd_mixer_selem_channel_id_t channel, int value)
1314 changed = _snd_mixer_selem_set_switch(elem, dir, channel, value);
1352 snd_mixer_selem_channel_id_t channel,
1360 if ((unsigned int) channel >= s->str[0].channels)
1368 *itemp = snd_ctl_elem_value_get_enumerated(&ctl, channel);
1373 snd_mixer_selem_channel_id_t channel,
1382 if ((unsigned int) channel >= s->str[0].channels) {
1403 snd_ctl_elem_value_set_enumerated(&ctl, channel, item);