summaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/oxygen.h
diff options
context:
space:
mode:
authorClemens Ladisch2008-01-16 08:32:08 +0100
committerJaroslav Kysela2008-01-31 17:30:00 +0100
commitccc80fb467a88ceb7ce1b68546632b91e5ba6c18 (patch)
tree097f13a250fa155faeacc1fb127a000cc19ebbb6 /sound/pci/oxygen/oxygen.h
parent[ALSA] oxygen: make all DMA channels configurable (diff)
downloadkernel-qcow2-linux-ccc80fb467a88ceb7ce1b68546632b91e5ba6c18.tar.gz
kernel-qcow2-linux-ccc80fb467a88ceb7ce1b68546632b91e5ba6c18.tar.xz
kernel-qcow2-linux-ccc80fb467a88ceb7ce1b68546632b91e5ba6c18.zip
[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.h5
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;
struct snd_card;
struct snd_pcm_substream;
struct snd_pcm_hw_params;
+struct snd_kcontrol_new;
struct snd_rawmidi;
struct oxygen_model;
@@ -71,6 +72,7 @@ struct oxygen_model {
const char *chip;
struct module *owner;
void (*init)(struct oxygen *chip);
+ int (*control_filter)(struct snd_kcontrol_new *template);
int (*mixer_init)(struct oxygen *chip);
void (*cleanup)(struct oxygen *chip);
void (*set_dac_params)(struct oxygen *chip,
@@ -79,10 +81,7 @@ struct oxygen_model {
struct snd_pcm_hw_params *params);
void (*update_dac_volume)(struct oxygen *chip);
void (*update_dac_mute)(struct oxygen *chip);
- const unsigned int *dac_tlv;
u8 used_channels;
- u8 cd_in_from_video_in;
- u8 dac_minimum_volume;
u8 function_flags;
};