Blame view
include/sound/mixer_oss.h
2.35 KB
1da177e4c
|
1 2 3 4 5 |
#ifndef __SOUND_MIXER_OSS_H #define __SOUND_MIXER_OSS_H /* * OSS MIXER API |
c1017a4cd
|
6 |
* Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
1da177e4c
|
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
* * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) |
1da177e4c
|
26 |
#define SNDRV_OSS_MAX_MIXERS 32 |
f956b4a3a
|
27 28 29 |
struct snd_mixer_oss_file; struct snd_mixer_oss_slot { |
1da177e4c
|
30 31 |
int number; unsigned int stereo: 1; |
f956b4a3a
|
32 33 34 35 36 37 38 39 40 41 42 43 |
int (*get_volume)(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *chn, int *left, int *right); int (*put_volume)(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *chn, int left, int right); int (*get_recsrc)(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *chn, int *active); int (*put_recsrc)(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *chn, int active); |
1da177e4c
|
44 45 |
unsigned long private_value; void *private_data; |
f956b4a3a
|
46 |
void (*private_free)(struct snd_mixer_oss_slot *slot); |
1da177e4c
|
47 48 |
int volume[2]; }; |
f956b4a3a
|
49 50 |
struct snd_mixer_oss { struct snd_card *card; |
1da177e4c
|
51 52 |
char id[16]; char name[32]; |
f956b4a3a
|
53 |
struct snd_mixer_oss_slot slots[SNDRV_OSS_MAX_MIXERS]; /* OSS mixer slots */ |
1da177e4c
|
54 |
unsigned int mask_recsrc; /* exclusive recsrc mask */ |
f956b4a3a
|
55 56 57 58 |
int (*get_recsrc)(struct snd_mixer_oss_file *fmixer, unsigned int *active_index); int (*put_recsrc)(struct snd_mixer_oss_file *fmixer, unsigned int active_index); |
1da177e4c
|
59 |
void *private_data_recsrc; |
f956b4a3a
|
60 |
void (*private_free_recsrc)(struct snd_mixer_oss *mixer); |
1a60d4c5a
|
61 |
struct mutex reg_mutex; |
f956b4a3a
|
62 |
struct snd_info_entry *proc_entry; |
1da177e4c
|
63 64 65 66 |
int oss_dev_alloc; /* --- */ int oss_recsrc; }; |
f956b4a3a
|
67 68 69 |
struct snd_mixer_oss_file { struct snd_card *card; struct snd_mixer_oss *mixer; |
1da177e4c
|
70 71 72 73 74 |
}; #endif /* CONFIG_SND_MIXER_OSS */ #endif /* __SOUND_MIXER_OSS_H */ |