Lines Matching refs:hw_level
380 snd_pcm_uframes_t remainder, hw_level, cap_limit; in capture_to_streams() local
392 hw_level = rc; in capture_to_streams()
394 cras_iodev_update_highest_hw_level(idev, hw_level); 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()
409 cap_limit = get_stream_limit(adev, hw_level, &cap_limit_stream); in capture_to_streams()
412 remainder = MIN(hw_level, cap_limit); in capture_to_streams()
415 hw_level, remainder); in capture_to_streams()
575 void update_dev_wakeup_time(struct open_dev *adev, unsigned int *hw_level) in update_dev_wakeup_time() argument
585 adev->dev, hw_level, &adev->wake_ts); in update_dev_wakeup_time()
590 cras_iodev_update_highest_hw_level(adev->dev, *hw_level); in update_dev_wakeup_time()
596 *hw_level, frames_to_play_in_sleep); in update_dev_wakeup_time()
615 unsigned int hw_level; in write_output_samples() local
640 hw_level = rc; in write_output_samples()
645 if (hw_level < odev->min_cb_level / 2) in write_output_samples()
647 else if (hw_level > odev->max_cb_level * 2) in write_output_samples()
652 if (cras_iodev_update_rate(odev, hw_level, &hw_tstamp)) in write_output_samples()
655 ATLOG(atlog, AUDIO_THREAD_FILL_AUDIO, adev->dev->info.idx, hw_level, 0); in write_output_samples()
660 fr_to_req = cras_iodev_buffer_avail(odev, hw_level); in write_output_samples()
719 ATLOG(atlog, AUDIO_THREAD_FILL_AUDIO_DONE, hw_level, in write_output_samples()
805 unsigned int hw_level, total_written; in dev_io_playback_write() local
838 update_dev_wakeup_time(adev, &hw_level); in dev_io_playback_write()
850 if (hw_level <= total_written) { in dev_io_playback_write()
853 hw_level, total_written); in dev_io_playback_write()
858 update_dev_wakeup_time(adev, &hw_level); in dev_io_playback_write()