From ccc80fb467a88ceb7ce1b68546632b91e5ba6c18 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Wed, 16 Jan 2008 08:32:08 +0100 Subject: [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 Signed-off-by: Jaroslav Kysela --- sound/pci/oxygen/oxygen.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sound/pci/oxygen/oxygen.h') 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; }; -- cgit v1.2.1