Home
last modified time | relevance | path

Searched refs:snd_mixer_elem_t (Results 1 – 25 of 27) sorted by relevance

12

/third_party/alsa-lib/include/
Dmixer.h46 typedef struct _snd_mixer_elem snd_mixer_elem_t; typedef
57 snd_mixer_elem_t *elem);
65 typedef int (*snd_mixer_elem_callback_t)(snd_mixer_elem_t *elem,
74 typedef int (*snd_mixer_compare_t)(const snd_mixer_elem_t *e1,
75 const snd_mixer_elem_t *e2);
86 snd_hctl_elem_t *helem, snd_mixer_elem_t *melem);
98 snd_mixer_elem_t *snd_mixer_first_elem(snd_mixer_t *mixer);
99 snd_mixer_elem_t *snd_mixer_last_elem(snd_mixer_t *mixer);
119 snd_mixer_elem_t *snd_mixer_elem_next(snd_mixer_elem_t *elem);
120 snd_mixer_elem_t *snd_mixer_elem_prev(snd_mixer_elem_t *elem);
[all …]
Dmixer_abst.h81 int (*is)(snd_mixer_elem_t *elem, int dir, int cmd, int val);
82 int (*get_range)(snd_mixer_elem_t *elem, int dir, long *min, long *max);
83 int (*set_range)(snd_mixer_elem_t *elem, int dir, long min, long max);
84 int (*get_dB_range)(snd_mixer_elem_t *elem, int dir, long *min, long *max);
85 int (*ask_vol_dB)(snd_mixer_elem_t *elem, int dir, long value, long *dbValue);
86 int (*ask_dB_vol)(snd_mixer_elem_t *elem, int dir, long dbValue, long *value, int xdir);
87 …int (*get_volume)(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long *val…
88 int (*get_dB)(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long *value);
89 …int (*set_volume)(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long valu…
90 …int (*set_dB)(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long value, i…
[all …]
/third_party/alsa-lib/src/mixer/
Dsimple.c116 int snd_mixer_selem_compare(const snd_mixer_elem_t *c1, const snd_mixer_elem_t *c2) in snd_mixer_selem_compare()
133 snd_mixer_elem_t *snd_mixer_find_selem(snd_mixer_t *mixer, in snd_mixer_find_selem()
137 snd_mixer_elem_t *e; in snd_mixer_find_selem()
141 e = list_entry(list, snd_mixer_elem_t, list); in snd_mixer_find_selem()
156 void snd_mixer_selem_get_id(snd_mixer_elem_t *elem, in snd_mixer_selem_get_id()
171 const char *snd_mixer_selem_get_name(snd_mixer_elem_t *elem) in snd_mixer_selem_get_name()
184 unsigned int snd_mixer_selem_get_index(snd_mixer_elem_t *elem) in snd_mixer_selem_get_index()
197 int snd_mixer_selem_has_common_volume(snd_mixer_elem_t *elem) in snd_mixer_selem_has_common_volume()
208 int snd_mixer_selem_has_common_switch(snd_mixer_elem_t *elem) in snd_mixer_selem_has_common_switch()
245 int snd_mixer_selem_is_active(snd_mixer_elem_t *elem) in snd_mixer_selem_is_active()
[all …]
Dmixer.c58 static int snd_mixer_compare_default(const snd_mixer_elem_t *c1,
59 const snd_mixer_elem_t *c2);
91 int snd_mixer_elem_attach(snd_mixer_elem_t *melem, in snd_mixer_elem_attach()
110 int snd_mixer_elem_detach(snd_mixer_elem_t *melem, in snd_mixer_elem_detach()
129 int snd_mixer_elem_empty(snd_mixer_elem_t *melem) in snd_mixer_elem_empty()
143 snd_mixer_elem_t *melem = bag_iterator_entry(i); in hctl_elem_event_handler()
157 snd_mixer_elem_t *melem = bag_iterator_entry(i); in hctl_elem_event_handler()
311 snd_mixer_elem_t *elem) in snd_mixer_throw_event()
319 static int snd_mixer_elem_throw_event(snd_mixer_elem_t *elem, unsigned int mask) in snd_mixer_elem_throw_event()
327 static int _snd_mixer_find_elem(snd_mixer_t *mixer, snd_mixer_elem_t *elem, int *dir) in _snd_mixer_find_elem()
[all …]
Dsimple_none.c319 static int selem_read(snd_mixer_elem_t *elem) in selem_read()
559 static int selem_write_main(snd_mixer_elem_t *elem) in selem_write_main()
650 static int selem_write(snd_mixer_elem_t *elem) in selem_write()
660 static void selem_free(snd_mixer_elem_t *elem) in selem_free()
672 static int simple_update(snd_mixer_elem_t *melem) in simple_update()
966 static int _snd_mixer_selem_set_volume(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_… in _snd_mixer_selem_set_volume()
985 static int _snd_mixer_selem_set_switch(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_… in _snd_mixer_selem_set_switch()
1007 static int is_ops(snd_mixer_elem_t *elem, int dir, int cmd, int val) in is_ops()
1062 static int get_range_ops(snd_mixer_elem_t *elem, int dir, in get_range_ops()
1071 static int set_range_ops(snd_mixer_elem_t *elem, int dir, in set_range_ops()
[all …]
Dmixer_local.h59 void (*private_free)(snd_mixer_elem_t *elem);
70 snd_mixer_elem_t **pelems; /* array of all elems */
/third_party/alsa-utils/amixer/
Dvolume_mapping.c58 static int (* const get_dB_range[2])(snd_mixer_elem_t *, long *, long *) = {
62 static int (* const get_raw_range[2])(snd_mixer_elem_t *, long *, long *) = {
66 static int (* const get_dB[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long *) = {
70 static int (* const get_raw[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long *) = {
74 static int (* const set_dB[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long, int) = {
78 static int (* const set_raw[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long) = {
83 static double get_normalized_volume(snd_mixer_elem_t *elem, in get_normalized_volume()
120 static int set_normalized_volume(snd_mixer_elem_t *elem, in set_normalized_volume()
153 double get_normalized_playback_volume(snd_mixer_elem_t *elem, in get_normalized_playback_volume()
159 double get_normalized_capture_volume(snd_mixer_elem_t *elem, in get_normalized_capture_volume()
[all …]
Dvolume_mapping.h6 double get_normalized_playback_volume(snd_mixer_elem_t *elem,
8 double get_normalized_capture_volume(snd_mixer_elem_t *elem,
10 int set_normalized_playback_volume(snd_mixer_elem_t *elem,
14 int set_normalized_capture_volume(snd_mixer_elem_t *elem,
Damixer.c216 int (*get_range)(snd_mixer_elem_t *elem, long *min, long *max);
217 int (*get)(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t c,
219 int (*set)(snd_mixer_elem_t *elem, snd_mixer_selem_channel_id_t c,
226 int (*has_volume)(snd_mixer_elem_t *elem);
230 static int set_playback_dB(snd_mixer_elem_t *elem, in set_playback_dB()
236 static int set_capture_dB(snd_mixer_elem_t *elem, in set_capture_dB()
242 static int set_playback_raw_volume(snd_mixer_elem_t *elem, in set_playback_raw_volume()
249 static int set_capture_raw_volume(snd_mixer_elem_t *elem, in set_capture_raw_volume()
259 static int get_mapped_volume_range(snd_mixer_elem_t *elem, in get_mapped_volume_range()
267 static int get_playback_mapped_volume(snd_mixer_elem_t *elem, in get_playback_mapped_volume()
[all …]
/third_party/alsa-utils/alsamixer/
Dvolume_mapping.c58 static int (* const get_dB_range[2])(snd_mixer_elem_t *, long *, long *) = {
62 static int (* const get_raw_range[2])(snd_mixer_elem_t *, long *, long *) = {
66 static int (* const get_dB[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long *) = {
70 static int (* const get_raw[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long *) = {
74 static int (* const set_dB[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long, int) = {
78 static int (* const set_raw[2])(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long) = {
83 static double get_normalized_volume(snd_mixer_elem_t *elem, in get_normalized_volume()
120 static int set_normalized_volume(snd_mixer_elem_t *elem, in set_normalized_volume()
153 double get_normalized_playback_volume(snd_mixer_elem_t *elem, in get_normalized_playback_volume()
159 double get_normalized_capture_volume(snd_mixer_elem_t *elem, in get_normalized_capture_volume()
[all …]
Dvolume_mapping.h6 double get_normalized_playback_volume(snd_mixer_elem_t *elem,
8 double get_normalized_capture_volume(snd_mixer_elem_t *elem,
10 int set_normalized_playback_volume(snd_mixer_elem_t *elem,
14 int set_normalized_capture_volume(snd_mixer_elem_t *elem,
Dmixer_controls.c58 snd_mixer_elem_t *elem; in are_there_any_controls()
81 static bool has_more_than_front_capture_channels(snd_mixer_elem_t *elem) in has_more_than_front_capture_channels()
91 static bool has_any_control_channel(snd_mixer_elem_t *elem, in has_any_control_channel()
93 int (*has_channel)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t)) in has_any_control_channel() argument
99 static bool has_merged_cswitch(snd_mixer_elem_t *elem) in has_merged_cswitch()
125 static unsigned int get_playback_controls_count(snd_mixer_elem_t *elem) in get_playback_controls_count()
147 static unsigned int get_capture_controls_count(snd_mixer_elem_t *elem) in get_capture_controls_count()
170 static unsigned int get_controls_count_for_elem(snd_mixer_elem_t *elem) in get_controls_count_for_elem()
215 static unsigned int create_controls_for_elem(snd_mixer_elem_t *elem, struct control *control) in create_controls_for_elem()
460 snd_mixer_elem_t *elem; in search_for_focus_control()
[all …]
Dmixer_widget.c61 static int elem_callback(snd_mixer_elem_t *elem, unsigned int mask) in elem_callback()
76 static int mixer_callback(snd_mixer_t *mixer, unsigned int mask, snd_mixer_elem_t *elem) in mixer_callback()
306 int (*set_func)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, double, int); in change_volume_to_percent()
331 double (*get_func)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t); in change_volume_relative()
332 int (*set_func)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, double, int); in change_volume_relative()
392 int (*get_func)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, int *); in toggle_switches()
393 int (*set_func)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, int); in toggle_switches()
Dmixer_controls.h7 snd_mixer_elem_t *elem;
Dmixer_display.c271 int (*get_vol_func)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t, long *); in display_focus_item_info()
453 double (*get_vol_func)(snd_mixer_elem_t *, snd_mixer_selem_channel_id_t); in display_control()
/third_party/alsa-lib/modules/mixer/simple/
Dsbase.c37 static int selem_read(snd_mixer_elem_t *elem);
112 static int is_ops(snd_mixer_elem_t *elem, int dir, int cmd, int val) in is_ops()
154 static int get_range_ops(snd_mixer_elem_t *elem, int dir, in get_range_ops()
165 static int get_dB_range_ops(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, in get_dB_range_ops()
173 static int set_range_ops(snd_mixer_elem_t *elem, int dir, in set_range_ops()
188 static int get_volume_ops(snd_mixer_elem_t *elem, int dir, in get_volume_ops()
197 static int get_dB_ops(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, in get_dB_ops()
205 static int get_switch_ops(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, in get_switch_ops()
215 static int set_volume_ops(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, in set_volume_ops()
224 static int set_dB_ops(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, in set_dB_ops()
[all …]
Dpython.c46 snd_mixer_elem_t *melem;
109 static struct pymelem *melem_to_pymelem(snd_mixer_elem_t *elem) in melem_to_pymelem()
165 static int is_ops(snd_mixer_elem_t *elem, int dir, int cmd, int val) in is_ops()
193 static int get_x_range_ops(snd_mixer_elem_t *elem, int dir, in get_x_range_ops()
227 static int get_range_ops(snd_mixer_elem_t *elem, int dir, in get_range_ops()
233 static int set_range_ops(snd_mixer_elem_t *elem, int dir, in set_range_ops()
246 static int get_x_ops(snd_mixer_elem_t *elem, int dir, in get_x_ops()
279 static int get_volume_ops(snd_mixer_elem_t *elem, int dir, in get_volume_ops()
285 static int get_switch_ops(snd_mixer_elem_t *elem, int dir, in get_switch_ops()
295 static int ask_vol_dB_ops(snd_mixer_elem_t *elem, in ask_vol_dB_ops()
[all …]
Dac97.c68 snd_hctl_elem_t *helem, snd_mixer_elem_t *melem) in alsa_mixer_simple_event()
Dhda.c69 snd_hctl_elem_t *helem, snd_mixer_elem_t *melem) in alsa_mixer_simple_event()
Dsbase.h92 snd_hctl_elem_t *helem, snd_mixer_elem_t *melem);
/third_party/pulseaudio/src/modules/alsa/
Dalsa-util.h151 snd_mixer_elem_t *pa_alsa_mixer_find_card(snd_mixer_t *mixer, struct pa_alsa_mixer_id *alsa_id, uns…
152 snd_mixer_elem_t *pa_alsa_mixer_find_pcm(snd_mixer_t *mixer, const char *name, unsigned int device);
Dalsa-util.c1613 static snd_mixer_elem_t *pa_alsa_mixer_find(snd_mixer_t *mixer, in pa_alsa_mixer_find()
1618 snd_mixer_elem_t *elem; in pa_alsa_mixer_find()
1638 snd_mixer_elem_t *pa_alsa_mixer_find_card(snd_mixer_t *mixer, struct pa_alsa_mixer_id *alsa_id, uns… in pa_alsa_mixer_find_card()
1642 snd_mixer_elem_t *pa_alsa_mixer_find_pcm(snd_mixer_t *mixer, const char *name, unsigned int device)… in pa_alsa_mixer_find_pcm()
1646 static int mixer_class_compare(const snd_mixer_elem_t *c1, const snd_mixer_elem_t *c2) in mixer_class_compare()
1653 snd_hctl_elem_t *helem, snd_mixer_elem_t *melem) in mixer_class_event()
1660 snd_mixer_elem_t *new_melem; in mixer_class_event()
Dalsa-mixer.c56 static inline int vgfix_get_capture_dB(snd_mixer_elem_t *a, snd_mixer_selem_channel_id_t b, long *c… in vgfix_get_capture_dB()
62 static inline int vgfix_get_playback_dB(snd_mixer_elem_t *a, snd_mixer_selem_channel_id_t b, long *… in vgfix_get_playback_dB()
68 static inline int vgfix_ask_capture_vol_dB(snd_mixer_elem_t *a, long b, long *c) { in vgfix_ask_capture_vol_dB()
74 static inline int vgfix_ask_playback_vol_dB(snd_mixer_elem_t *a, long b, long *c) { in vgfix_ask_playback_vol_dB()
80 static inline int vgfix_get_capture_dB_range(snd_mixer_elem_t *a, long *b, long *c) { in vgfix_get_capture_dB_range()
87 static inline int vgfix_get_playback_dB_range(snd_mixer_elem_t *a, long *b, long *c) { in vgfix_get_playback_dB_range()
826 snd_mixer_elem_t *me; in element_get_volume()
1000 snd_mixer_elem_t *me; in element_get_switch()
1111 static int element_get_nearest_alsa_dB(snd_mixer_elem_t *me, snd_mixer_selem_channel_id_t c, pa_als… in element_get_nearest_alsa_dB()
1162 snd_mixer_elem_t *me; in element_set_volume()
[all …]
Dmodule-alsa-card.c363 static int report_jack_state(snd_mixer_elem_t *melem, unsigned int mask) { in report_jack_state()
537 static int hdmi_eld_changed(snd_mixer_elem_t *melem, unsigned int mask) { in hdmi_eld_changed()
582 snd_mixer_elem_t* melem; in init_eld_ctls()
Dalsa-mixer.h188 snd_mixer_elem_t *melem; /* Jack detection handle */

12