diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:01:22 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:17:47 -0500 |
commit | f956b4a3ae790e1bdde865ac42dd1b99b64a6256 (patch) | |
tree | 1f40f52a53f540048573ed94384b0f8e13d314dc /include | |
parent | 174c1f65e5b81f616a5b5c8e41fc2b5eeb7a71af (diff) |
[ALSA] Remove xxx_t typedefs: Mixer OSS-emulation
Modules: ALSA<-OSS emulation
Remove xxx_t typedefs from the core mixer OSS-emulation codes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/mixer_oss.h | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/include/sound/mixer_oss.h b/include/sound/mixer_oss.h index ed75b2fb00ab..ca5b4822b62c 100644 --- a/include/sound/mixer_oss.h +++ b/include/sound/mixer_oss.h | |||
@@ -24,51 +24,53 @@ | |||
24 | 24 | ||
25 | #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) | 25 | #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) |
26 | 26 | ||
27 | typedef struct _snd_oss_mixer_slot snd_mixer_oss_slot_t; | ||
28 | typedef struct _snd_oss_file snd_mixer_oss_file_t; | ||
29 | |||
30 | typedef int (*snd_mixer_oss_get_volume_t)(snd_mixer_oss_file_t *fmixer, snd_mixer_oss_slot_t *chn, int *left, int *right); | ||
31 | typedef int (*snd_mixer_oss_put_volume_t)(snd_mixer_oss_file_t *fmixer, snd_mixer_oss_slot_t *chn, int left, int right); | ||
32 | typedef int (*snd_mixer_oss_get_recsrc_t)(snd_mixer_oss_file_t *fmixer, snd_mixer_oss_slot_t *chn, int *active); | ||
33 | typedef int (*snd_mixer_oss_put_recsrc_t)(snd_mixer_oss_file_t *fmixer, snd_mixer_oss_slot_t *chn, int active); | ||
34 | typedef int (*snd_mixer_oss_get_recsrce_t)(snd_mixer_oss_file_t *fmixer, unsigned int *active_index); | ||
35 | typedef int (*snd_mixer_oss_put_recsrce_t)(snd_mixer_oss_file_t *fmixer, unsigned int active_index); | ||
36 | |||
37 | #define SNDRV_OSS_MAX_MIXERS 32 | 27 | #define SNDRV_OSS_MAX_MIXERS 32 |
38 | 28 | ||
39 | struct _snd_oss_mixer_slot { | 29 | struct snd_mixer_oss_file; |
30 | |||
31 | struct snd_mixer_oss_slot { | ||
40 | int number; | 32 | int number; |
41 | unsigned int stereo: 1; | 33 | unsigned int stereo: 1; |
42 | snd_mixer_oss_get_volume_t get_volume; | 34 | int (*get_volume)(struct snd_mixer_oss_file *fmixer, |
43 | snd_mixer_oss_put_volume_t put_volume; | 35 | struct snd_mixer_oss_slot *chn, |
44 | snd_mixer_oss_get_recsrc_t get_recsrc; | 36 | int *left, int *right); |
45 | snd_mixer_oss_put_recsrc_t put_recsrc; | 37 | int (*put_volume)(struct snd_mixer_oss_file *fmixer, |
38 | struct snd_mixer_oss_slot *chn, | ||
39 | int left, int right); | ||
40 | int (*get_recsrc)(struct snd_mixer_oss_file *fmixer, | ||
41 | struct snd_mixer_oss_slot *chn, | ||
42 | int *active); | ||
43 | int (*put_recsrc)(struct snd_mixer_oss_file *fmixer, | ||
44 | struct snd_mixer_oss_slot *chn, | ||
45 | int active); | ||
46 | unsigned long private_value; | 46 | unsigned long private_value; |
47 | void *private_data; | 47 | void *private_data; |
48 | void (*private_free)(snd_mixer_oss_slot_t *slot); | 48 | void (*private_free)(struct snd_mixer_oss_slot *slot); |
49 | int volume[2]; | 49 | int volume[2]; |
50 | }; | 50 | }; |
51 | 51 | ||
52 | struct _snd_oss_mixer { | 52 | struct snd_mixer_oss { |
53 | snd_card_t *card; | 53 | struct snd_card *card; |
54 | char id[16]; | 54 | char id[16]; |
55 | char name[32]; | 55 | char name[32]; |
56 | snd_mixer_oss_slot_t slots[SNDRV_OSS_MAX_MIXERS]; /* OSS mixer slots */ | 56 | struct snd_mixer_oss_slot slots[SNDRV_OSS_MAX_MIXERS]; /* OSS mixer slots */ |
57 | unsigned int mask_recsrc; /* exclusive recsrc mask */ | 57 | unsigned int mask_recsrc; /* exclusive recsrc mask */ |
58 | snd_mixer_oss_get_recsrce_t get_recsrc; | 58 | int (*get_recsrc)(struct snd_mixer_oss_file *fmixer, |
59 | snd_mixer_oss_put_recsrce_t put_recsrc; | 59 | unsigned int *active_index); |
60 | int (*put_recsrc)(struct snd_mixer_oss_file *fmixer, | ||
61 | unsigned int active_index); | ||
60 | void *private_data_recsrc; | 62 | void *private_data_recsrc; |
61 | void (*private_free_recsrc)(snd_mixer_oss_t *mixer); | 63 | void (*private_free_recsrc)(struct snd_mixer_oss *mixer); |
62 | struct semaphore reg_mutex; | 64 | struct semaphore reg_mutex; |
63 | snd_info_entry_t *proc_entry; | 65 | struct snd_info_entry *proc_entry; |
64 | int oss_dev_alloc; | 66 | int oss_dev_alloc; |
65 | /* --- */ | 67 | /* --- */ |
66 | int oss_recsrc; | 68 | int oss_recsrc; |
67 | }; | 69 | }; |
68 | 70 | ||
69 | struct _snd_oss_file { | 71 | struct snd_mixer_oss_file { |
70 | snd_card_t *card; | 72 | struct snd_card *card; |
71 | snd_mixer_oss_t *mixer; | 73 | struct snd_mixer_oss *mixer; |
72 | }; | 74 | }; |
73 | 75 | ||
74 | #endif /* CONFIG_SND_MIXER_OSS */ | 76 | #endif /* CONFIG_SND_MIXER_OSS */ |