• Home
  • Raw
  • Download

Lines Matching refs:chn

331 			     snd_mixer_selem_channel_id_t chn,  in set_volume_simple()  argument
377 if (vol_ops[dir].v[vol_type].get(elem, chn, &orig) < 0) in set_volume_simple()
395 err = vol_ops[dir].v[vol_type].set(elem, chn, val, correct); in set_volume_simple()
754 snd_mixer_selem_channel_id_t chn, int dir, in show_selem_volume() argument
758 vol_ops[dir].v[VOL_RAW].get(elem, chn, &raw); in show_selem_volume()
762 vol_ops[dir].v[std_vol_type].get(elem, chn, &val); in show_selem_volume()
766 if (!vol_ops[dir].v[VOL_DB].get(elem, chn, &val)) { in show_selem_volume()
775 snd_mixer_selem_channel_id_t chn; in show_selem() local
863 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++){ in show_selem()
864 if (!snd_mixer_selem_has_playback_channel(elem, chn)) in show_selem()
868 printf(" %s", snd_mixer_selem_channel_name(chn)); in show_selem()
881 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++){ in show_selem()
882 if (!snd_mixer_selem_has_capture_channel(elem, chn)) in show_selem()
886 printf(" %s", snd_mixer_selem_channel_name(chn)); in show_selem()
986 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++) { in show_selem()
987 if ((pmono || !snd_mixer_selem_has_playback_channel(elem, chn)) && in show_selem()
988 (cmono || !snd_mixer_selem_has_capture_channel(elem, chn))) in show_selem()
990 printf("%s%s:", space, snd_mixer_selem_channel_name(chn)); in show_selem()
992 show_selem_volume(elem, chn, 0, pmin, pmax); in show_selem()
995 snd_mixer_selem_get_playback_switch(elem, chn, &psw); in show_selem()
998 if (!pmono && snd_mixer_selem_has_playback_channel(elem, chn)) { in show_selem()
1004 show_selem_volume(elem, chn, 0, pmin, pmax); in show_selem()
1011 snd_mixer_selem_get_playback_switch(elem, chn, &psw); in show_selem()
1016 if (!cmono && snd_mixer_selem_has_capture_channel(elem, chn)) { in show_selem()
1022 show_selem_volume(elem, chn, 1, cmin, cmax); in show_selem()
1029 snd_mixer_selem_get_capture_switch(elem, chn, &csw); in show_selem()
1332 snd_mixer_selem_channel_id_t chn; in sset_channels() local
1346 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++) { in sset_channels()
1350 if (!(channels & (1 << chn))) in sset_channels()
1353 if ((dir & 1) && snd_mixer_selem_has_playback_channel(elem, chn)) { in sset_channels()
1356 snd_mixer_selem_get_playback_switch(elem, chn, &ival); in sset_channels()
1357 … if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "mute", 1, ival)) >= 0) in sset_channels()
1360 snd_mixer_selem_get_playback_switch(elem, chn, &ival); in sset_channels()
1361 if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "off", 1, ival)) >= 0) in sset_channels()
1364 snd_mixer_selem_get_playback_switch(elem, chn, &ival); in sset_channels()
1365 … if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "unmute", 0, ival)) >= 0) in sset_channels()
1368 snd_mixer_selem_get_playback_switch(elem, chn, &ival); in sset_channels()
1369 if (snd_mixer_selem_set_playback_switch(elem, chn, get_bool_simple(&ptr, "on", 0, ival)) >= 0) in sset_channels()
1373 snd_mixer_selem_get_playback_switch(elem, chn, &ival); in sset_channels()
1374 if (snd_mixer_selem_set_playback_switch(elem, chn, (ival ? 1 : 0) ^ 1) >= 0) in sset_channels()
1379 if (set_volume_simple(elem, chn, &ptr, 0) >= 0) in sset_channels()
1388 if ((dir & 2) && snd_mixer_selem_has_capture_channel(elem, chn)) { in sset_channels()
1393 snd_mixer_selem_get_capture_switch(elem, chn, &ival); in sset_channels()
1394 if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "cap", 0, ival)) >= 0) in sset_channels()
1397 snd_mixer_selem_get_capture_switch(elem, chn, &ival); in sset_channels()
1398 if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "rec", 0, ival)) >= 0) in sset_channels()
1401 snd_mixer_selem_get_capture_switch(elem, chn, &ival); in sset_channels()
1402 … if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "nocap", 1, ival)) >= 0) in sset_channels()
1405 snd_mixer_selem_get_capture_switch(elem, chn, &ival); in sset_channels()
1406 … if (snd_mixer_selem_set_capture_switch(elem, chn, get_bool_simple(&ptr, "norec", 1, ival)) >= 0) in sset_channels()
1410 snd_mixer_selem_get_capture_switch(elem, chn, &ival); in sset_channels()
1411 if (snd_mixer_selem_set_capture_switch(elem, chn, (ival ? 1 : 0) ^ 1) >= 0) in sset_channels()
1416 if (set_volume_simple(elem, chn, &ptr, 1) >= 0) in sset_channels()