Lines Matching refs:adev
365 struct open_dev *adev; in thread_add_open_dev() local
368 adev, dev, iodev); in thread_add_open_dev()
369 if (adev) in thread_add_open_dev()
372 adev = (struct open_dev *)calloc(1, sizeof(*adev)); in thread_add_open_dev()
373 adev->dev = iodev; in thread_add_open_dev()
384 DL_APPEND(thread->open_devs[iodev->direction], adev); in thread_add_open_dev()
393 struct open_dev *adev = dev_io_find_open_dev( in thread_rm_open_dev() local
395 if (!adev) in thread_rm_open_dev()
398 dev_io_rm_open_dev(&thread->open_devs[iodev->direction], adev); in thread_rm_open_dev()
409 struct open_dev *adev = dev_io_find_open_dev( in thread_is_dev_open() local
411 return !!adev; in thread_is_dev_open()
420 struct open_dev *adev = dev_io_find_open_dev( in thread_dev_start_ramp() local
422 if (!adev) in thread_dev_start_ramp()
528 struct open_dev *adev; in thread_set_aec_dump() local
531 DL_FOREACH(idev_list, adev) { in thread_set_aec_dump()
532 if (!cras_iodev_is_open(adev->dev)) in thread_set_aec_dump()
535 DL_FOREACH(adev->dev->streams, stream) { in thread_set_aec_dump()
541 adev->dev, start, fd); in thread_set_aec_dump()
554 struct open_dev *adev) in append_dev_dump_info() argument
556 struct cras_audio_format *fmt = adev->dev->ext_format; in append_dev_dump_info()
557 strncpy(di->dev_name, adev->dev->info.name, sizeof(di->dev_name)); in append_dev_dump_info()
558 di->buffer_size = adev->dev->buffer_size; in append_dev_dump_info()
559 di->min_buffer_level = adev->dev->min_buffer_level; in append_dev_dump_info()
560 di->min_cb_level = adev->dev->min_cb_level; in append_dev_dump_info()
561 di->max_cb_level = adev->dev->max_cb_level; in append_dev_dump_info()
562 di->direction = adev->dev->direction; in append_dev_dump_info()
563 di->num_underruns = cras_iodev_get_num_underruns(adev->dev); in append_dev_dump_info()
565 adev->dev); in append_dev_dump_info()
566 di->highest_hw_level = adev->dev->highest_hw_level; in append_dev_dump_info()
570 di->est_rate_ratio = cras_iodev_get_est_rate_ratio(adev->dev); in append_dev_dump_info()
670 struct open_dev *adev; in handle_playback_thread_message() local
681 DL_FOREACH(thread->open_devs[CRAS_STREAM_OUTPUT], adev) { in handle_playback_thread_message()
682 append_dev_dump_info(&info->devs[num_devs], adev); in handle_playback_thread_message()
685 DL_FOREACH(adev->dev->streams, curr) { in handle_playback_thread_message()
689 adev->dev->info.idx, in handle_playback_thread_message()
693 DL_FOREACH(thread->open_devs[CRAS_STREAM_INPUT], adev) { in handle_playback_thread_message()
696 append_dev_dump_info(&info->devs[num_devs], adev); in handle_playback_thread_message()
697 DL_FOREACH(adev->dev->streams, curr) { in handle_playback_thread_message()
701 adev->dev->info.idx, in handle_playback_thread_message()
800 struct open_dev *adev; in get_next_output_wake() local
803 DL_FOREACH(*odevs, adev) in get_next_output_wake()
805 adev->dev->streams, in get_next_output_wake()
808 DL_FOREACH(*odevs, adev) { in get_next_output_wake()
809 if (!cras_iodev_odev_should_wake(adev->dev)) in get_next_output_wake()
813 if (timespec_after(min_ts, &adev->wake_ts)) in get_next_output_wake()
814 *min_ts = adev->wake_ts; in get_next_output_wake()
892 struct open_dev *adev; in audio_io_thread() local
939 DL_FOREACH(thread->open_devs[CRAS_STREAM_OUTPUT], adev) { in audio_io_thread()
940 DL_FOREACH(adev->dev->streams, curr) { in audio_io_thread()
948 DL_FOREACH(thread->open_devs[CRAS_STREAM_INPUT], adev) { in audio_io_thread()
949 DL_FOREACH(adev->dev->streams, curr) { in audio_io_thread()