Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pcm/channel.h
| Show All 22 Lines | |||||
| * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||||
| * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
| * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
| * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
| * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
| * SUCH DAMAGE. | * SUCH DAMAGE. | ||||
| */ | */ | ||||
| #include "channel_if.h" | |||||
| struct pcmchan_caps { | struct pcmchan_caps { | ||||
| u_int32_t minspeed, maxspeed; | u_int32_t minspeed, maxspeed; | ||||
| u_int32_t *fmtlist; | u_int32_t *fmtlist; | ||||
| u_int32_t caps; | u_int32_t caps; | ||||
| }; | }; | ||||
| struct pcmchan_matrix { | struct pcmchan_matrix { | ||||
| int id; | int id; | ||||
| ▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | |||||
| #define CHN_INSERT_SORT_ASCEND(x, y, z) CHN_INSERT_SORT(>, x, y, z) | #define CHN_INSERT_SORT_ASCEND(x, y, z) CHN_INSERT_SORT(>, x, y, z) | ||||
| #define CHN_INSERT_SORT_DESCEND(x, y, z) CHN_INSERT_SORT(<, x, y, z) | #define CHN_INSERT_SORT_DESCEND(x, y, z) CHN_INSERT_SORT(<, x, y, z) | ||||
| #define CHN_BUF_PARENT(x, y) \ | #define CHN_BUF_PARENT(x, y) \ | ||||
| (((x) != NULL && (x)->parentchannel != NULL && \ | (((x) != NULL && (x)->parentchannel != NULL && \ | ||||
| (x)->parentchannel->bufhard != NULL) ? \ | (x)->parentchannel->bufhard != NULL) ? \ | ||||
| (x)->parentchannel->bufhard : (y)) | (x)->parentchannel->bufhard : (y)) | ||||
| #include "channel_if.h" | |||||
| int chn_reinit(struct pcm_channel *c); | int chn_reinit(struct pcm_channel *c); | ||||
| int chn_write(struct pcm_channel *c, struct uio *buf); | int chn_write(struct pcm_channel *c, struct uio *buf); | ||||
| int chn_read(struct pcm_channel *c, struct uio *buf); | int chn_read(struct pcm_channel *c, struct uio *buf); | ||||
| u_int32_t chn_start(struct pcm_channel *c, int force); | u_int32_t chn_start(struct pcm_channel *c, int force); | ||||
| int chn_sync(struct pcm_channel *c, int threshold); | int chn_sync(struct pcm_channel *c, int threshold); | ||||
| int chn_flush(struct pcm_channel *c); | int chn_flush(struct pcm_channel *c); | ||||
| int chn_poll(struct pcm_channel *c, int ev, struct thread *td); | int chn_poll(struct pcm_channel *c, int ev, struct thread *td); | ||||
| ▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines | |||||