mixer.h revision 50724
150724Scg/* 250724Scg * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 350724Scg * All rights reserved. 450724Scg * 550724Scg * Redistribution and use in source and binary forms, with or without 650724Scg * modification, are permitted provided that the following conditions 750724Scg * are met: 850724Scg * 1. Redistributions of source code must retain the above copyright 950724Scg * notice, this list of conditions and the following disclaimer. 1050724Scg * 2. Redistributions in binary form must reproduce the above copyright 1150724Scg * notice, this list of conditions and the following disclaimer in the 1250724Scg * documentation and/or other materials provided with the distribution. 1350724Scg * 1450724Scg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1550724Scg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1650724Scg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1750724Scg * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1850724Scg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1950724Scg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2050724Scg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2150724Scg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2250724Scg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2350724Scg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2450724Scg * SUCH DAMAGE. 2550724Scg * 2650724Scg * $Id$ 2750724Scg */ 2850724Scg 2950724Scgextern int mixer_init(snddev_info *d, snd_mixer *m, void *devinfo); 3050724Scgextern int mixer_set(snddev_info *d, unsigned dev, unsigned lev); 3150724Scgextern int mixer_get(snddev_info *d, int dev); 3250724Scgextern int mixer_setrecsrc(snddev_info *d, u_int32_t src); 3350724Scgextern int mixer_getrecsrc(snddev_info *d); 3450724Scgextern int mixer_ioctl(snddev_info *d, u_long cmd, caddr_t arg); 3550724Scg 3650724Scgextern void change_bits(mixer_tab *t, u_char *regval, int dev, int chn, int newval); 3750724Scg 3850724Scgvoid mix_setdevs(snd_mixer *m, u_int32_t v); 3950724Scgvoid mix_setrecdevs(snd_mixer *m, u_int32_t v); 4050724Scgu_int32_t mix_getdevs(snd_mixer *m); 4150724Scgu_int32_t mix_getrecdevs(snd_mixer *m); 4250724Scgvoid *mix_getdevinfo(snd_mixer *m); 43