1*433d6423SLionel Sambuc /* Definitions used by /dev/audio and /dev/mixer. 2*433d6423SLionel Sambuc * 3*433d6423SLionel Sambuc * Feb 13 1995 Author: Michel R. Prevenier 4*433d6423SLionel Sambuc */ 5*433d6423SLionel Sambuc 6*433d6423SLionel Sambuc #ifndef SOUND_H 7*433d6423SLionel Sambuc #define SOUND_H 8*433d6423SLionel Sambuc 9*433d6423SLionel Sambuc /* ------- Mixer stuff ------- */ 10*433d6423SLionel Sambuc 11*433d6423SLionel Sambuc /* Available devices */ 12*433d6423SLionel Sambuc enum Device 13*433d6423SLionel Sambuc { 14*433d6423SLionel Sambuc Master, /* Master volume */ 15*433d6423SLionel Sambuc Dac, /* DSP, digitized sound */ 16*433d6423SLionel Sambuc Fm, /* Fm synthesized sound */ 17*433d6423SLionel Sambuc Cd, /* Compact */ 18*433d6423SLionel Sambuc Line, /* Line in */ 19*433d6423SLionel Sambuc Mic, /* Microphone */ 20*433d6423SLionel Sambuc Speaker, /* Pc speaker */ 21*433d6423SLionel Sambuc Treble, /* Treble */ 22*433d6423SLionel Sambuc Bass /* Bass */ 23*433d6423SLionel Sambuc }; 24*433d6423SLionel Sambuc 25*433d6423SLionel Sambuc enum InputState 26*433d6423SLionel Sambuc { 27*433d6423SLionel Sambuc ON, OFF 28*433d6423SLionel Sambuc }; 29*433d6423SLionel Sambuc 30*433d6423SLionel Sambuc /* Volume levels range from 0 to 31, bass & treble range from 0 to 15 */ 31*433d6423SLionel Sambuc struct volume_level 32*433d6423SLionel Sambuc { 33*433d6423SLionel Sambuc enum Device device; 34*433d6423SLionel Sambuc int left; 35*433d6423SLionel Sambuc int right; 36*433d6423SLionel Sambuc }; 37*433d6423SLionel Sambuc 38*433d6423SLionel Sambuc struct inout_ctrl 39*433d6423SLionel Sambuc { 40*433d6423SLionel Sambuc enum Device device; 41*433d6423SLionel Sambuc enum InputState left; 42*433d6423SLionel Sambuc enum InputState right; 43*433d6423SLionel Sambuc }; 44*433d6423SLionel Sambuc 45*433d6423SLionel Sambuc #endif /* SOUND_H */ 46