Home | History | Annotate | Line # | Download | only in hdaudio
      1  1.1  jmcneill /* $NetBSD: hdaudio_mixer.h,v 1.1 2015/03/28 14:09:59 jmcneill Exp $ */
      2  1.1  jmcneill 
      3  1.1  jmcneill /*
      4  1.1  jmcneill  * Copyright (c) 2009 Precedence Technologies Ltd <support (at) precedence.co.uk>
      5  1.1  jmcneill  * Copyright (c) 2009 Jared D. McNeill <jmcneill (at) invisible.ca>
      6  1.1  jmcneill  * All rights reserved.
      7  1.1  jmcneill  *
      8  1.1  jmcneill  * This code is derived from software contributed to The NetBSD Foundation
      9  1.1  jmcneill  * by Precedence Technologies Ltd
     10  1.1  jmcneill  *
     11  1.1  jmcneill  * Redistribution and use in source and binary forms, with or without
     12  1.1  jmcneill  * modification, are permitted provided that the following conditions
     13  1.1  jmcneill  * are met:
     14  1.1  jmcneill  * 1. Redistributions of source code must retain the above copyright
     15  1.1  jmcneill  *    notice, this list of conditions and the following disclaimer.
     16  1.1  jmcneill  * 2. The name of the author may not be used to endorse or promote products
     17  1.1  jmcneill  *    derived from this software without specific prior written permission.
     18  1.1  jmcneill  *
     19  1.1  jmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     20  1.1  jmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     21  1.1  jmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     22  1.1  jmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     23  1.1  jmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     24  1.1  jmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     25  1.1  jmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
     26  1.1  jmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     27  1.1  jmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28  1.1  jmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29  1.1  jmcneill  * SUCH DAMAGE.
     30  1.1  jmcneill  */
     31  1.1  jmcneill 
     32  1.1  jmcneill #ifndef _HDAUDIO_MIXER_H
     33  1.1  jmcneill #define _HDAUDIO_MIXER_H
     34  1.1  jmcneill 
     35  1.1  jmcneill /* From src/lib/libossaudio/soundcard.h */
     36  1.1  jmcneill 
     37  1.1  jmcneill #define	HDAUDIO_MIXER_NRDEVICES	25
     38  1.1  jmcneill #define	HDAUDIO_MIXER_VOLUME	0
     39  1.1  jmcneill #define	HDAUDIO_MIXER_BASS	1
     40  1.1  jmcneill #define	HDAUDIO_MIXER_TREBLE	2
     41  1.1  jmcneill #define	HDAUDIO_MIXER_SYNTH	3
     42  1.1  jmcneill #define	HDAUDIO_MIXER_PCM	4
     43  1.1  jmcneill #define	HDAUDIO_MIXER_SPEAKER	5
     44  1.1  jmcneill #define	HDAUDIO_MIXER_LINE	6
     45  1.1  jmcneill #define	HDAUDIO_MIXER_MIC	7
     46  1.1  jmcneill #define	HDAUDIO_MIXER_CD	8
     47  1.1  jmcneill #define	HDAUDIO_MIXER_IMIX	9
     48  1.1  jmcneill #define	HDAUDIO_MIXER_ALTPCM	10
     49  1.1  jmcneill #define	HDAUDIO_MIXER_RECLEV	11
     50  1.1  jmcneill #define	HDAUDIO_MIXER_IGAIN	12
     51  1.1  jmcneill #define	HDAUDIO_MIXER_OGAIN	13
     52  1.1  jmcneill #define	HDAUDIO_MIXER_LINE1	14
     53  1.1  jmcneill #define	HDAUDIO_MIXER_LINE2	15
     54  1.1  jmcneill #define	HDAUDIO_MIXER_LINE3	16
     55  1.1  jmcneill #define	HDAUDIO_MIXER_DIGITAL1	17
     56  1.1  jmcneill #define	HDAUDIO_MIXER_DIGITAL2	18
     57  1.1  jmcneill #define	HDAUDIO_MIXER_DIGITAL3	19
     58  1.1  jmcneill #define	HDAUDIO_MIXER_PHONEIN	20
     59  1.1  jmcneill #define	HDAUDIO_MIXER_PHONEOUT	21
     60  1.1  jmcneill #define	HDAUDIO_MIXER_VIDEO	22
     61  1.1  jmcneill #define	HDAUDIO_MIXER_RADIO	23
     62  1.1  jmcneill #define	HDAUDIO_MIXER_MONITOR	24
     63  1.1  jmcneill 
     64  1.1  jmcneill #define	HDAUDIO_MASK(x)		(1 << (HDAUDIO_MIXER_##x))
     65  1.1  jmcneill 
     66  1.1  jmcneill #define	HDAUDIO_DEVICE_NAMES	{					   \
     67  1.1  jmcneill 	AudioNmaster, AudioNbass, AudioNtreble, AudioNfmsynth, AudioNdac,  \
     68  1.1  jmcneill 	"beep", AudioNline, AudioNmicrophone, AudioNcd,		   	   \
     69  1.1  jmcneill 	AudioNrecord, AudioNdac"2", "reclvl", AudioNinput, AudioNoutput,   \
     70  1.1  jmcneill 	AudioNline"1", AudioNline"2", AudioNline"3",			   \
     71  1.1  jmcneill 	"dig1", "dig2", "dig3", "phin", "phout",			   \
     72  1.1  jmcneill 	AudioNvideo, "radio", AudioNmonitor				   \
     73  1.1  jmcneill 				}
     74  1.1  jmcneill 
     75  1.1  jmcneill #endif /* !_HDAUDIO_MIXER_H */
     76