/usr/include/alsa/mixer_ordinary.h is in liboss4-salsa-dev 4.2-build2005-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | /**
* \file <alsa/mixer_ordinary.h>
* \brief Application interface library for the ALSA driver
* \author Jaroslav Kysela <perex@suse.cz>
* \date 2003
*
* Application interface library for the ALSA driver.
* See the \ref mixer_ordinary page for more details.
*
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __ALSA_MIXER_SIMPLE_H
#define __ALSA_MIXER_SIMPLE_H
#include <alsa/asoundlib.h>
/*
* Abbreviations:
*
* FLVOL - Front Left Volume (0-1000)
* FCLVOL - Front Center Left Volume (0-1000)
* FCVOL - Front Center Volume (0-1000)
* FCRVOL - Front Center Right Volume (0-1000)
* FRVOL - Front Right Volume (0-1000)
* FSLVOL - Front Side Left Volume (0-1000)
* FSRVOL - Front Side Right Volume (0-1000)
* RSLVOL - Rear Side Left Volume (0-1000)
* RSRVOL - Rear Side Right Volume (0-1000)
* RLVOL - Rear Left Volume (0-1000)
* RCVOL - Rear Center Volume (0-1000)
* RRVOL - Rear Right Volume (0-1000)
* LFEVOL - Low Frequency Effects (Subwoofer) Volume (0-1000)
* OVRVOL - Overhead Volume (0-1000)
*/
/** Ordinary Mixer I/O type */
enum sndo_mixer_io_type {
/*
* playback section
*/
/* Master */
SNDO_MIO_MASTER_FLVOL = 0 * 0x40,
SNDO_MIO_MASTER_FCLVOL,
SNDO_MIO_MASTER_FCVOL,
SNDO_MIO_MASTER_FCRVOL,
SNDO_MIO_MASTER_FRVOL,
SNDO_MIO_MASTER_FSLVOL,
SNDO_MIO_MASTER_FSRVOL,
SNDO_MIO_MASTER_RSLVOL,
SNDO_MIO_MASTER_RSRVOL,
SNDO_MIO_MASTER_RLVOL,
SNDO_MIO_MASTER_RCVOL,
SNDO_MIO_MASTER_RRVOL,
SNDO_MIO_MASTER_LFEVOL,
SNDO_MIO_MASTER_OVRVOL,
/* PCM */
SNDO_MIO_PCM_FLVOL = 1 * 0x40,
SNDO_MIO_PCM_FCLVOL,
SNDO_MIO_PCM_FCVOL,
SNDO_MIO_PCM_FCRVOL,
SNDO_MIO_PCM_FRVOL,
SNDO_MIO_PCM_FSLVOL,
SNDO_MIO_PCM_FSRVOL,
SNDO_MIO_PCM_RSLVOL,
SNDO_MIO_PCM_RSRVOL,
SNDO_MIO_PCM_RLVOL,
SNDO_MIO_PCM_RCVOL,
SNDO_MIO_PCM_RRVOL,
SNDO_MIO_PCM_LFEVOL,
SNDO_MIO_PCM_OVRVOL,
/* LINE */
SNDO_MIO_LINE_FLVOL = 2 * 0x40,
SNDO_MIO_LINE_FCLVOL,
SNDO_MI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UX_RSRVOL,
SNDO_MIO_AUX_RLVOL,
SNDO_MIO_AUX_RCVOL,
SNDO_MIO_AUX_RRVOL,
SNDO_MIO_AUX_LFEVOL,
SNDO_MIO_AUX_OVRVOL,
/*
* capture section
*/
/* capture gain */
SNDO_MIO_CGAIN_FL = 0x8000,
SNDO_MIO_CGAIN_FCL,
SNDO_MIO_CGAIN_FC,
SNDO_MIO_CGAIN_FCR,
SNDO_MIO_CGAIN_FR,
SNDO_MIO_CGAIN_FSL,
SNDO_MIO_CGAIN_FSR,
SNDO_MIO_CGAIN_RSL,
SNDO_MIO_CGAIN_RSR,
SNDO_MIO_CGAIN_RL,
SNDO_MIO_CGAIN_RC,
SNDO_MIO_CGAIN_RR,
SNDO_MIO_CGAIN_LFE,
SNDO_MIO_CGAIN_OVR,
/* capture source (0 = off, 1 = on) */
SNDO_MIO_CSOURCE_MIC = 0x8100,
SNDO_MIO_CSOURCE_LINE,
SNDO_MIO_CSOURCE_CD,
SNDO_MIO_CSOURCE_AUX,
SNDO_MIO_CSOURCE_MIX,
/* misc */
SNDO_MIO_STEREO = 0x8200, /* (0 = off, 1 = on) standard stereo source, might be converted to use all outputs */
};
typedef struct sndo_mixer sndo_mixer_t;
struct alisp_cfg;
#ifdef __cplusplus
extern "C" {
#endif
/**
* \defgroup Mixer_ordinary Mixer Ordinary Interface
* See the \ref mixer_ordinary page for more details.
* \{
*/
int sndo_mixer_open(sndo_mixer_t **pmixer, const char *playback_name, const char *capture_name, struct alisp_cfg *lconf);
int sndo_mixer_open_pcm(sndo_mixer_t **pmixer, snd_pcm_t *playback_pcm, snd_pcm_t *capture_pcm, struct alisp_cfg *lconf);
int sndo_mixer_close(sndo_mixer_t *mixer);
int sndo_mixer_poll_descriptors_count(sndo_mixer_t *mixer);
int sndo_mixer_poll_descriptors(sndo_mixer_t *mixer, struct pollfd *pfds, unsigned int space);
int sndo_mixer_poll_descriptors_revents(sndo_mixer_t *mixer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
int sndo_mixer_io_get_name(enum sndo_mixer_io_type type, char **name);
int sndo_mixer_io_get(sndo_mixer_t *mixer, enum sndo_mixer_io_type type, int *val);
int sndo_mixer_io_set(sndo_mixer_t *mixer, enum sndo_mixer_io_type type, int *val);
int sndo_mixer_io_try_set(sndo_mixer_t *mixer, enum sndo_mixer_io_type type, int *val);
int sndo_mixer_io_get_dB(sndo_mixer_t *mixer, enum sndo_mixer_io_type type, int *val);
int sndo_mixer_io_set_dB(sndo_mixer_t *mixer, enum sndo_mixer_io_type type, int *val);
int sndo_mixer_io_try_set_dB(sndo_mixer_t *mixer, enum sndo_mixer_io_type type, int *val);
int sndo_mixer_io_change(sndo_mixer_t *mixer, enum sndo_mixer_io_type *changed, int changed_array_size);
/** \} */
#ifdef __cplusplus
}
#endif
#endif /* __ALSA_MIXER_SIMPLE_H */
|