• Home
  • Raw
  • Download

Lines Matching refs:odev

83 		struct open_dev *odev;  in update_estimated_rate()  local
84 DL_FOREACH (odev_list, odev) { in update_estimated_rate()
86 odev->dev->active_node)) in update_estimated_rate()
88 if (odev->dev->format->frame_rate != in update_estimated_rate()
91 tracked_dev = odev->dev; in update_estimated_rate()
198 struct cras_iodev *odev = adev->dev; in fetch_streams() local
202 delay = cras_iodev_delay_frames(odev); in fetch_streams()
651 struct cras_iodev *odev = adev->dev; in write_streams() local
654 unsigned int frame_bytes = cras_get_format_bytes(odev->format); in write_streams()
659 max_offset = cras_iodev_max_stream_offset(odev); in write_streams()
709 offset = cras_iodev_stream_offset(odev, curr); in write_streams()
712 nwritten = dev_stream_mix(curr, odev->format, in write_streams()
721 cras_iodev_stream_written(odev, curr, nwritten); in write_streams()
724 write_limit = cras_iodev_all_streams_written(odev); in write_streams()
772 struct cras_iodev *odev = adev->dev; in write_output_samples() local
786 rc = cras_iodev_prepare_output_before_write_samples(odev); in write_output_samples()
792 if (cras_iodev_state(odev) != CRAS_IODEV_STATE_NORMAL_RUN) in write_output_samples()
795 rc = cras_iodev_frames_queued(odev, &hw_tstamp); in write_output_samples()
803 if (hw_level < odev->min_cb_level / 2) in write_output_samples()
805 else if (hw_level > odev->max_cb_level * 2) in write_output_samples()
810 if (cras_iodev_update_rate(odev, hw_level, &hw_tstamp)) in write_output_samples()
814 odev->min_cb_level); in write_output_samples()
819 fr_to_req = cras_iodev_buffer_avail(odev, hw_level); in write_output_samples()
826 rc = cras_iodev_get_output_buffer(odev, &area, &frames); in write_output_samples()
855 odev, dst, written, non_empty_ptr, output_converter); in write_output_samples()
875 get_ewma_power_as_int(&odev->ewma)); in write_output_samples()
1279 struct open_dev *odev; in dev_io_find_open_dev() local
1280 DL_FOREACH (odev_list, odev) in dev_io_find_open_dev()
1281 if (odev->dev->info.idx == dev_idx) in dev_io_find_open_dev()
1282 return odev; in dev_io_find_open_dev()
1288 struct open_dev *odev; in dev_io_rm_open_dev() local
1292 DL_FOREACH (*odev_list, odev) { in dev_io_rm_open_dev()
1293 if (odev == dev_to_rm) in dev_io_rm_open_dev()
1296 if (!odev) in dev_io_rm_open_dev()
1351 struct open_dev *odev; in find_matched_input_stream() local
1356 DL_FOREACH (odev_list, odev) { in find_matched_input_stream()
1357 DL_FOREACH (odev->dev->streams, dev_stream) { in find_matched_input_stream()