Lines Matching refs:hw_data
59 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
90 return read(hw_data->fd, ev, size); in mixer_hw_read_event()
102 struct mixer_hw_data *hw_data; in mixer_hw_open() local
111 hw_data = calloc(1, sizeof(*hw_data)); in mixer_hw_open()
112 if (!hw_data) in mixer_hw_open()
115 hw_data->card = card; in mixer_hw_open()
116 hw_data->fd = fd; in mixer_hw_open()
117 *data = hw_data; in mixer_hw_open()