Lines Matching refs:idev
515 struct cras_iodev *idev = adev->dev; in capture_to_streams() local
525 rc = cras_iodev_frames_queued(idev, &hw_tstamp); in capture_to_streams()
530 cras_iodev_update_highest_hw_level(idev, hw_level); in capture_to_streams()
532 ATLOG(atlog, AUDIO_THREAD_READ_AUDIO_TSTAMP, idev->info.idx, in capture_to_streams()
537 if (hw_level < idev->min_cb_level / 2) in capture_to_streams()
539 else if (hw_level > idev->max_cb_level * 2) in capture_to_streams()
549 !!cras_iodev_update_rate(idev, hw_level, &hw_tstamp); in capture_to_streams()
565 ATLOG(atlog, AUDIO_THREAD_READ_AUDIO, idev->info.idx, hw_level, in capture_to_streams()
568 if (cras_iodev_state(idev) != CRAS_IODEV_STATE_NORMAL_RUN) in capture_to_streams()
577 rc = cras_iodev_get_input_buffer(idev, &nread); in capture_to_streams()
590 input_data_get_for_stream(idev->input_data, in capture_to_streams()
592 idev->buf_state, &area, in capture_to_streams()
602 cras_iodev_get_ui_gain_scaler(idev) * in capture_to_streams()
604 idev->input_data, in capture_to_streams()
605 idev->software_gain_scaler, in capture_to_streams()
612 input_data_put_for_stream(idev->input_data, in capture_to_streams()
614 idev->buf_state, this_read); in capture_to_streams()
617 rc = cras_iodev_put_input_buffer(idev); in capture_to_streams()
629 get_ewma_power_as_int(&idev->ewma), 0); in capture_to_streams()