Lines Matching refs:hw

61 	snd_ctl_hw_t *hw = handle->private_data;
63 res = close(hw->fd) < 0 ? -errno : 0;
64 free(hw);
70 snd_ctl_hw_t *hw = handle->private_data;
72 int fd = hw->fd;
91 snd_ctl_hw_t *hw = ctl->private_data;
92 int fd = hw->fd;
121 snd_ctl_hw_t *hw = handle->private_data;
122 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS, &subscribe) < 0) {
131 snd_ctl_hw_t *hw = handle->private_data;
132 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_CARD_INFO, info) < 0) {
141 snd_ctl_hw_t *hw = handle->private_data;
142 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_LIST, list) < 0)
149 snd_ctl_hw_t *hw = handle->private_data;
150 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_INFO, info) < 0)
157 snd_ctl_hw_t *hw = handle->private_data;
160 hw->protocol < SNDRV_PROTOCOL_VERSION(2, 0, 7))
163 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_ADD, info) < 0)
170 snd_ctl_hw_t *hw = handle->private_data;
173 hw->protocol < SNDRV_PROTOCOL_VERSION(2, 0, 7))
176 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_REPLACE, info) < 0)
183 snd_ctl_hw_t *hw = handle->private_data;
184 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_REMOVE, id) < 0)
191 snd_ctl_hw_t *hw = handle->private_data;
192 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_READ, control) < 0)
199 snd_ctl_hw_t *hw = handle->private_data;
200 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, control) < 0)
207 snd_ctl_hw_t *hw = handle->private_data;
208 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_LOCK, id) < 0)
215 snd_ctl_hw_t *hw = handle->private_data;
216 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_UNLOCK, id) < 0)
226 snd_ctl_hw_t *hw = handle->private_data;
230 if (hw->protocol < SNDRV_PROTOCOL_VERSION(2, 0, 4))
245 if (ioctl(hw->fd, inum, xtlv) < 0) {
264 snd_ctl_hw_t *hw = handle->private_data;
265 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE, device) < 0)
272 snd_ctl_hw_t *hw = handle->private_data;
273 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_HWDEP_INFO, info) < 0)
280 snd_ctl_hw_t *hw = handle->private_data;
281 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE, device) < 0)
288 snd_ctl_hw_t *hw = handle->private_data;
289 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_PCM_INFO, info) < 0)
299 snd_ctl_hw_t *hw = handle->private_data;
300 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE, &subdev) < 0)
307 snd_ctl_hw_t *hw = handle->private_data;
308 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE, device) < 0)
315 snd_ctl_hw_t *hw = handle->private_data;
316 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_RAWMIDI_INFO, info) < 0)
323 snd_ctl_hw_t *hw = handle->private_data;
324 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE, &subdev) < 0)
331 snd_ctl_hw_t *hw = handle->private_data;
332 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_UMP_NEXT_DEVICE, device) < 0)
340 snd_ctl_hw_t *hw = handle->private_data;
341 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_UMP_ENDPOINT_INFO, info) < 0)
349 snd_ctl_hw_t *hw = handle->private_data;
350 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_UMP_BLOCK_INFO, info) < 0)
357 snd_ctl_hw_t *hw = handle->private_data;
358 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_POWER, &state) < 0)
365 snd_ctl_hw_t *hw = handle->private_data;
366 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_POWER_STATE, state) < 0)
373 snd_ctl_hw_t *hw = handle->private_data;
374 ssize_t res = read(hw->fd, event, sizeof(*event));
418 * \brief Creates a new hw control
434 snd_ctl_hw_t *hw;
468 hw = calloc(1, sizeof(snd_ctl_hw_t));
469 if (hw == NULL) {
473 hw->card = card;
474 hw->fd = fd;
475 hw->protocol = ver;
480 free(hw);
484 ctl->private_data = hw;
492 \section control_plugins_hw Plugin: hw
499 type hw # Kernel PCM
514 * \brief Creates a new hw control handle
518 * \param conf Configuration node with hw PCM description