Home
last modified time | relevance | path

Searched refs:mixer (Results 1 – 25 of 78) sorted by relevance

1234

/external/tinyalsa_new/src/
Dmixer.c70 struct mixer *mixer; member
95 struct mixer { struct
123 static void mixer_grp_close(struct mixer *mixer, struct mixer_ctl_group *grp) in mixer_grp_close() argument
138 mixer->is_card_info_retrieved = false; in mixer_grp_close()
145 void mixer_close(struct mixer *mixer) in mixer_close() argument
147 if (!mixer) in mixer_close()
150 if (mixer->fd >= 0 && mixer->h_grp) in mixer_close()
151 mixer->h_grp->ops->close(mixer->h_grp->data); in mixer_close()
152 mixer_grp_close(mixer, mixer->h_grp); in mixer_close()
155 if (mixer->v_grp) in mixer_close()
[all …]
DMakefile18 OBJECTS = limits.o mixer.o pcm.o pcm_plugin.o pcm_hw.o snd_card_plugin.o mixer_plugin.o mixer_hw.o
34 mixer.o: mixer.c mixer.h mixer_io.h plugin.h
/external/tinyalsa_new/include/tinyalsa/
Dmixer.h45 struct mixer;
88 struct mixer *mixer_open(unsigned int card);
90 void mixer_close(struct mixer *mixer);
92 int mixer_add_new_ctls(struct mixer *mixer);
94 const char *mixer_get_name(const struct mixer *mixer);
96 unsigned int mixer_get_num_ctls(const struct mixer *mixer);
98 unsigned int mixer_get_num_ctls_by_name(const struct mixer *mixer, const char *name);
100 const struct mixer_ctl *mixer_get_ctl_const(const struct mixer *mixer, unsigned int id);
102 struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id);
104 struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name);
[all …]
/external/tinyalsa/
Dmixer.c73 struct mixer { struct
115 void mixer_close(struct mixer *mixer) in mixer_close() argument
117 if (!mixer) in mixer_close()
120 if (mixer->fd >= 0 && mixer->hw_grp) in mixer_close()
121 mixer->hw_grp->ops->close(mixer->hw_grp->data); in mixer_close()
122 mixer_grp_close(mixer->hw_grp); in mixer_close()
124 if (mixer->virt_grp) in mixer_close()
125 mixer->virt_grp->ops->close(mixer->virt_grp->data); in mixer_close()
126 mixer_grp_close(mixer->virt_grp); in mixer_close()
128 free(mixer); in mixer_close()
[all …]
Dtinymix.c38 static void tinymix_list_controls(struct mixer *mixer);
39 static int tinymix_detail_control(struct mixer *mixer, const char *control,
41 static int tinymix_set_value(struct mixer *mixer, const char *control,
73 struct mixer *mixer; in main() local
108 mixer = mixer_open(card); in main()
109 if (!mixer) { in main()
115 printf("Mixer name: '%s'\n", mixer_get_name(mixer)); in main()
116 tinymix_list_controls(mixer); in main()
118 ret = tinymix_detail_control(mixer, argv[optind], !g_value_only, !g_value_only); in main()
120 ret = tinymix_set_value(mixer, argv[optind], &argv[optind + 1], argc - optind - 1); in main()
[all …]
/external/webrtc/modules/audio_mixer/
Daudio_mixer_impl_unittest.cc126 const auto mixer = AudioMixerImpl::Create(); in MixAndCompare() local
135 EXPECT_TRUE(mixer->AddSource(&participants[i])); in MixAndCompare()
140 mixer->Mix(1, &frame_for_mixing); in MixAndCompare()
144 mixer->GetAudioSourceMixabilityStatusForTest(&participants[i])) in MixAndCompare()
151 rtc::scoped_refptr<AudioMixer> mixer, in MixMonoAtGivenNativeRate() argument
158 mixer->Mix(1, mix_frame); in MixMonoAtGivenNativeRate()
165 const auto mixer = AudioMixerImpl::Create(); in TEST() local
176 EXPECT_TRUE(mixer->AddSource(&participants[i])); in TEST()
186 mixer->Mix(1, // number of channels in TEST()
191 mixer->GetAudioSourceMixabilityStatusForTest(&participants[i]); in TEST()
[all …]
/external/tinyalsa_new/utils/
Dtinymix.c40 static void list_controls(struct mixer *mixer, int print_all);
43 static void print_control_values_by_name_or_id(struct mixer *mixer, const char *name_or_id);
45 static int set_values(struct mixer *mixer, const char *control,
134 struct mixer *mixer = mixer_open(card); in main() local
135 if (!mixer) { in main()
143 mixer_close(mixer); in main()
151 mixer_close(mixer); in main()
154 print_control_values_by_name_or_id(mixer, argv[command_position + 1]); in main()
159 mixer_close(mixer); in main()
164 mixer_close(mixer); in main()
[all …]
DMakefile26 tinyplay.o: tinyplay.c pcm.h mixer.h asoundlib.h optparse.h
30 tinycap.o: tinycap.c pcm.h mixer.h asoundlib.h optparse.h
34 tinymix.o: tinymix.c pcm.h mixer.h asoundlib.h optparse.h
38 tinypcminfo.o: tinypcminfo.c pcm.h mixer.h asoundlib.h optparse.h
/external/tinyalsa/include/tinyalsa/
Dasoundlib.h297 struct mixer;
301 struct mixer *mixer_open(unsigned int card);
302 void mixer_close(struct mixer *mixer);
305 const char *mixer_get_name(struct mixer *mixer);
308 unsigned int mixer_get_num_ctls(struct mixer *mixer);
309 struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id);
310 struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name);
342 int mixer_subscribe_events(struct mixer *mixer, int subscribe);
343 int mixer_wait_event(struct mixer *mixer, int timeout);
344 int mixer_consume_event(struct mixer *mixer);
[all …]
/external/crosvm/devices/src/pci/
Dac97_bus_master.rs296 pub fn update_mixer_settings(&mut self, mixer: &Ac97Mixer) { in update_mixer_settings()
299 let (muted, left_volume, _right_volume) = mixer.get_master_volume(); in update_mixer_settings()
334 pub fn readw(&mut self, offset: u64, mixer: &Ac97Mixer) -> u16 { in readw()
352 let sample_rate = self.current_sample_rate(Ac97Function::Output, mixer); in readw()
383 pub fn writeb(&mut self, offset: u64, val: u8, mixer: &Ac97Mixer) { in writeb()
394 PI_CR_0B => self.set_cr(Ac97Function::Input, val, mixer), in writeb()
399 PO_CR_1B => self.set_cr(Ac97Function::Output, val, mixer), in writeb()
404 MC_CR_2B => self.set_cr(Ac97Function::Microphone, val, mixer), in writeb()
428 pub fn writel(&mut self, offset: u64, val: u32, mixer: &mut Ac97Mixer) { in writel()
437 GLOB_CNT_2C => self.set_glob_cnt(val, mixer), in writel()
[all …]
Dac97.rs108 mixer: Ac97Mixer, field
138 mixer: Ac97Mixer::new(), in new()
212 let val: u16 = self.mixer.readw(offset); in read_mixer()
224 .mixer in write_mixer()
229 self.bus_master.update_mixer_settings(&self.mixer); in write_mixer()
236 let val: u16 = self.bus_master.readw(offset, &self.mixer); in read_bus_master()
253 1 => self.bus_master.writeb(offset, data[0], &self.mixer), in write_bus_master()
263 &mut self.mixer, in write_bus_master()
/external/webrtc/audio/utility/
Dchannel_mixer_unittest.cc170 ChannelMixer mixer(input_layout, output_layout); in TEST_F() local
176 mixer.Transform(&frame_); in TEST_F()
198 ChannelMixer mixer(input_layout, output_layout); in TEST_F() local
201 mixer.Transform(&frame_); in TEST_F()
210 ChannelMixer mixer(CHANNEL_LAYOUT_STEREO, CHANNEL_LAYOUT_MONO); in TEST_F() local
218 mixer.Transform(&frame_); in TEST_F()
229 mixer.Transform(&frame_); in TEST_F()
238 ChannelMixer mixer(CHANNEL_LAYOUT_STEREO, CHANNEL_LAYOUT_MONO); in TEST_F() local
239 mixer.Transform(&frame_); in TEST_F()
247 ChannelMixer mixer(CHANNEL_LAYOUT_5_1, CHANNEL_LAYOUT_7_1); in TEST_F() local
[all …]
/external/mesa3d/src/gallium/frontends/vdpau/
Dmixer.c47 VdpVideoMixer *mixer) in vlVdpVideoMixerCreate() argument
80 *mixer = vlAddDataHTAB(vmixer); in vlVdpVideoMixerCreate()
81 if (*mixer == 0) { in vlVdpVideoMixerCreate()
168 vlRemoveDataHTAB(*mixer); in vlVdpVideoMixerCreate()
184 vlVdpVideoMixerDestroy(VdpVideoMixer mixer) in vlVdpVideoMixerDestroy() argument
188 vmixer = vlGetDataHTAB(mixer); in vlVdpVideoMixerDestroy()
194 vlRemoveDataHTAB(mixer); in vlVdpVideoMixerDestroy()
228 VdpStatus vlVdpVideoMixerRender(VdpVideoMixer mixer, in vlVdpVideoMixerRender() argument
259 vmixer = vlGetDataHTAB(mixer); in vlVdpVideoMixerRender()
584 vlVdpVideoMixerGetFeatureSupport(VdpVideoMixer mixer, in vlVdpVideoMixerGetFeatureSupport() argument
[all …]
/external/adhd/cras/src/server/
Dcras_alsa_mixer.c81 snd_mixer_t *mixer; member
97 static void alsa_mixer_open(const char *mixdev, snd_mixer_t **mixer) in alsa_mixer_open() argument
101 *mixer = NULL; in alsa_mixer_open()
102 rc = snd_mixer_open(mixer, 0); in alsa_mixer_open()
107 rc = snd_mixer_attach(*mixer, mixdev); in alsa_mixer_open()
112 rc = snd_mixer_selem_register(*mixer, NULL, NULL); in alsa_mixer_open()
118 rc = snd_mixer_load(*mixer); in alsa_mixer_open()
126 snd_mixer_close(*mixer); in alsa_mixer_open()
127 *mixer = NULL; in alsa_mixer_open()
337 elem = snd_mixer_find_selem(cmix->mixer, sid); in mixer_control_create_by_name()
[all …]
Dcras_alsa_plugin_io.c38 struct cras_alsa_mixer *mixer; member
146 plugin->mixer = cras_alsa_mixer_create(ctl_name); in alsa_plugin_io_create()
154 rc = cras_alsa_mixer_add_controls_in_section(plugin->mixer, in alsa_plugin_io_create()
164 plugin->mixer, NULL, plugin->ucm, in alsa_plugin_io_create()
190 if (plugin->mixer) in destroy_plugin()
191 cras_alsa_mixer_destroy(plugin->mixer); in destroy_plugin()
Dcras_alsa_card.c59 struct cras_alsa_mixer *mixer; member
116 first, alsa_card->mixer, alsa_card->config, in create_iodev_for_device()
239 alsa_card->mixer, extra_controls, coupled_controls); in add_controls_and_iodevs_by_matching()
312 alsa_card->mixer, main_volume_control_names); in add_controls_and_iodevs_with_ucm()
335 rc = cras_alsa_mixer_add_controls_in_section(alsa_card->mixer, in add_controls_and_iodevs_with_ucm()
544 alsa_card->mixer = cras_alsa_mixer_create(alsa_card->name); in cras_alsa_card_create()
546 if (alsa_card->mixer == NULL) { in cras_alsa_card_create()
630 if (alsa_card->mixer) in cras_alsa_card_destroy()
631 cras_alsa_mixer_destroy(alsa_card->mixer); in cras_alsa_card_destroy()
Dcras_alsa_jack.c121 struct cras_alsa_mixer *mixer; member
556 jack_list->mixer, "Headphone"); in open_and_monitor_gpio()
560 jack_list->mixer, "HDMI"); in open_and_monitor_gpio()
569 jack_list->mixer, control_name); in open_and_monitor_gpio()
598 jack_list->mixer, section); in open_and_monitor_gpio_with_section()
601 jack_list->mixer, section); in open_and_monitor_gpio_with_section()
931 jack_list->mixer, name); in find_jack_controls()
944 jack_list->mixer, control_name); in find_jack_controls()
1022 jack_list->mixer, section); in find_hctl_jack_for_section()
1025 jack_list->mixer, section); in find_hctl_jack_for_section()
[all …]
/external/python/cpython2/Doc/library/
Dossaudiodev.rst100 Open a mixer device and return an OSS mixer device object. *device* is the
101 mixer device filename to use. If it is not specified, this module first looks
103 found, it falls back to :file:`/dev/mixer`.
340 The mixer object provides two file-like methods:
345 This method closes the open mixer device file. Any further attempts to use the
346 mixer after this file is closed will raise an :exc:`IOError`.
351 Returns the file handle number of the open mixer device file.
358 This method returns a bitmask specifying the available mixer controls ("Control"
361 mixer controls---the :const:`SOUND_MIXER_\*` constants defined at module level.
362 To determine if, for example, the current mixer object supports a PCM mixer, use
[all …]
/external/python/cpython3/Doc/library/
Dossaudiodev.rst102 Open a mixer device and return an OSS mixer device object. *device* is the
103 mixer device filename to use. If it is not specified, this module first looks
105 found, it falls back to :file:`/dev/mixer`.
355 The mixer object provides two file-like methods:
360 This method closes the open mixer device file. Any further attempts to use the
361 mixer after this file is closed will raise an :exc:`OSError`.
366 Returns the file handle number of the open mixer device file.
377 This method returns a bitmask specifying the available mixer controls ("Control"
380 mixer controls---the :const:`SOUND_MIXER_\*` constants defined at module level.
381 To determine if, for example, the current mixer object supports a PCM mixer, use
[all …]
/external/python/cpython3/Lib/test/
Dtest_ossaudiodev.py165 with ossaudiodev.openmixer() as mixer:
166 self.assertGreaterEqual(mixer.fileno(), 0)
186 mixer = ossaudiodev.openmixer()
187 mixer.close()
188 self.assertRaises(ValueError, mixer.fileno)
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/mdss/mdp_sspp_change/
Dformat11 field:u32 mixer; offset:16; size:4; signed:0;
26 …nt fmt: "pnum=%d mixer=%d play_cnt=%d flags=0x%x stage=%d format=%d img=%dx%d src=[%d,%d,%d,%d] ds…
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/mdss/mdp_sspp_set/
Dformat11 field:u32 mixer; offset:16; size:4; signed:0;
26 …nt fmt: "pnum=%d mixer=%d play_cnt=%d flags=0x%x stage=%d format=%d img=%dx%d src=[%d,%d,%d,%d] ds…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/mdss/mdp_sspp_set/
Dformat11 field:u32 mixer; offset:16; size:4; signed:0;
26 …nt fmt: "pnum=%d mixer=%d play_cnt=%d flags=0x%x stage=%d format=%d img=%dx%d src=[%d,%d,%d,%d] ds…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/mdss/mdp_sspp_change/
Dformat11 field:u32 mixer; offset:16; size:4; signed:0;
26 …nt fmt: "pnum=%d mixer=%d play_cnt=%d flags=0x%x stage=%d format=%d img=%dx%d src=[%d,%d,%d,%d] ds…
/external/tinyalsa_new/tests/src/
Dmixer_test.cc56 mixer *mixer_object = mixer_open(0); in TEST()
68 EXPECT_EQ(mixer_get_num_ctls_by_name(reinterpret_cast<const mixer *>(1), nullptr), 0); in TEST()
72 EXPECT_EQ(mixer_get_ctl_by_name(reinterpret_cast<mixer *>(1), nullptr), nullptr); in TEST()
75 mixer_get_ctl_by_name_and_index(reinterpret_cast<mixer *>(1), nullptr, 0), in TEST()
107 EXPECT_EQ(mixer_read_event(reinterpret_cast<mixer *>(1), nullptr), -EINVAL); in TEST()
126 mixer *mixer_object;

1234