Home
last modified time | relevance | path

Searched refs:hw_data (Results 1 – 5 of 5) sorted by relevance

/external/tinyalsa_new/src/
Dmixer_hw.c59 struct mixer_hw_data *hw_data = data; in mixer_hw_close() local
61 if (!hw_data) in mixer_hw_close()
64 if (hw_data->fd >= 0) in mixer_hw_close()
65 close(hw_data->fd); in mixer_hw_close()
67 hw_data->fd = -1; in mixer_hw_close()
68 free(hw_data); in mixer_hw_close()
69 hw_data = NULL; in mixer_hw_close()
74 struct mixer_hw_data *hw_data = data; in mixer_hw_ioctl() local
82 return ioctl(hw_data->fd, cmd, arg); in mixer_hw_ioctl()
88 struct mixer_hw_data *hw_data = data; in mixer_hw_read_event() local
[all …]
Dpcm_hw.c60 struct pcm_hw_data *hw_data = data; in pcm_hw_close() local
62 if (hw_data->fd >= 0) in pcm_hw_close()
63 close(hw_data->fd); in pcm_hw_close()
65 free(hw_data); in pcm_hw_close()
70 struct pcm_hw_data *hw_data = data; in pcm_hw_ioctl() local
78 return ioctl(hw_data->fd, cmd, arg); in pcm_hw_ioctl()
90 struct pcm_hw_data *hw_data = data; in pcm_hw_mmap() local
92 return mmap(addr, length, prot, flags, hw_data->fd, offset); in pcm_hw_mmap()
103 struct pcm_hw_data *hw_data; in pcm_hw_open() local
107 hw_data = calloc(1, sizeof(*hw_data)); in pcm_hw_open()
[all …]
/external/tinyalsa/
Dmixer_hw.c57 struct mixer_hw_data *hw_data = data; in mixer_hw_close() local
59 if (!hw_data) in mixer_hw_close()
62 if (hw_data->fd >= 0) in mixer_hw_close()
63 close(hw_data->fd); in mixer_hw_close()
65 hw_data->fd = -1; in mixer_hw_close()
66 free(hw_data); in mixer_hw_close()
67 hw_data = NULL; in mixer_hw_close()
72 struct mixer_hw_data *hw_data = data; in mixer_hw_ioctl() local
80 return ioctl(hw_data->fd, cmd, arg); in mixer_hw_ioctl()
86 struct mixer_hw_data *hw_data = data; in mixer_hw_read_event() local
[all …]
Dpcm_hw.c57 struct pcm_hw_data *hw_data = data; in pcm_hw_close() local
59 if (hw_data->fd >= 0) in pcm_hw_close()
60 close(hw_data->fd); in pcm_hw_close()
62 free(hw_data); in pcm_hw_close()
67 struct pcm_hw_data *hw_data = data; in pcm_hw_ioctl() local
75 return ioctl(hw_data->fd, cmd, arg); in pcm_hw_ioctl()
87 struct pcm_hw_data *hw_data = data; in pcm_hw_mmap() local
89 return mmap(addr, length, prot, flags, hw_data->fd, offset); in pcm_hw_mmap()
101 struct pcm_hw_data *hw_data; in pcm_hw_open() local
105 hw_data = calloc(1, sizeof(*hw_data)); in pcm_hw_open()
[all …]
/external/tinycompress/
Dcompress_hw.c56 struct compress_hw_data *hw_data = data; in compress_hw_poll() local
58 fds->fd = hw_data->fd; in compress_hw_poll()
64 struct compress_hw_data *hw_data = data; in compress_hw_write() local
66 return write(hw_data->fd, buf, size); in compress_hw_write()
71 struct compress_hw_data *hw_data = data; in compress_hw_read() local
73 return read(hw_data->fd, buf, size); in compress_hw_read()
78 struct compress_hw_data *hw_data = data; in compress_hw_ioctl() local
86 return ioctl(hw_data->fd, cmd, arg); in compress_hw_ioctl()
91 struct compress_hw_data *hw_data = data; in compress_hw_close() local
93 if (hw_data->fd > 0) in compress_hw_close()
[all …]