Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 25 of 64) sorted by relevance

123

/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/
A Dpcm_generic.c44 err = snd_pcm_close(generic->slave); in snd_pcm_generic_close()
53 return snd_pcm_hw_free(generic->slave); in snd_pcm_generic_hw_free()
81 return snd_pcm_prepare(generic->slave); in snd_pcm_generic_prepare()
136 return snd_pcm_get_chmap(generic->slave); in snd_pcm_generic_get_chmap()
150 return snd_pcm_state(generic->slave); in snd_pcm_generic_state()
157 return snd_pcm_hwsync(generic->slave); in snd_pcm_generic_hwsync()
164 return snd_pcm_reset(generic->slave); in snd_pcm_generic_reset()
171 return snd_pcm_start(generic->slave); in snd_pcm_generic_start()
178 return snd_pcm_drop(generic->slave); in snd_pcm_generic_drop()
185 return snd_pcm_drain(generic->slave); in snd_pcm_generic_drain()
[all …]
A Dpcm_plug.c195 if (plug->gen.slave != slave) { in snd_pcm_plug_clear()
199 plug->gen.slave = slave; in snd_pcm_plug_clear()
230 plug->gen.slave, plug->gen.slave != plug->req_slave); in snd_pcm_plug_change_rate()
398 err = f(new, NULL, slv->format, plug->gen.slave, plug->gen.slave != plug->req_slave); in snd_pcm_plug_change_format()
414 err = snd_pcm_copy_open(new, NULL, plug->gen.slave, plug->gen.slave != plug->req_slave); in snd_pcm_plug_change_access()
760 ret = slave->ops->hw_refine(slave->op_arg, params); in snd_pcm_plug_hw_refine()
880 slave = plug->gen.slave;
957 slave = plug->gen.slave; in snd_pcm_plug_hw_params()
977 snd_pcm_t *slave = plug->gen.slave; in snd_pcm_plug_hw_free() local
1029 plug->gen.slave = plug->req_slave = slave; in snd_pcm_plug_open()
[all …]
A Dpcm_plugin_generic.c111 err = snd_pcm_prepare(plugin->gen.slave); in snd_pcm_plugin_prepare()
130 err = snd_pcm_reset(plugin->gen.slave); in snd_pcm_plugin_reset()
149 snd_pcm_t *slave = plugin->gen.slave; in snd_pcm_plugin_write_areas() local
209 snd_pcm_t *slave = plugin->gen.slave; in snd_pcm_plugin_read_areas() local
286 snd_pcm_t *slave = plugin->gen.slave; in snd_pcm_plugin_avail_update() local
291 slave_size = snd_pcm_avail_update(slave); in snd_pcm_plugin_avail_update()
296 *pcm->hw.ptr = *slave->hw.ptr; in snd_pcm_plugin_avail_update()
368 snd_pcm_t *slave = plugin->gen.slave; in snd_pcm_plugin_mmap_commit() local
380 slave_size = snd_pcm_avail_update(slave); in snd_pcm_plugin_mmap_commit()
460 snd_pcm_t *slave = plugin->gen.slave; in snd_pcm_plugin_may_wait_for_avail_min() local
[all …]
A Dpcm_rate.c260 snd_pcm_t *slave = rate->gen.slave; in snd_pcm_rate_hw_params() local
278 err = snd_pcm_hw_params_set_rate(slave, slave_params, slave->rate, NULL); in snd_pcm_rate_hw_params()
344 cinfo->buffer_size = _muldiv32(slave->buffer_size, cinfo->rate, slave->rate); in snd_pcm_rate_hw_params()
366 sinfo->rate = slave->rate; in snd_pcm_rate_hw_params()
451 snd_pcm_t *slave = rate->gen.slave; in recalc() local
469 snd_pcm_t *slave = rate->gen.slave; in snd_pcm_rate_sw_params() local
1205 snd_pcm_t *slave = rate->gen.slave; in snd_pcm_rate_sync_playback_area() local
1270 snd_pcm_t *slave = rate->gen.slave; in snd_pcm_rate_avail_update() local
1554 assert(pcmp && slave); in snd_pcm_rate_open()
1563 rate->gen.slave = slave; in snd_pcm_rate_open()
[all …]
A Dpcm_file.c303 int err = snd_pcm_drop(file->gen.slave); in snd_pcm_file_drop()
398 snd_pcm_t *slave = file->gen.slave; in snd_pcm_file_hw_params() local
403 file->buffer_bytes = snd_pcm_frames_to_bytes(slave, slave->buffer_size); in snd_pcm_file_hw_params()
425 a->step = slave->frame_bits; in snd_pcm_file_hw_params()
441 snd_pcm_t *spcm = file->gen.slave; in snd_pcm_file_wait()
467 snd_pcm_dump(file->gen.slave); in snd_pcm_file_dump()
636 file->gen.slave = slave; in snd_pcm_file_open()
639 err = snd_pcm_new(&pcm, SND_PCM_TYPE_FILE, name, slave->stream, slave->mode); in snd_pcm_file_open()
648 snd_pcm_link_hw_ptr(pcm, slave); in snd_pcm_file_open()
649 snd_pcm_link_appl_ptr(pcm, slave); in snd_pcm_file_open()
[all …]
A Dalsa_config.c56 .slave = {
70 .slave = {
85 .slave = {
98 .slave = {
112 .slave = { \
130 .slave = {
143 .slave = {
159 .slave = {
171 .slave = {
181 .slave = {
A Dpcm_multi.c66 if (slave->close_slave) { in snd_pcm_multi_close()
101 snd_pcm_t *slave;
108 if (slave == slave_0)
301 …err = snd_pcm_areas_silence(slave->running_areas, 0, slave->channels, slave->buffer_size, slave->f… in snd_pcm_multi_hw_params_slave()
304 if (slave->stopped_areas) { in snd_pcm_multi_hw_params_slave()
305 …err = snd_pcm_areas_silence(slave->stopped_areas, 0, slave->channels, slave->buffer_size, slave->f… in snd_pcm_multi_hw_params_slave()
400 return snd_pcm_state(slave); in snd_pcm_multi_state()
725 snd_pcm_t *slave; in snd_pcm_multi_mmap_commit() local
766 snd_pcm_t *slave; in snd_pcm_multi_mmap() local
785 return snd_pcm_may_wait_for_avail_min(slave, snd_pcm_mmap_avail(slave)); in snd_pcm_multi_may_wait_for_avail_min()
[all …]
A Dpcm_linear.c251 snd_pcm_t *slave = linear->plug.gen.slave; in snd_pcm_linear_hw_refine() local
255 ret = slave->ops->hw_refine(slave->op_arg, params); in snd_pcm_linear_hw_refine()
265 snd_pcm_t *slave = linear->plug.gen.slave; in snd_pcm_linear_hw_params() local
273 snd_pcm_hw_params_set_format(slave, slave_params, linear->sformat); in snd_pcm_linear_hw_params()
275 err = _snd_pcm_hw_params_internal(slave, slave_params); in snd_pcm_linear_hw_params()
316 snd_pcm_dump_setup(linear->plug.gen.slave); in snd_pcm_linear_dump()
337 …en(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) in snd_pcm_linear_open() argument
344 assert(pcmp && slave); in snd_pcm_linear_open()
356 linear->plug.gen.slave = slave; in snd_pcm_linear_open()
360 err = snd_pcm_new(&pcm, SND_PCM_TYPE_LINEAR, name, slave->stream, slave->mode); in snd_pcm_linear_open()
A Dpcm_route.c437 snd_pcm_t *slave = route->plug.gen.slave; in snd_pcm_route_write_areas() local
443 slave->channels, in snd_pcm_route_write_areas()
459 snd_pcm_t *slave = route->plug.gen.slave; in snd_pcm_route_read_areas() local
464 slave->channels, in snd_pcm_route_read_areas()
686 snd_pcm_t *slave = route->plug.gen.slave; in snd_pcm_route_hw_refine()
690 ret = slave->ops->hw_refine(slave->op_arg, params); in snd_pcm_route_hw_refine()
709 snd_pcm_t *slave = route->plug.gen.slave; in snd_pcm_route_hw_params() local
772 dst_format = slave->format; in snd_pcm_route_hw_params()
774 src_format = slave->format; in snd_pcm_route_hw_params()
1012 route->plug.gen.slave = slave; in snd_pcm_route_open()
[all …]
A Dpcm_extplug.c310 snd_pcm_close(ext->plug.gen.slave); in snd_pcm_extplug_close()
420 snd_pcm_t *slave = ext->plug.gen.slave; in snd_pcm_extplug_hw_refine()
426 ret = snd_pcm_hw_refine(slave, params); in snd_pcm_extplug_hw_refine()
446 snd_pcm_t *slave = ext->plug.gen.slave; in snd_pcm_extplug_hw_params() local
459 ext->data->slave_format = slave->format; in snd_pcm_extplug_hw_params()
460 ext->data->slave_channels = slave->channels; in snd_pcm_extplug_hw_params()
461 ext->data->rate = slave->rate; in snd_pcm_extplug_hw_params()
478 snd_pcm_hw_free(ext->plug.gen.slave); in snd_pcm_extplug_hw_free()
502 snd_pcm_dump(ext->plug.gen.slave); in snd_pcm_extplug_dump()
558 ext->plug.gen.slave = spcm; in snd_pcm_extplug_create()
A Dpcm_softvol.c396 snd_pcm_close(svol->plug.gen.slave); in softvol_free()
558 snd_pcm_t *slave = svol->plug.gen.slave; in snd_pcm_softvol_hw_params() local
576 err = _snd_pcm_hw_params_internal(slave, slave_params); in snd_pcm_softvol_hw_params()
594 if (slave->format != SND_PCM_FORMAT_S16_LE && in snd_pcm_softvol_hw_params()
595 slave->format != SND_PCM_FORMAT_S16_BE && in snd_pcm_softvol_hw_params()
597 slave->format != SND_PCM_FORMAT_S24_3LE && in snd_pcm_softvol_hw_params()
599 slave->format != SND_PCM_FORMAT_S32_LE && in snd_pcm_softvol_hw_params()
600 slave->format != SND_PCM_FORMAT_S32_BE) { in snd_pcm_softvol_hw_params()
605 svol->sformat = slave->format; in snd_pcm_softvol_hw_params()
627 snd_pcm_dump(svol->plug.gen.slave); in snd_pcm_softvol_dump()
[all …]
A Dpcm.c118 void snd_pcm_link_hw_ptr(snd_pcm_t *pcm, snd_pcm_t *slave) in snd_pcm_link_hw_ptr() argument
121 assert(slave); in snd_pcm_link_hw_ptr()
122 snd_pcm_link_ptr(pcm, &pcm->hw, slave, &slave->hw); in snd_pcm_link_hw_ptr()
125 void snd_pcm_link_appl_ptr(snd_pcm_t *pcm, snd_pcm_t *slave) in snd_pcm_link_appl_ptr() argument
128 assert(slave); in snd_pcm_link_appl_ptr()
129 snd_pcm_link_ptr(pcm, &pcm->appl, slave, &slave->appl); in snd_pcm_link_appl_ptr()
132 void snd_pcm_unlink_hw_ptr(snd_pcm_t *pcm, snd_pcm_t *slave) in snd_pcm_unlink_hw_ptr() argument
135 assert(slave); in snd_pcm_unlink_hw_ptr()
136 snd_pcm_unlink_ptr(pcm, &pcm->hw, slave, &slave->hw); in snd_pcm_unlink_hw_ptr()
142 assert(slave); in snd_pcm_unlink_appl_ptr()
[all …]
/bsp/samd21/sam_d2x_asflib/common/services/adp/sam0/
A Dadp_interface_spi.c54 struct spi_slave_inst slave; variable
62 spi_select_slave(&edbg_spi, &slave, true); in adp_interface_send_start()
71 spi_select_slave(&edbg_spi, &slave, false); in adp_interface_send_stop()
102 spi_attach_slave(&slave, &slave_dev_config); in adp_interface_init()
/bsp/samd21/sam_d2x_asflib/sam0/drivers/sercom/spi/
A Dspi.c250 ctrla = config->mode_specific.slave.frame_format; in _spi_set_config()
253 ctrlb = config->mode_specific.slave.address_mode; in _spi_set_config()
260 if (config->mode_specific.slave.preload_enable) { in _spi_set_config()
396 ctrla |= config->mode_specific.slave.frame_format; in _spi_check_config()
399 ctrlb |= config->mode_specific.slave.address_mode; in _spi_check_config()
408 if (config->mode_specific.slave.preload_enable) { in _spi_check_config()
850 struct spi_slave_inst *const slave, in spi_select_slave() argument
856 Assert(slave); in spi_select_slave()
868 if (slave->address_enabled) { in spi_select_slave()
880 spi_write(module, slave->address); in spi_select_slave()
[all …]
A Dspi.h830 struct spi_slave_config slave; member
978 struct spi_slave_inst *const slave, in spi_attach_slave() argument
981 Assert(slave); in spi_attach_slave()
984 slave->ss_pin = config->ss_pin; in spi_attach_slave()
985 slave->address_enabled = config->address_enabled; in spi_attach_slave()
986 slave->address = config->address; in spi_attach_slave()
996 port_pin_set_config(slave->ss_pin, &pin_conf); in spi_attach_slave()
997 port_pin_set_output_level(slave->ss_pin, true); in spi_attach_slave()
1347 struct spi_slave_inst *const slave,
/bsp/samd21/sam_d2x_asflib/sam0/drivers/spi/
A Dspi.c334 struct spi_slave_inst *const slave, in spi_attach_slave() argument
337 Assert(slave); in spi_attach_slave()
340 slave->ss_pin = config->ss_pin; in spi_attach_slave()
341 slave->address_enabled = config->address_enabled; in spi_attach_slave()
342 slave->address = config->address; in spi_attach_slave()
347 gpio_pin_set_config(slave->ss_pin, &config_gpio); in spi_attach_slave()
349 gpio_pin_set_output_level(slave->ss_pin, true); in spi_attach_slave()
853 struct spi_slave_inst *const slave, in spi_select_slave() argument
856 uint8_t gpio_num = slave->ss_pin; in spi_select_slave()
A Dspi.h459 struct spi_slave_inst *const slave,
522 struct spi_slave_inst *const slave,
/bsp/allwinner/libraries/sunxi-hal/include/hal/aw-alsa-lib/plugin/
A Dpcm_dmix.h43 snd_pcm_direct_slave_config_t slave; member
A Dpcm_dsnoop.h43 snd_pcm_direct_slave_config_t slave; member
A Dpcm_file.h45 snd_pcm_file_slave_config_t slave; member
A Dpcm_sona_audioaef.h42 snd_pcm_sona_audioaef_slave_config_t slave; member
/bsp/microchip/samc21/bsp/hal/documentation/
A Di2c_master_sync.rst18 Often a master accesses different information in the slave by accessing
19 different registers in the slave. This is done by first sending a message to
20 the target slave containing the register address, followed by a repeated start
/bsp/microchip/saml10/bsp/hal/documentation/
A Di2c_master_sync.rst18 Often a master accesses different information in the slave by accessing
19 different registers in the slave. This is done by first sending a message to
20 the target slave containing the register address, followed by a repeated start
/bsp/microchip/same70/bsp/hal/documentation/
A Di2c_master_sync.rst18 Often a master accesses different information in the slave by accessing
19 different registers in the slave. This is done by first sending a message to
20 the target slave containing the register address, followed by a repeated start
/bsp/microchip/same54/bsp/hal/documentation/
A Di2c_master_sync.rst18 Often a master accesses different information in the slave by accessing
19 different registers in the slave. This is done by first sending a message to
20 the target slave containing the register address, followed by a repeated start

Completed in 659 milliseconds

123