Lines Matching refs:hw_level
54 unsigned int hw_level, fr_to_write; in default_no_stream_playback() local
62 hw_level = rc; in default_no_stream_playback()
65 if (hw_level == 0) { in default_no_stream_playback()
73 hw_level = rc; in default_no_stream_playback()
77 odev->info.idx, hw_level, target_hw_level); in default_no_stream_playback()
79 fr_to_write = cras_iodev_buffer_avail(odev, hw_level); in default_no_stream_playback()
80 if (hw_level <= target_hw_level) { in default_no_stream_playback()
81 fr_to_write = MIN(target_hw_level - hw_level, fr_to_write); in default_no_stream_playback()
1230 int cras_iodev_buffer_avail(struct cras_iodev *iodev, unsigned hw_level) in cras_iodev_buffer_avail() argument
1233 return hw_level; in cras_iodev_buffer_avail()
1235 if (hw_level + iodev->min_buffer_level > iodev->buffer_size) in cras_iodev_buffer_avail()
1238 return iodev->buffer_size - iodev->min_buffer_level - hw_level; in cras_iodev_buffer_avail()
1311 unsigned int *hw_level, in cras_iodev_frames_to_play_in_sleep() argument
1316 *hw_level = level; in cras_iodev_frames_to_play_in_sleep()
1333 if (*hw_level > odev->min_cb_level) in cras_iodev_frames_to_play_in_sleep()
1334 return *hw_level - odev->min_cb_level; in cras_iodev_frames_to_play_in_sleep()
1479 unsigned int hw_level) in cras_iodev_update_highest_hw_level() argument
1481 iodev->highest_hw_level = MAX(iodev->highest_hw_level, hw_level); in cras_iodev_update_highest_hw_level()