diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-01-16 02:32:08 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:30:00 -0500 |
commit | ccc80fb467a88ceb7ce1b68546632b91e5ba6c18 (patch) | |
tree | 097f13a250fa155faeacc1fb127a000cc19ebbb6 /sound/pci/oxygen/oxygen.h | |
parent | e85e09250ab552fab6925bcde7c77746101b2d40 (diff) |
[ALSA] oxygen: add control filter to model struct
Allow the models to modify mixer controls before they are added to the
card.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/oxygen.h')
-rw-r--r-- | sound/pci/oxygen/oxygen.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h index 9b0234d81d4e..7278c1563597 100644 --- a/sound/pci/oxygen/oxygen.h +++ b/sound/pci/oxygen/oxygen.h | |||
@@ -35,6 +35,7 @@ struct pci_dev; | |||
35 | struct snd_card; | 35 | struct snd_card; |
36 | struct snd_pcm_substream; | 36 | struct snd_pcm_substream; |
37 | struct snd_pcm_hw_params; | 37 | struct snd_pcm_hw_params; |
38 | struct snd_kcontrol_new; | ||
38 | struct snd_rawmidi; | 39 | struct snd_rawmidi; |
39 | struct oxygen_model; | 40 | struct oxygen_model; |
40 | 41 | ||
@@ -71,6 +72,7 @@ struct oxygen_model { | |||
71 | const char *chip; | 72 | const char *chip; |
72 | struct module *owner; | 73 | struct module *owner; |
73 | void (*init)(struct oxygen *chip); | 74 | void (*init)(struct oxygen *chip); |
75 | int (*control_filter)(struct snd_kcontrol_new *template); | ||
74 | int (*mixer_init)(struct oxygen *chip); | 76 | int (*mixer_init)(struct oxygen *chip); |
75 | void (*cleanup)(struct oxygen *chip); | 77 | void (*cleanup)(struct oxygen *chip); |
76 | void (*set_dac_params)(struct oxygen *chip, | 78 | void (*set_dac_params)(struct oxygen *chip, |
@@ -79,10 +81,7 @@ struct oxygen_model { | |||
79 | struct snd_pcm_hw_params *params); | 81 | struct snd_pcm_hw_params *params); |
80 | void (*update_dac_volume)(struct oxygen *chip); | 82 | void (*update_dac_volume)(struct oxygen *chip); |
81 | void (*update_dac_mute)(struct oxygen *chip); | 83 | void (*update_dac_mute)(struct oxygen *chip); |
82 | const unsigned int *dac_tlv; | ||
83 | u8 used_channels; | 84 | u8 used_channels; |
84 | u8 cd_in_from_video_in; | ||
85 | u8 dac_minimum_volume; | ||
86 | u8 function_flags; | 85 | u8 function_flags; |
87 | }; | 86 | }; |
88 | 87 | ||