2 * PCM - Common generic plugin code
3 * Copyright (c) 2004 by Jaroslav Kysela <perex@perex.cz>
6 * This library is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 int snd_pcm_generic_close(snd_pcm_t *pcm);
28 int snd_pcm_generic_nonblock(snd_pcm_t *pcm, int nonblock);
29 int snd_pcm_generic_async(snd_pcm_t *pcm, int sig, pid_t pid);
30 int snd_pcm_generic_poll_descriptors_count(snd_pcm_t *pcm);
31 int snd_pcm_generic_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space);
32 int snd_pcm_generic_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
33 int snd_pcm_generic_info(snd_pcm_t *pcm, snd_pcm_info_t * info);
34 int snd_pcm_generic_hw_free(snd_pcm_t *pcm);
35 int snd_pcm_generic_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params);
36 int snd_pcm_generic_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
37 int snd_pcm_generic_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
38 int snd_pcm_generic_channel_info(snd_pcm_t *pcm, snd_pcm_channel_info_t * info);
39 int snd_pcm_generic_channel_info_no_buffer(snd_pcm_t *pcm, snd_pcm_channel_info_t * info);
40 int snd_pcm_generic_status(snd_pcm_t *pcm, snd_pcm_status_t * status);
41 snd_pcm_state_t snd_pcm_generic_state(snd_pcm_t *pcm);
42 int snd_pcm_generic_prepare(snd_pcm_t *pcm);
43 int snd_pcm_generic_hwsync(snd_pcm_t *pcm);
44 int snd_pcm_generic_reset(snd_pcm_t *pcm);
45 int snd_pcm_generic_start(snd_pcm_t *pcm);
46 int snd_pcm_generic_drop(snd_pcm_t *pcm);
47 int snd_pcm_generic_drain(snd_pcm_t *pcm);
48 int snd_pcm_generic_pause(snd_pcm_t *pcm, int enable);
49 int snd_pcm_generic_resume(snd_pcm_t *pcm);
50 int snd_pcm_generic_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
51 snd_pcm_sframes_t snd_pcm_generic_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
52 snd_pcm_sframes_t snd_pcm_generic_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
53 int snd_pcm_generic_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2);
54 int snd_pcm_generic_link_slaves(snd_pcm_t *pcm, snd_pcm_t *master);
55 int snd_pcm_generic_unlink(snd_pcm_t *pcm);
56 snd_pcm_sframes_t snd_pcm_generic_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
57 snd_pcm_sframes_t snd_pcm_generic_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
58 snd_pcm_sframes_t snd_pcm_generic_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
59 snd_pcm_sframes_t snd_pcm_generic_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
60 snd_pcm_sframes_t snd_pcm_generic_mmap_commit(snd_pcm_t *pcm,
61 snd_pcm_uframes_t offset,
62 snd_pcm_uframes_t size);
63 snd_pcm_sframes_t snd_pcm_generic_avail_update(snd_pcm_t *pcm);
64 int snd_pcm_generic_mmap(snd_pcm_t *pcm);
65 int snd_pcm_generic_munmap(snd_pcm_t *pcm);