Lines Matching refs:channel

214  * \brief Return name of mixer simple element channel
215 * \param channel mixer simple element channel identifier
216 * \return channel name
218 const char *snd_mixer_selem_channel_name(snd_mixer_selem_channel_id_t channel)
232 assert(channel <= SND_MIXER_SCHN_LAST);
233 p = array[channel];
264 * \param channel Mixer simple element channel identifier
265 * \return 0 if channel is not present, 1 if present
267 int snd_mixer_selem_has_playback_channel(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel)
270 return sm_selem_ops(elem)->is(elem, SM_PLAY, SM_OPS_IS_CHANNEL, (int)channel);
330 * \return 0 if control is separated per channel, 1 if control acts on all channels together
352 * \return 0 if control is separated per channel, 1 if control acts on all channels together
393 * \param channel mixer simple element channel identifier
397 int snd_mixer_selem_get_playback_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long *value)
400 CHECK_DIR_CHN(elem, SM_CAP_PVOLUME, SM_CAP_PVOLUME_JOIN, channel);
401 return sm_selem_ops(elem)->get_volume(elem, SM_PLAY, channel, value);
407 * \param channel mixer simple element channel identifier
411 int snd_mixer_selem_get_playback_dB(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long *value)
420 channel = 0;
421 return sm_selem_ops(elem)->get_dB(elem, SM_PLAY, channel, value);
427 * \param channel mixer simple element channel identifier
431 int snd_mixer_selem_get_playback_switch(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, int *value)
434 CHECK_DIR_CHN(elem, SM_CAP_PSWITCH, SM_CAP_PSWITCH_JOIN, channel);
435 return sm_selem_ops(elem)->get_switch(elem, SM_PLAY, channel, value);
441 * \param channel mixer simple element channel identifier
445 int snd_mixer_selem_set_playback_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long value)
448 CHECK_DIR_CHN(elem, SM_CAP_PVOLUME, SM_CAP_PVOLUME_JOIN, channel);
449 return sm_selem_ops(elem)->set_volume(elem, SM_PLAY, channel, value);
455 * \param channel mixer simple element channel identifier
461 int snd_mixer_selem_set_playback_dB(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long value, int dir)
464 CHECK_DIR_CHN(elem, SM_CAP_PVOLUME, SM_CAP_PVOLUME_JOIN, channel);
465 return sm_selem_ops(elem)->set_dB(elem, SM_PLAY, channel, value, dir);
519 * \param channel mixer simple element channel identifier
523 int snd_mixer_selem_set_playback_switch(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, int value)
526 CHECK_DIR_CHN(elem, SM_CAP_PSWITCH, SM_CAP_PSWITCH_JOIN, channel);
527 return sm_selem_ops(elem)->set_switch(elem, SM_PLAY, channel, value);
569 * \param channel Mixer simple element channel identifier
570 * \return 0 if channel is not present, 1 if present
572 int snd_mixer_selem_has_capture_channel(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel)
576 return sm_selem_ops(elem)->is(elem, SM_CAPT, SM_OPS_IS_CHANNEL, channel);
636 * \return 0 if control is separated per channel, 1 if control acts on all channels together
658 * \return 0 if control is separated per channel, 1 if control acts on all channels together
725 * \param channel mixer simple element channel identifier
729 int snd_mixer_selem_get_capture_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long *value)
732 CHECK_DIR_CHN(elem, SM_CAP_CVOLUME, SM_CAP_CVOLUME_JOIN, channel);
733 return sm_selem_ops(elem)->get_volume(elem, SM_CAPT, channel, value);
739 * \param channel mixer simple element channel identifier
743 int snd_mixer_selem_get_capture_dB(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long *value)
746 CHECK_DIR_CHN(elem, SM_CAP_CVOLUME, SM_CAP_CVOLUME_JOIN, channel);
747 return sm_selem_ops(elem)->get_dB(elem, SM_CAPT, channel, value);
753 * \param channel mixer simple element channel identifier
757 int snd_mixer_selem_get_capture_switch(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, int *value)
760 CHECK_DIR_CHN(elem, SM_CAP_CSWITCH, SM_CAP_CSWITCH_JOIN, channel);
761 return sm_selem_ops(elem)->get_switch(elem, SM_CAPT, channel, value);
767 * \param channel mixer simple element channel identifier
771 int snd_mixer_selem_set_capture_volume(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long value)
774 CHECK_DIR_CHN(elem, SM_CAP_CVOLUME, SM_CAP_CVOLUME_JOIN, channel);
775 return sm_selem_ops(elem)->set_volume(elem, SM_CAPT, channel, value);
781 * \param channel mixer simple element channel identifier
787 int snd_mixer_selem_set_capture_dB(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, long value, int dir)
790 CHECK_DIR_CHN(elem, SM_CAP_CVOLUME, SM_CAP_CVOLUME_JOIN, channel);
791 return sm_selem_ops(elem)->set_dB(elem, SM_CAPT, channel, value, dir);
845 * \param channel mixer simple element channel identifier
849 int snd_mixer_selem_set_capture_switch(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t channel, int value)
852 CHECK_DIR_CHN(elem, SM_CAP_CSWITCH, SM_CAP_CSWITCH_JOIN, channel);
853 return sm_selem_ops(elem)->set_switch(elem, SM_CAPT, channel, value);
944 * \param channel mixer simple element channel identifier
949 snd_mixer_selem_channel_id_t channel,
954 return sm_selem_ops(elem)->get_enum_item(elem, channel, itemp);
960 * \param channel mixer simple element channel identifier
965 snd_mixer_selem_channel_id_t channel,
970 return sm_selem_ops(elem)->set_enum_item(elem, channel, item);