Lines Matching refs:hw
44 snd_seq_hw_t *hw = seq->private_data;
47 if (close(hw->fd)) {
51 free(hw);
57 snd_seq_hw_t *hw = seq->private_data;
60 if ((flags = fcntl(hw->fd, F_GETFL)) < 0) {
68 if (fcntl(hw->fd, F_SETFL, flags) < 0) {
77 snd_seq_hw_t *hw = seq->private_data;
79 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) {
88 snd_seq_hw_t *hw = seq->private_data;
89 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SYSTEM_INFO, info) < 0) {
98 snd_seq_hw_t *hw = seq->private_data;
100 if (SNDRV_PROTOCOL_VERSION(1, 0, 3) <= hw->version &&
112 snd_seq_hw_t *hw = seq->private_data;
113 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_INFO, info) < 0) {
117 if (hw->version < SNDRV_PROTOCOL_VERSION(1, 0, 2)) {
126 snd_seq_hw_t *hw = seq->private_data;
128 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, info) < 0) {
138 snd_seq_hw_t *hw = seq->private_data;
144 if (hw->version < SNDRV_PROTOCOL_VERSION(1, 0, 3))
152 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_UMP_INFO, &buf) < 0)
160 snd_seq_hw_t *hw = seq->private_data;
166 if (hw->version < SNDRV_PROTOCOL_VERSION(1, 0, 3))
176 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_UMP_INFO, &buf) < 0)
183 snd_seq_hw_t *hw = seq->private_data;
184 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CREATE_PORT, port) < 0) {
193 snd_seq_hw_t *hw = seq->private_data;
194 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_DELETE_PORT, port) < 0) {
203 snd_seq_hw_t *hw = seq->private_data;
204 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_PORT_INFO, info) < 0) {
213 snd_seq_hw_t *hw = seq->private_data;
214 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_PORT_INFO, info) < 0) {
223 snd_seq_hw_t *hw = seq->private_data;
224 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_SUBSCRIPTION, sub) < 0) {
233 snd_seq_hw_t *hw = seq->private_data;
234 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, sub) < 0) {
243 snd_seq_hw_t *hw = seq->private_data;
244 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT, sub) < 0) {
253 snd_seq_hw_t *hw = seq->private_data;
254 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_QUERY_SUBS, subs) < 0) {
263 snd_seq_hw_t *hw = seq->private_data;
264 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS, status) < 0) {
273 snd_seq_hw_t *hw = seq->private_data;
274 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_QUEUE_TEMPO, tempo) < 0) {
283 snd_seq_hw_t *hw = seq->private_data;
284 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO, tempo) < 0) {
293 snd_seq_hw_t *hw = seq->private_data;
294 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER, timer) < 0) {
303 snd_seq_hw_t *hw = seq->private_data;
304 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER, timer) < 0) {
313 snd_seq_hw_t *hw = seq->private_data;
314 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT, info) < 0) {
323 snd_seq_hw_t *hw = seq->private_data;
324 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT, info) < 0) {
333 snd_seq_hw_t *hw = seq->private_data;
334 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CREATE_QUEUE, info) < 0) {
343 snd_seq_hw_t *hw = seq->private_data;
344 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_DELETE_QUEUE, info) < 0) {
353 snd_seq_hw_t *hw = seq->private_data;
354 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_QUEUE_INFO, info) < 0) {
363 snd_seq_hw_t *hw = seq->private_data;
364 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_QUEUE_INFO, info) < 0) {
373 snd_seq_hw_t *hw = seq->private_data;
374 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE, info) < 0) {
383 snd_seq_hw_t *hw = seq->private_data;
384 ssize_t result = write(hw->fd, buf, len);
392 snd_seq_hw_t *hw = seq->private_data;
393 ssize_t result = read(hw->fd, buf, len);
401 snd_seq_hw_t *hw = seq->private_data;
402 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_REMOVE_EVENTS, rmp) < 0) {
411 snd_seq_hw_t *hw = seq->private_data;
412 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_POOL, info) < 0) {
421 snd_seq_hw_t *hw = seq->private_data;
422 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_POOL, info) < 0) {
431 snd_seq_hw_t *hw = seq->private_data;
432 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT, info) < 0) {
436 if (hw->version < SNDRV_PROTOCOL_VERSION(1, 0, 2)) {
445 snd_seq_hw_t *hw = seq->private_data;
446 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, info) < 0) {
495 snd_seq_hw_t *hw;
546 hw = calloc(1, sizeof(snd_seq_hw_t));
547 if (hw == NULL) {
554 free(hw);
558 hw->fd = fd;
559 hw->version = ver;
563 free(hw);
573 free(hw);
588 seq->private_data = hw;