Lines Matching refs:idev
448 struct cras_iodev *idev = adev->dev; in capture_to_streams() local
458 rc = cras_iodev_frames_queued(idev, &hw_tstamp); in capture_to_streams()
463 cras_iodev_update_highest_hw_level(idev, hw_level); in capture_to_streams()
465 ATLOG(atlog, AUDIO_THREAD_READ_AUDIO_TSTAMP, idev->info.idx, in capture_to_streams()
468 if (hw_level < idev->min_cb_level / 2) in capture_to_streams()
470 else if (hw_level > idev->max_cb_level * 2) in capture_to_streams()
474 if (cras_iodev_update_rate(idev, hw_level, &hw_tstamp)) in capture_to_streams()
483 ATLOG(atlog, AUDIO_THREAD_READ_AUDIO, idev->info.idx, hw_level, in capture_to_streams()
486 if (cras_iodev_state(idev) != CRAS_IODEV_STATE_NORMAL_RUN) in capture_to_streams()
495 rc = cras_iodev_get_input_buffer(idev, &nread); in capture_to_streams()
508 input_data_get_for_stream(idev->input_data, in capture_to_streams()
510 idev->buf_state, &area, in capture_to_streams()
527 idev->software_gain_scaler * in capture_to_streams()
535 input_data_put_for_stream(idev->input_data, in capture_to_streams()
537 idev->buf_state, this_read); in capture_to_streams()
540 rc = cras_iodev_put_input_buffer(idev); in capture_to_streams()