Lines Matching refs:dev_id
239 stream->master_dev.dev_id = NO_DEVICE; in cras_rstream_create()
371 unsigned int dev_id, in cras_rstream_dev_attach() argument
374 if (buffer_share_add_id(rstream->buf_state, dev_id, dev_ptr) == 0) in cras_rstream_dev_attach()
380 if (rstream->master_dev.dev_id == NO_DEVICE) { in cras_rstream_dev_attach()
381 rstream->master_dev.dev_id = dev_id; in cras_rstream_dev_attach()
386 void cras_rstream_dev_detach(struct cras_rstream *rstream, unsigned int dev_id) in cras_rstream_dev_detach() argument
388 if (buffer_share_rm_id(rstream->buf_state, dev_id) == 0) in cras_rstream_dev_detach()
391 if (rstream->master_dev.dev_id == dev_id) { in cras_rstream_dev_detach()
396 rstream->master_dev.dev_id = NO_DEVICE; in cras_rstream_dev_detach()
401 rstream->master_dev.dev_id = o->id; in cras_rstream_dev_detach()
411 unsigned int dev_id) in cras_rstream_dev_offset_update() argument
413 buffer_share_offset_update(rstream->buf_state, dev_id, frames); in cras_rstream_dev_offset_update()
435 unsigned int dev_id) in cras_rstream_dev_offset() argument
437 return buffer_share_id_offset(rstream->buf_state, dev_id); in cras_rstream_dev_offset()
448 unsigned int dev_id) in cras_rstream_playable_frames() argument
451 cras_rstream_dev_offset(rstream, dev_id); in cras_rstream_playable_frames()