diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-01-16 02:32:53 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:30:00 -0500 |
commit | 747c6016ced692db18d7e849e8cbdc523fba0874 (patch) | |
tree | 76b4e8652318d090c788e172df03afe65c9a37ce /sound/pci/oxygen/oxygen.h | |
parent | ccc80fb467a88ceb7ce1b68546632b91e5ba6c18 (diff) |
[ALSA] oxygen: make PCM limits configurable
Add a callback to the model structure to allow modification of the
hardware PCM limits.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h index 7278c1563597..602105ce2947 100644 --- a/sound/pci/oxygen/oxygen.h +++ b/sound/pci/oxygen/oxygen.h | |||
@@ -34,6 +34,7 @@ enum { | |||
34 | struct pci_dev; | 34 | 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_hardware; | ||
37 | struct snd_pcm_hw_params; | 38 | struct snd_pcm_hw_params; |
38 | struct snd_kcontrol_new; | 39 | struct snd_kcontrol_new; |
39 | struct snd_rawmidi; | 40 | struct snd_rawmidi; |
@@ -75,6 +76,8 @@ struct oxygen_model { | |||
75 | int (*control_filter)(struct snd_kcontrol_new *template); | 76 | int (*control_filter)(struct snd_kcontrol_new *template); |
76 | int (*mixer_init)(struct oxygen *chip); | 77 | int (*mixer_init)(struct oxygen *chip); |
77 | void (*cleanup)(struct oxygen *chip); | 78 | void (*cleanup)(struct oxygen *chip); |
79 | void (*pcm_hardware_filter)(unsigned int channel, | ||
80 | struct snd_pcm_hardware *hardware); | ||
78 | void (*set_dac_params)(struct oxygen *chip, | 81 | void (*set_dac_params)(struct oxygen *chip, |
79 | struct snd_pcm_hw_params *params); | 82 | struct snd_pcm_hw_params *params); |
80 | void (*set_adc_params)(struct oxygen *chip, | 83 | void (*set_adc_params)(struct oxygen *chip, |