• Home
  • Raw
  • Download

Lines Matching refs:adev

268 	struct open_dev *adev;  in thread_add_open_dev()  local
270 DL_SEARCH_SCALAR(thread->open_devs[iodev->direction], adev, dev, iodev); in thread_add_open_dev()
271 if (adev) in thread_add_open_dev()
274 adev = (struct open_dev *)calloc(1, sizeof(*adev)); in thread_add_open_dev()
275 adev->dev = iodev; in thread_add_open_dev()
286 DL_APPEND(thread->open_devs[iodev->direction], adev); in thread_add_open_dev()
296 struct open_dev *adev = in thread_rm_open_dev() local
298 if (!adev) in thread_rm_open_dev()
301 dev_io_rm_open_dev(&thread->open_devs[dir], adev); in thread_rm_open_dev()
312 struct open_dev *adev = dev_io_find_open_dev( in thread_is_dev_open() local
314 return !!adev; in thread_is_dev_open()
336 struct open_dev *adev = dev_io_find_open_dev( in thread_dev_start_ramp() local
338 if (!adev) in thread_dev_start_ramp()
340 iodev = adev->dev; in thread_dev_start_ramp()
461 struct open_dev *adev; in thread_set_aec_dump() local
464 DL_FOREACH (idev_list, adev) { in thread_set_aec_dump()
465 if (!cras_iodev_is_open(adev->dev)) in thread_set_aec_dump()
468 DL_FOREACH (adev->dev->streams, stream) { in thread_set_aec_dump()
474 adev->dev, start, fd); in thread_set_aec_dump()
487 struct open_dev *adev) in append_dev_dump_info() argument
489 struct cras_audio_format *fmt = adev->dev->format; in append_dev_dump_info()
491 strncpy(di->dev_name, adev->dev->info.name, sizeof(di->dev_name)); in append_dev_dump_info()
492 di->buffer_size = adev->dev->buffer_size; in append_dev_dump_info()
493 di->min_buffer_level = adev->dev->min_buffer_level; in append_dev_dump_info()
494 di->min_cb_level = adev->dev->min_cb_level; in append_dev_dump_info()
495 di->max_cb_level = adev->dev->max_cb_level; in append_dev_dump_info()
496 di->direction = adev->dev->direction; in append_dev_dump_info()
497 di->num_underruns = cras_iodev_get_num_underruns(adev->dev); in append_dev_dump_info()
499 cras_iodev_get_num_severe_underruns(adev->dev); in append_dev_dump_info()
500 di->highest_hw_level = adev->dev->highest_hw_level; in append_dev_dump_info()
501 di->software_gain_scaler = (adev->dev->direction == CRAS_STREAM_INPUT) ? in append_dev_dump_info()
502 adev->dev->software_gain_scaler : in append_dev_dump_info()
506 subtract_timespecs(&now, &adev->dev->open_ts, &time_since); in append_dev_dump_info()
509 di->longest_wake_sec = adev->longest_wake.tv_sec; in append_dev_dump_info()
510 di->longest_wake_nsec = adev->longest_wake.tv_nsec; in append_dev_dump_info()
515 di->est_rate_ratio = cras_iodev_get_est_rate_ratio(adev->dev); in append_dev_dump_info()
625 struct open_dev *adev; in handle_audio_thread_message() local
636 DL_FOREACH (thread->open_devs[CRAS_STREAM_OUTPUT], adev) { in handle_audio_thread_message()
637 append_dev_dump_info(&info->devs[num_devs], adev); in handle_audio_thread_message()
640 DL_FOREACH (adev->dev->streams, curr) { in handle_audio_thread_message()
644 adev->dev->info.idx, in handle_audio_thread_message()
648 DL_FOREACH (thread->open_devs[CRAS_STREAM_INPUT], adev) { in handle_audio_thread_message()
651 append_dev_dump_info(&info->devs[num_devs], adev); in handle_audio_thread_message()
652 DL_FOREACH (adev->dev->streams, curr) { in handle_audio_thread_message()
656 adev->dev->info.idx, in handle_audio_thread_message()
824 struct open_dev *adev; in audio_io_thread() local
873 DL_FOREACH (thread->open_devs[CRAS_STREAM_OUTPUT], adev) { in audio_io_thread()
874 DL_FOREACH (adev->dev->streams, curr) { in audio_io_thread()
882 DL_FOREACH (thread->open_devs[CRAS_STREAM_INPUT], adev) { in audio_io_thread()
883 DL_FOREACH (adev->dev->streams, curr) { in audio_io_thread()