Lines Matching defs:chn
332 snd_mixer_selem_channel_id_t chn,
378 if (vol_ops[dir].v[vol_type].get(elem, chn, &orig) < 0)
396 err = vol_ops[dir].v[vol_type].set(elem, chn, val, correct);
755 snd_mixer_selem_channel_id_t chn, int dir,
759 vol_ops[dir].v[VOL_RAW].get(elem, chn, &raw);
763 vol_ops[dir].v[std_vol_type].get(elem, chn, &val);
767 if (!vol_ops[dir].v[VOL_DB].get(elem, chn, &val)) {
776 snd_mixer_selem_channel_id_t chn;
864 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++){
865 if (!snd_mixer_selem_has_playback_channel(elem, chn))
869 printf(" %s", snd_mixer_selem_channel_name(chn));
882 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++){
883 if (!snd_mixer_selem_has_capture_channel(elem, chn))
887 printf(" %s", snd_mixer_selem_channel_name(chn));
987 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++) {
988 if ((pmono || !snd_mixer_selem_has_playback_channel(elem, chn)) &&
989 (cmono || !snd_mixer_selem_has_capture_channel(elem, chn)))
991 printf("%s%s:", space, snd_mixer_selem_channel_name(chn));
993 show_selem_volume(elem, chn, 0, pmin, pmax);
996 snd_mixer_selem_get_playback_switch(elem, chn, &psw);
999 if (!pmono && snd_mixer_selem_has_playback_channel(elem, chn)) {
1005 show_selem_volume(elem, chn, 0, pmin, pmax);
1012 snd_mixer_selem_get_playback_switch(elem, chn, &psw);
1017 if (!cmono && snd_mixer_selem_has_capture_channel(elem, chn)) {
1023 show_selem_volume(elem, chn, 1, cmin, cmax);
1030 snd_mixer_selem_get_capture_switch(elem, chn, &csw);
1333 snd_mixer_selem_channel_id_t chn;
1347 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++) {
1351 if (!(channels & (1 << chn)))
1354 if ((dir & 1) && snd_mixer_selem_has_playback_channel(elem, chn)) {
1357 snd_mixer_selem_get_playback_switch(elem, chn, &ival);
1358 if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "mute", 1, ival)) >= 0)
1361 snd_mixer_selem_get_playback_switch(elem, chn, &ival);
1362 if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "off", 1, ival)) >= 0)
1365 snd_mixer_selem_get_playback_switch(elem, chn, &ival);
1366 if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "unmute", 0, ival)) >= 0)
1369 snd_mixer_selem_get_playback_switch(elem, chn, &ival);
1370 if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "on", 0, ival)) >= 0)
1374 snd_mixer_selem_get_playback_switch(elem, chn, &ival);
1375 if (snd_mixer_selem_set_playback_switch(elem, chn, (ival ? 1 : 0) ^ 1) >= 0)
1380 if (set_volume_simple(elem, chn, &ptr, 0) >= 0)
1389 if ((dir & 2) && snd_mixer_selem_has_capture_channel(elem, chn)) {
1394 snd_mixer_selem_get_capture_switch(elem, chn, &ival);
1395 if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "cap", 0, ival)) >= 0)
1398 snd_mixer_selem_get_capture_switch(elem, chn, &ival);
1399 if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "rec", 0, ival)) >= 0)
1402 snd_mixer_selem_get_capture_switch(elem, chn, &ival);
1403 if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "nocap", 1, ival)) >= 0)
1406 snd_mixer_selem_get_capture_switch(elem, chn, &ival);
1407 if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "norec", 1, ival)) >= 0)
1411 snd_mixer_selem_get_capture_switch(elem, chn, &ival);
1412 if (snd_mixer_selem_set_capture_switch(elem, chn, (ival ? 1 : 0) ^ 1) >= 0)
1417 if (set_volume_simple(elem, chn, &ptr, 1) >= 0)