Lines Matching refs:alsa_devices
96 struct listnode alsa_devices; /* The ALSA devices connected to the stream. */ member
132 struct listnode alsa_devices; /* The ALSA devices connected to the stream. */ member
471 static struct alsa_device_info* stream_get_first_alsa_device(const struct listnode *alsa_devices) { in stream_get_first_alsa_device() argument
472 if (list_empty(alsa_devices)) { in stream_get_first_alsa_device()
475 return node_to_item(list_head(alsa_devices), struct alsa_device_info, list_node); in stream_get_first_alsa_device()
481 static void stream_standby_l(struct listnode *alsa_devices, bool *standby) in stream_standby_l() argument
485 list_for_each (node, alsa_devices) { in stream_standby_l()
494 static void stream_clear_devices(struct listnode *alsa_devices) in stream_clear_devices() argument
498 list_for_each_safe (node, temp, alsa_devices) { in stream_clear_devices()
508 struct listnode *alsa_devices, in stream_set_new_devices() argument
515 stream_clear_devices(alsa_devices); in stream_set_new_devices()
535 list_add_tail(alsa_devices, &device_info->list_node); in stream_set_new_devices()
540 stream_clear_devices(alsa_devices); in stream_set_new_devices()
545 static void stream_dump_alsa_devices(const struct listnode *alsa_devices, int fd) { in stream_dump_alsa_devices() argument
548 list_for_each(node, alsa_devices) { in stream_dump_alsa_devices()
565 &((struct stream_out*)stream)->alsa_devices); in out_get_sample_rate()
583 const struct alsa_device_info* device_info = stream_get_first_alsa_device(&out->alsa_devices); in out_get_buffer_size()
604 &((struct stream_out*)stream)->alsa_devices); in out_get_format()
624 stream_standby_l(&out->alsa_devices, &out->standby); in out_standby()
634 stream_dump_alsa_devices(&out_stream->alsa_devices, fd); in out_dump()
654 struct alsa_device_info *device_info = stream_get_first_alsa_device(&out->alsa_devices); in out_get_parameters()
666 &((struct stream_out*)stream)->alsa_devices); in out_get_latency()
684 list_for_each(node, &out->alsa_devices) { in start_output_stream()
699 list_for_each(node, &out->alsa_devices) { in start_output_stream()
724 list_for_each(node, &out->alsa_devices) { in out_write()
781 const struct alsa_device_info* device_info = stream_get_first_alsa_device(&out->alsa_devices); in out_get_presentation_position()
847 list_init(&out->alsa_devices); in adev_open_output_stream()
930 list_add_tail(&out->alsa_devices, &device_info->list_node); in adev_open_output_stream()
957 stream_standby_l(&out->alsa_devices, &out->standby); in adev_close_output_stream()
958 stream_clear_devices(&out->alsa_devices); in adev_close_output_stream()
987 &((const struct stream_in *)stream)->alsa_devices); in in_get_sample_rate()
1006 struct alsa_device_info *device_info = stream_get_first_alsa_device(&in->alsa_devices); in in_get_buffer_size()
1023 &((const struct stream_in *)stream)->alsa_devices); in in_get_format()
1046 stream_standby_l(&in->alsa_devices, &in->standby); in in_standby()
1056 stream_dump_alsa_devices(&in_stream->alsa_devices, fd); in in_dump()
1077 struct alsa_device_info *device_info = stream_get_first_alsa_device(&in->alsa_devices); in in_get_parameters()
1106 struct alsa_device_info *device_info = stream_get_first_alsa_device(&in->alsa_devices); in start_input_stream()
1136 struct alsa_device_info *device_info = stream_get_first_alsa_device(&in->alsa_devices); in in_read()
1205 struct alsa_device_info *device_info = stream_get_first_alsa_device(&in->alsa_devices); in in_get_capture_position()
1293 list_init(&in->alsa_devices); in adev_open_input_stream()
1446 list_add_tail(&in->alsa_devices, &device_info->list_node); in adev_open_input_stream()
1464 struct alsa_device_info *device_info = stream_get_first_alsa_device(&in->alsa_devices); in adev_close_input_stream()
1472 stream_standby_l(&in->alsa_devices, &in->standby); in adev_close_input_stream()
1476 stream_clear_devices(&in->alsa_devices); in adev_close_input_stream()
1578 struct listnode *alsa_devices = NULL; in adev_create_audio_patch() local
1604 alsa_devices = &in->alsa_devices; in adev_create_audio_patch()
1620 alsa_devices = &out->alsa_devices; in adev_create_audio_patch()
1644 list_for_each (node, alsa_devices) { in adev_create_audio_patch()
1652 stream_standby_l(alsa_devices, out == NULL ? &in->standby : &out->standby); in adev_create_audio_patch()
1661 struct alsa_device_info *device_info = stream_get_first_alsa_device(alsa_devices); in adev_create_audio_patch()
1664 int ret = stream_set_new_devices(config, alsa_devices, num_configs, cards, devices, direction); in adev_create_audio_patch()
1669 config, alsa_devices, num_saved_devices, saved_cards, saved_devices, direction); in adev_create_audio_patch()
1676 device_info = stream_get_first_alsa_device(alsa_devices); in adev_create_audio_patch()
1705 stream_standby_l(&out->alsa_devices, &out->standby); in adev_release_audio_patch()
1718 stream_standby_l(&in->alsa_devices, &in->standby); in adev_release_audio_patch()