1139749Simp#- 273765Scg# KOBJ 370134Scg# 470134Scg# Copyright (c) 2000 Cameron Grant <cg@freebsd.org> 570134Scg# All rights reserved. 670134Scg# 770134Scg# Redistribution and use in source and binary forms, with or without 870134Scg# modification, are permitted provided that the following conditions 970134Scg# are met: 1070134Scg# 1. Redistributions of source code must retain the above copyright 1170134Scg# notice, this list of conditions and the following disclaimer. 1270134Scg# 2. Redistributions in binary form must reproduce the above copyright 1370134Scg# notice, this list of conditions and the following disclaimer in the 1470134Scg# documentation and/or other materials provided with the distribution. 1570134Scg# 1670134Scg# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1770134Scg# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1870134Scg# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1970134Scg# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2070134Scg# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2170134Scg# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2270134Scg# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2370134Scg# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2470134Scg# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2570134Scg# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2670134Scg# SUCH DAMAGE. 2770134Scg# 2870134Scg# $FreeBSD: releng/10.2/sys/dev/sound/pcm/mixer_if.m 139749 2005-01-06 01:43:34Z imp $ 2970134Scg# 3070134Scg 3170134Scg#include <dev/sound/pcm/sound.h> 3270134Scg 3370134ScgINTERFACE mixer; 3470134Scg 3570134ScgCODE { 3670134Scg 3770134Scg static int 3874763Scg mixer_noreinit(struct snd_mixer *m) 3970134Scg { 4070134Scg return 0; 4170134Scg } 4270134Scg 4370134Scg}; 4470134Scg 4570134ScgMETHOD int init { 4674763Scg struct snd_mixer *m; 4770134Scg}; 4870134Scg 4970134ScgMETHOD int reinit { 5074763Scg struct snd_mixer *m; 5170134Scg} DEFAULT mixer_noreinit; 5270134Scg 5370134ScgMETHOD int uninit { 5474763Scg struct snd_mixer *m; 5570134Scg}; 5670134Scg 5770134ScgMETHOD int set { 5874763Scg struct snd_mixer *m; 5970134Scg unsigned dev; 6070134Scg unsigned left; 6170134Scg unsigned right; 6270134Scg}; 6370134Scg 6470134ScgMETHOD u_int32_t setrecsrc { 6574763Scg struct snd_mixer *m; 6695845Sobrien u_int32_t src; 6770134Scg}; 68