Lines Matching refs:iodev
89 static int update_supported_formats(struct cras_iodev* iodev) { in update_supported_formats() argument
90 free(iodev->supported_rates); in update_supported_formats()
91 free(iodev->supported_channel_counts); in update_supported_formats()
92 free(iodev->supported_formats); in update_supported_formats()
93 iodev->supported_rates = in update_supported_formats()
94 (size_t*)calloc(2, sizeof(*iodev->supported_rates)); in update_supported_formats()
95 iodev->supported_rates[0] = 48000; in update_supported_formats()
96 iodev->supported_rates[1] = 0; in update_supported_formats()
97 iodev->supported_channel_counts = in update_supported_formats()
98 (size_t*)calloc(2, sizeof(*iodev->supported_channel_counts)); in update_supported_formats()
99 iodev->supported_channel_counts[0] = 2; in update_supported_formats()
100 iodev->supported_channel_counts[1] = 0; in update_supported_formats()
101 iodev->supported_formats = in update_supported_formats()
102 (snd_pcm_format_t*)calloc(2, sizeof(*iodev->supported_formats)); in update_supported_formats()
103 iodev->supported_formats[0] = SND_PCM_FORMAT_S16_LE; in update_supported_formats()
104 iodev->supported_formats[1] = (snd_pcm_format_t)0; in update_supported_formats()
108 static int frames_queued(const cras_iodev* iodev, struct timespec* tstamp) { in frames_queued() argument
112 static int delay_frames(const cras_iodev* iodev) { in delay_frames() argument
116 static int get_buffer(cras_iodev* iodev, in get_buffer() argument
122 static int put_buffer(cras_iodev* iodev, unsigned int num) { in put_buffer() argument
126 static int configure_dev(cras_iodev* iodev) { in configure_dev() argument
130 static int close_dev(cras_iodev* iodev) { in close_dev() argument
131 free(iodev->format); in close_dev()
132 iodev->format = NULL; in close_dev()
348 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node() argument
350 DL_APPEND(iodev->nodes, node); in cras_iodev_add_node()
353 void cras_iodev_rm_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_rm_node() argument
355 DL_DELETE(iodev->nodes, node); in cras_iodev_rm_node()
358 void cras_iodev_free_format(struct cras_iodev* iodev) { in cras_iodev_free_format() argument
362 void cras_iodev_set_active_node(struct cras_iodev* iodev, in cras_iodev_set_active_node() argument
365 iodev->active_node = node; in cras_iodev_set_active_node()
374 void cras_iodev_free_resources(struct cras_iodev* iodev) { in cras_iodev_free_resources() argument