Home
last modified time | relevance | path

Searched refs:main_dev (Results 1 – 6 of 6) sorted by relevance

/external/adhd/cras/src/server/
Dcras_rstream.c295 stream->main_dev.dev_id = NO_DEVICE; in cras_rstream_create()
296 stream->main_dev.dev_ptr = NULL; in cras_rstream_create()
437 if (rstream->main_dev.dev_id == NO_DEVICE) { in cras_rstream_dev_attach()
438 rstream->main_dev.dev_id = dev_id; in cras_rstream_dev_attach()
439 rstream->main_dev.dev_ptr = dev_ptr; in cras_rstream_dev_attach()
448 if (rstream->main_dev.dev_id == dev_id) { in cras_rstream_dev_detach()
453 rstream->main_dev.dev_id = NO_DEVICE; in cras_rstream_dev_detach()
454 rstream->main_dev.dev_ptr = NULL; in cras_rstream_dev_detach()
458 rstream->main_dev.dev_id = o->id; in cras_rstream_dev_detach()
459 rstream->main_dev.dev_ptr = o->data; in cras_rstream_dev_detach()
Ddev_io.c60 return (struct cras_iodev *)stream->stream->main_dev.dev_ptr; in get_main_dev()
70 struct cras_iodev *main_dev; in update_estimated_rate() local
104 main_dev = get_main_dev(dev_stream); in update_estimated_rate()
105 if (main_dev == NULL) { in update_estimated_rate()
117 cras_iodev_get_est_rate_ratio(main_dev); in update_estimated_rate()
Dcras_rstream.h77 struct main_dev_info main_dev; member
Ddev_stream.c162 if (dev_stream->dev_id == dev_stream->stream->main_dev.dev_id) { in dev_stream_set_dev_rate()
/external/adhd/cras/src/tests/
Ddev_io_stubs.cc155 if (stream->rstream->main_dev.dev_id == NO_DEVICE) { in add_stream_to_dev()
156 stream->rstream->main_dev.dev_id = dev->info.idx; in add_stream_to_dev()
157 stream->rstream->main_dev.dev_ptr = dev.get(); in add_stream_to_dev()
Ddev_stream_unittest.cc556 rstream_.main_dev.dev_id = 4; in TEST_F()
585 rstream_.main_dev.dev_id = dev_id; in TEST_F()