Blame view

include/sound/mixer_oss.h 2.45 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
  #ifndef __SOUND_MIXER_OSS_H
  #define __SOUND_MIXER_OSS_H
  
  /*
   *  OSS MIXER API
c1017a4cd   Jaroslav Kysela   [ALSA] Changed Ja...
6
   *  Copyright (c) by Jaroslav Kysela <perex@perex.cz>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
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   Linus Torvalds   Linux-2.6.12-rc2
26
  #define SNDRV_OSS_MAX_MIXERS	32
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
27
28
29
  struct snd_mixer_oss_file;
  
  struct snd_mixer_oss_slot {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
30
31
  	int number;
  	unsigned int stereo: 1;
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
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   Linus Torvalds   Linux-2.6.12-rc2
44
45
  	unsigned long private_value;
  	void *private_data;
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
46
  	void (*private_free)(struct snd_mixer_oss_slot *slot);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
47
48
  	int volume[2];
  };
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
49
50
  struct snd_mixer_oss {
  	struct snd_card *card;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
51
52
  	char id[16];
  	char name[32];
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
53
  	struct snd_mixer_oss_slot slots[SNDRV_OSS_MAX_MIXERS]; /* OSS mixer slots */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
54
  	unsigned int mask_recsrc;		/* exclusive recsrc mask */
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
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   Linus Torvalds   Linux-2.6.12-rc2
59
  	void *private_data_recsrc;
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
60
  	void (*private_free_recsrc)(struct snd_mixer_oss *mixer);
1a60d4c5a   Ingo Molnar   [ALSA] semaphore ...
61
  	struct mutex reg_mutex;
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
62
  	struct snd_info_entry *proc_entry;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
63
64
65
66
  	int oss_dev_alloc;
  	/* --- */
  	int oss_recsrc;
  };
f956b4a3a   Takashi Iwai   [ALSA] Remove xxx...
67
68
69
  struct snd_mixer_oss_file {
  	struct snd_card *card;
  	struct snd_mixer_oss *mixer;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
70
  };
fea952e5c   Clemens Ladisch   ALSA: core: spars...
71
72
  int snd_mixer_oss_ioctl_card(struct snd_card *card,
  			     unsigned int cmd, unsigned long arg);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
73
74
75
  #endif /* CONFIG_SND_MIXER_OSS */
  
  #endif /* __SOUND_MIXER_OSS_H */