Lines Matching refs:ctl
50 static int snd_ctl_shm_action(snd_ctl_t *ctl) in snd_ctl_shm_action() argument
52 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_action()
69 static int snd_ctl_shm_action_fd(snd_ctl_t *ctl, int *fd) in snd_ctl_shm_action_fd() argument
71 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_action_fd()
88 static int snd_ctl_shm_close(snd_ctl_t *ctl) in snd_ctl_shm_close() argument
90 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_close()
94 result = snd_ctl_shm_action(ctl); in snd_ctl_shm_close()
106 static int snd_ctl_shm_async(snd_ctl_t *ctl, int sig, pid_t pid) in snd_ctl_shm_async() argument
108 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_async()
115 return snd_ctl_shm_action(ctl); in snd_ctl_shm_async()
118 static int snd_ctl_shm_poll_descriptor(snd_ctl_t *ctl) in snd_ctl_shm_poll_descriptor() argument
120 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_poll_descriptor()
124 err = snd_ctl_shm_action_fd(ctl, &fd); in snd_ctl_shm_poll_descriptor()
130 static int snd_ctl_shm_subscribe_events(snd_ctl_t *ctl, int subscribe) in snd_ctl_shm_subscribe_events() argument
132 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_subscribe_events()
136 return snd_ctl_shm_action(ctl); in snd_ctl_shm_subscribe_events()
139 static int snd_ctl_shm_card_info(snd_ctl_t *ctl, snd_ctl_card_info_t *info) in snd_ctl_shm_card_info() argument
141 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_card_info()
146 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_card_info()
153 static int snd_ctl_shm_elem_list(snd_ctl_t *ctl, snd_ctl_elem_list_t *list) in snd_ctl_shm_elem_list() argument
155 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_list()
165 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_elem_list()
175 static int snd_ctl_shm_elem_info(snd_ctl_t *ctl, snd_ctl_elem_info_t *info) in snd_ctl_shm_elem_info() argument
177 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_info()
182 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_elem_info()
189 static int snd_ctl_shm_elem_read(snd_ctl_t *ctl, snd_ctl_elem_value_t *control) in snd_ctl_shm_elem_read() argument
191 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_read()
196 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_elem_read()
203 static int snd_ctl_shm_elem_write(snd_ctl_t *ctl, snd_ctl_elem_value_t *control) in snd_ctl_shm_elem_write() argument
205 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_write()
210 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_elem_write()
217 static int snd_ctl_shm_elem_lock(snd_ctl_t *ctl, snd_ctl_elem_id_t *id) in snd_ctl_shm_elem_lock() argument
219 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_lock()
224 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_elem_lock()
231 static int snd_ctl_shm_elem_unlock(snd_ctl_t *ctl, snd_ctl_elem_id_t *id) in snd_ctl_shm_elem_unlock() argument
233 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_unlock()
238 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_elem_unlock()
245 static int snd_ctl_shm_hwdep_next_device(snd_ctl_t *ctl, int * device) in snd_ctl_shm_hwdep_next_device() argument
247 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_hwdep_next_device()
252 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_hwdep_next_device()
259 static int snd_ctl_shm_hwdep_info(snd_ctl_t *ctl, snd_hwdep_info_t * info) in snd_ctl_shm_hwdep_info() argument
261 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_hwdep_info()
266 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_hwdep_info()
273 static int snd_ctl_shm_pcm_next_device(snd_ctl_t *ctl, int * device) in snd_ctl_shm_pcm_next_device() argument
275 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_pcm_next_device()
280 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_pcm_next_device()
287 static int snd_ctl_shm_pcm_info(snd_ctl_t *ctl, snd_pcm_info_t * info) in snd_ctl_shm_pcm_info() argument
289 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_pcm_info()
294 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_pcm_info()
301 static int snd_ctl_shm_pcm_prefer_subdevice(snd_ctl_t *ctl, int subdev) in snd_ctl_shm_pcm_prefer_subdevice() argument
303 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_pcm_prefer_subdevice()
307 return snd_ctl_shm_action(ctl); in snd_ctl_shm_pcm_prefer_subdevice()
310 static int snd_ctl_shm_rawmidi_next_device(snd_ctl_t *ctl, int * device) in snd_ctl_shm_rawmidi_next_device() argument
312 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_rawmidi_next_device()
317 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_rawmidi_next_device()
324 static int snd_ctl_shm_rawmidi_info(snd_ctl_t *ctl, snd_rawmidi_info_t * info) in snd_ctl_shm_rawmidi_info() argument
326 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_rawmidi_info()
331 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_rawmidi_info()
338 static int snd_ctl_shm_rawmidi_prefer_subdevice(snd_ctl_t *ctl, int subdev) in snd_ctl_shm_rawmidi_prefer_subdevice() argument
340 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_rawmidi_prefer_subdevice()
344 return snd_ctl_shm_action(ctl); in snd_ctl_shm_rawmidi_prefer_subdevice()
347 static int snd_ctl_shm_set_power_state(snd_ctl_t *ctl, unsigned int state) in snd_ctl_shm_set_power_state() argument
349 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_set_power_state()
353 return snd_ctl_shm_action(ctl); in snd_ctl_shm_set_power_state()
356 static int snd_ctl_shm_get_power_state(snd_ctl_t *ctl, unsigned int *state) in snd_ctl_shm_get_power_state() argument
358 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_get_power_state()
362 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_get_power_state()
369 static int snd_ctl_shm_read(snd_ctl_t *ctl, snd_ctl_event_t *event) in snd_ctl_shm_read() argument
374 err = snd_ctl_wait(ctl, -1); in snd_ctl_shm_read()
377 shm = ctl->private_data; in snd_ctl_shm_read()
381 err = snd_ctl_shm_action(ctl); in snd_ctl_shm_read()
436 snd_ctl_t *ctl; in snd_ctl_shm_open() local
505 err = snd_ctl_new(&ctl, SND_CTL_TYPE_SHM, name); in snd_ctl_shm_open()
510 ctl->ops = &snd_ctl_shm_ops; in snd_ctl_shm_open()
511 ctl->private_data = shm; in snd_ctl_shm_open()
512 err = snd_ctl_shm_poll_descriptor(ctl); in snd_ctl_shm_open()
514 snd_ctl_close(ctl); in snd_ctl_shm_open()
517 ctl->poll_fd = err; in snd_ctl_shm_open()
518 *handlep = ctl; in snd_ctl_shm_open()