• Home
  • Raw
  • Download

Lines Matching refs:hw_level

516 	snd_pcm_uframes_t remainder, hw_level, cap_limit;  in capture_to_streams()  local
528 hw_level = rc; in capture_to_streams()
530 cras_iodev_update_highest_hw_level(idev, hw_level); 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()
560 cap_limit = get_stream_limit(adev, hw_level, &cap_limit_stream); in capture_to_streams()
563 remainder = MIN(hw_level, cap_limit); in capture_to_streams()
565 ATLOG(atlog, AUDIO_THREAD_READ_AUDIO, idev->info.idx, hw_level, in capture_to_streams()
736 void update_dev_wakeup_time(struct open_dev *adev, unsigned int *hw_level) in update_dev_wakeup_time() argument
746 adev->dev, hw_level, &adev->wake_ts); in update_dev_wakeup_time()
751 cras_iodev_update_highest_hw_level(adev->dev, *hw_level); in update_dev_wakeup_time()
756 ATLOG(atlog, AUDIO_THREAD_SET_DEV_WAKE, adev->dev->info.idx, *hw_level, in update_dev_wakeup_time()
773 unsigned int hw_level; in write_output_samples() local
798 hw_level = rc; 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()
813 ATLOG(atlog, AUDIO_THREAD_FILL_AUDIO, adev->dev->info.idx, hw_level, in write_output_samples()
819 fr_to_req = cras_iodev_buffer_avail(odev, hw_level); in write_output_samples()
874 ATLOG(atlog, AUDIO_THREAD_FILL_AUDIO_DONE, hw_level, total_written, in write_output_samples()
1082 unsigned int hw_level, total_written; in dev_io_playback_write() local
1115 update_dev_wakeup_time(adev, &hw_level); in dev_io_playback_write()
1127 if (hw_level <= total_written) { in dev_io_playback_write()
1129 adev->dev, hw_level, total_written); in dev_io_playback_write()
1133 update_dev_wakeup_time(adev, &hw_level); in dev_io_playback_write()