Home
last modified time | relevance | path

Searched refs:open_dev (Results 1 – 16 of 16) sorted by relevance

/external/adhd/cras/src/server/
Ddev_io.h24 struct open_dev { struct
30 struct open_dev *prev, *next; argument
37 void dev_io_playback_fetch(struct open_dev *odev_list);
44 int dev_io_playback_write(struct open_dev **odevs,
48 int write_output_samples(struct open_dev **odevs,
49 struct open_dev *adev,
57 int dev_io_capture(struct open_dev **list);
62 int dev_io_send_captured_samples(struct open_dev *idev_list);
65 void dev_io_run(struct open_dev **odevs, struct open_dev **idevs,
72 int dev_io_next_input_wake(struct open_dev **idevs, struct timespec *min_ts);
[all …]
Ddev_io.c48 static void update_estimated_rate(struct open_dev *adev) in update_estimated_rate()
73 static inline int count_non_empty_dev(struct open_dev *adevs) { in count_non_empty_dev()
75 struct open_dev *adev; in count_non_empty_dev()
83 static void check_non_empty_state_transition(struct open_dev *adevs) { in check_non_empty_state_transition()
102 static int fetch_streams(struct open_dev *adev) in fetch_streams()
169 static int input_delay_frames(struct open_dev *adevs) in input_delay_frames()
171 struct open_dev *adev; in input_delay_frames()
191 static unsigned int set_stream_delay(struct open_dev *adev) in set_stream_delay()
219 struct open_dev *adev, in get_stream_limit()
268 struct open_dev *adev, in get_input_dev_max_wake_ts()
[all …]
Daudio_thread.c260 struct open_dev *open_dev; in append_stream() local
270 DL_SEARCH_SCALAR(thread->open_devs[stream->direction], open_dev, in append_stream()
272 if (!open_dev) in append_stream()
347 DL_FOREACH(thread->open_devs[stream->direction], open_dev) { in append_stream()
348 dev = open_dev->dev; in append_stream()
365 struct open_dev *adev; in thread_add_open_dev()
372 adev = (struct open_dev *)calloc(1, sizeof(*adev)); in thread_add_open_dev()
393 struct open_dev *adev = dev_io_find_open_dev( in thread_rm_open_dev()
409 struct open_dev *adev = dev_io_find_open_dev( in thread_is_dev_open()
420 struct open_dev *adev = dev_io_find_open_dev( in thread_dev_start_ramp()
[all …]
Dcras_bt_io.c124 static int open_dev(struct cras_iodev *iodev) in open_dev() function
340 iodev->open_dev = open_dev; in cras_bt_io_create()
Daudio_thread.h41 struct open_dev *open_devs[CRAS_NUM_DIRECTIONS];
Dcras_iodev.h202 int (*open_dev)(struct cras_iodev *iodev); member
Dcras_iodev.c893 if (iodev->open_dev) { in cras_iodev_open()
894 rc = iodev->open_dev(iodev); in cras_iodev_open()
Dcras_alsa_io.c356 static int open_dev(struct cras_iodev *iodev) in open_dev() function
1996 iodev->open_dev = open_dev; in alsa_iodev_create()
/external/adhd/cras/src/tests/
Daudio_thread_unittest.cc216 struct open_dev *adev; in TEST_F()
232 struct open_dev *adev; in TEST_F()
265 struct open_dev *adev; in TEST_F()
286 struct open_dev *adev; in TEST_F()
389 struct open_dev *adev; in TEST_F()
497 struct open_dev *adev; in TEST_F()
530 struct open_dev *adev; in TEST_F()
558 struct open_dev *adev; in TEST_F()
Dbt_io_unittest.cc176 bt_iodev->open_dev(bt_iodev); in TEST_F()
208 bt_iodev->open_dev(bt_iodev); in TEST_F()
226 bt_iodev->open_dev(bt_iodev); in TEST_F()
Daudio_thread_unittest_obsolete.cc86 iodev_.open_dev = open_dev; in SetUp()
195 static int open_dev(cras_iodev* iodev) { in open_dev() function in ReadStreamSuite
517 iodev_.open_dev = open_dev; in SetUp()
629 static int open_dev(cras_iodev* iodev) { in open_dev() function in WriteStreamSuite
1118 iodev_.open_dev = open_dev; in SetUp()
1181 static int open_dev(cras_iodev* iodev) { in open_dev() function in AddStreamSuite
1439 iodev_.open_dev = open_dev; in SetUp()
1449 iodev2_.open_dev = open_dev; in SetUp()
1541 static int open_dev(struct cras_iodev *iodev) { in open_dev() function in ActiveDevicesSuite
Ddev_io_stubs.cc121 reinterpret_cast<open_dev*>(calloc(1, sizeof(open_dev))), free); in create_device()
Ddev_io_unittest.cc58 struct open_dev* dev_list = NULL; in TEST_F()
Ddev_io_stubs.h28 using OpendevPtr = std::unique_ptr<open_dev, decltype(free)*>;
Dalsa_io_unittest.cc411 iodev->open_dev(iodev); in TEST()
716 iodev->open_dev(iodev); in TEST()
761 iodev->open_dev(iodev); in TEST()
796 iodev->open_dev(iodev); in TEST()
805 iodev->open_dev(iodev); in TEST()
2261 iodev->open_dev(iodev); in TEST()
Dtiming_unittest.cc51 struct open_dev* dev_list_ = NULL; in SingleInputDevNextWake()