Lines Matching refs:iodev

89 int iodev_set_format(struct cras_iodev *iodev,
95 iodev->format = fmt;
104 struct cras_iodev *iodev;
111 iodev = a2dp_iodev_create(fake_transport);
113 ASSERT_NE(iodev, (void *)NULL);
114 ASSERT_EQ(iodev->direction, CRAS_STREAM_OUTPUT);
121 /* Assert iodev name matches the object path when bt device doesn't
123 ASSERT_STREQ(FAKE_OBJECT_PATH, iodev->info.name);
125 a2dp_iodev_destroy(iodev);
133 /* Assert iodev name matches the bt device's name */
134 iodev = a2dp_iodev_create(fake_transport);
135 ASSERT_STREQ(fake_device_name, iodev->info.name);
137 a2dp_iodev_destroy(iodev);
141 struct cras_iodev *iodev;
146 iodev = a2dp_iodev_create(fake_transport);
148 ASSERT_EQ(iodev, (void *)NULL);
158 struct cras_iodev *iodev;
161 iodev = a2dp_iodev_create(fake_transport);
163 iodev_set_format(iodev, &format);
164 iodev->open_dev(iodev);
168 iodev->close_dev(iodev);
173 a2dp_iodev_destroy(iodev);
177 struct cras_iodev *iodev;
183 iodev = a2dp_iodev_create(fake_transport);
185 iodev_set_format(iodev, &format);
186 iodev->open_dev(iodev);
190 iodev->get_buffer(iodev, &area1, &frames);
201 iodev->put_buffer(iodev, 100);
207 iodev->get_buffer(iodev, &area2, &frames);
223 iodev->put_buffer(iodev, 100);
228 iodev->get_buffer(iodev, &area3, &frames);
236 a2dp_iodev_destroy(iodev);
240 struct cras_iodev *iodev;
246 iodev = a2dp_iodev_create(fake_transport);
248 iodev_set_format(iodev, &format);
251 iodev->open_dev(iodev);
255 iodev->get_buffer(iodev, &area, &frames);
269 iodev->put_buffer(iodev, 300);
271 EXPECT_EQ(350, iodev->frames_queued(iodev, &tstamp));
283 EXPECT_EQ(256, iodev->frames_queued(iodev, &tstamp));
301 iodev->put_buffer(iodev, 200);
303 EXPECT_EQ(200, iodev->frames_queued(iodev, &tstamp));
309 struct cras_iodev *iodev;
315 iodev = a2dp_iodev_create(fake_transport);
317 iodev_set_format(iodev, &format);
320 iodev->open_dev(iodev);
323 ASSERT_EQ(iodev->min_buffer_level, 400);
326 iodev->get_buffer(iodev, &area, &frames);
348 iodev->put_buffer(iodev, 700);
351 EXPECT_EQ(500, iodev->frames_queued(iodev, &tstamp));
407 void cras_iodev_free_format(struct cras_iodev *iodev)
412 void cras_iodev_free_resources(struct cras_iodev *iodev)
417 // Cras iodev
418 void cras_iodev_add_node(struct cras_iodev *iodev, struct cras_ionode *node)
421 iodev->nodes = node;
424 void cras_iodev_rm_node(struct cras_iodev *iodev, struct cras_ionode *node)
427 iodev->nodes = NULL;
430 void cras_iodev_set_active_node(struct cras_iodev *iodev,
434 iodev->active_node = node;
461 struct cras_iodev *iodev,
468 struct cras_iodev *iodev)
544 void cras_iodev_init_audio_area(struct cras_iodev *iodev,
546 iodev->area = dummy_audio_area;
549 void cras_iodev_free_audio_area(struct cras_iodev *iodev) {