Lines Matching refs:rstream
248 void cras_rstream_record_fetch_interval(struct cras_rstream *rstream,
259 void cras_rstream_dev_attach(struct cras_rstream *rstream, unsigned int dev_id,
261 void cras_rstream_dev_detach(struct cras_rstream *rstream, unsigned int dev_id);
263 static inline void *cras_rstream_dev_ptr(struct cras_rstream *rstream, in cras_rstream_dev_ptr() argument
266 return buffer_share_get_data(rstream->buf_state, dev_id); in cras_rstream_dev_ptr()
270 void cras_rstream_dev_offset_update(struct cras_rstream *rstream,
273 void cras_rstream_update_input_write_pointer(struct cras_rstream *rstream);
274 void cras_rstream_update_output_read_pointer(struct cras_rstream *rstream);
276 unsigned int cras_rstream_dev_offset(const struct cras_rstream *rstream,
279 static inline unsigned int cras_rstream_level(struct cras_rstream *rstream) in cras_rstream_level() argument
281 const struct cras_audio_shm *shm = cras_rstream_shm(rstream); in cras_rstream_level()
285 static inline int cras_rstream_input_level_met(struct cras_rstream *rstream) in cras_rstream_input_level_met() argument
287 const struct cras_audio_shm *shm = cras_rstream_shm(rstream); in cras_rstream_input_level_met()
288 return cras_shm_frames_written(shm) >= rstream->cb_threshold; in cras_rstream_input_level_met()
294 void cras_rstream_update_queued_frames(struct cras_rstream *rstream);
297 unsigned int cras_rstream_playable_frames(struct cras_rstream *rstream,
301 float cras_rstream_get_volume_scaler(struct cras_rstream *rstream);
305 uint8_t *cras_rstream_get_readable_frames(struct cras_rstream *rstream,
309 int cras_rstream_get_mute(const struct cras_rstream *rstream);