Lines Matching refs:fd
48 int fd; member
102 static int out_dump(const struct audio_stream *stream, int fd) in out_dump() argument
106 dprintf(fd, "\tout_dump:\n" in out_dump()
190 if (adev->fd >= 0) in out_write()
191 bytes = write(adev->fd, buffer, bytes); in out_write()
258 static int in_dump(const struct audio_stream *stream, int fd) in in_dump() argument
262 dprintf(fd, "\tin_dump:\n" in in_dump()
342 if (adev->fd >= 0) in in_read()
343 bytes = read(adev->fd, buffer, bytes); in in_read()
458 if (adev->fd >= 0) in adev_init_check()
596 static int adev_dump(const audio_hw_device_t *dev, int fd) in adev_dump() argument
603 dprintf(fd, "\nadev_dump:\n" in adev_dump()
608 adev->fd, in adev_dump()
614 out_dump((const struct audio_stream *)adev->output, fd); in adev_dump()
616 in_dump((const struct audio_stream *)adev->input, fd); in adev_dump()
628 if (adev->fd >= 0) in adev_close()
629 close(adev->fd); in adev_close()
639 int fd; in adev_open() local
644 fd = open(AUDIO_DEVICE_NAME, O_RDWR); in adev_open()
645 if (fd < 0) in adev_open()
650 adev->fd = fd; in adev_open()