Lines Matching refs:idev
379 struct cras_iodev *idev = adev->dev; in capture_to_streams() local
389 rc = cras_iodev_frames_queued(idev, &hw_tstamp); in capture_to_streams()
394 cras_iodev_update_highest_hw_level(idev, hw_level); in capture_to_streams()
396 ATLOG(atlog, AUDIO_THREAD_READ_AUDIO_TSTAMP, idev->info.idx, in capture_to_streams()
399 if (hw_level < idev->min_cb_level / 2) in capture_to_streams()
401 else if (hw_level > idev->max_cb_level * 2) in capture_to_streams()
405 if (cras_iodev_update_rate(idev, hw_level, &hw_tstamp)) in capture_to_streams()
414 ATLOG(atlog, AUDIO_THREAD_READ_AUDIO, idev->info.idx, in capture_to_streams()
417 if (cras_iodev_state(idev) != CRAS_IODEV_STATE_NORMAL_RUN) in capture_to_streams()
426 rc = cras_iodev_get_input_buffer(idev, &nread); in capture_to_streams()
439 input_data_get_for_stream(idev->input_data, stream->stream, in capture_to_streams()
440 idev->buf_state, in capture_to_streams()
449 : cras_iodev_get_software_gain_scaler(idev); in capture_to_streams()
455 input_data_put_for_stream(idev->input_data, stream->stream, in capture_to_streams()
456 idev->buf_state, this_read); in capture_to_streams()
459 rc = cras_iodev_put_input_buffer(idev); in capture_to_streams()