aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/hifier.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-04-16 03:13:36 -0400
committerTakashi Iwai <tiwai@suse.de>2008-04-24 06:00:36 -0400
commit193e813814775b1b1574515fc6f11e61b29a54f7 (patch)
tree4c910d3dd308aa13ddf10d8836dad3171f21ab4b /sound/pci/oxygen/hifier.c
parent0c0e6daf14183fb1cd0dea054ecf81165abbdc83 (diff)
[ALSA] oxygen: generalize handling of DAC volume limits
Add fields for the DAC volume limits to the module structure so that model drivers do not need to install their own control info handlers. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/hifier.c')
-rw-r--r--sound/pci/oxygen/hifier.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/oxygen/hifier.c b/sound/pci/oxygen/hifier.c
index b67888f6745b..bf39c72a130c 100644
--- a/sound/pci/oxygen/hifier.c
+++ b/sound/pci/oxygen/hifier.c
@@ -153,6 +153,8 @@ static const struct oxygen_model model_hifier = {
153 PLAYBACK_1_TO_SPDIF | 153 PLAYBACK_1_TO_SPDIF |
154 CAPTURE_0_FROM_I2S_1, 154 CAPTURE_0_FROM_I2S_1,
155 .dac_channels = 2, 155 .dac_channels = 2,
156 .dac_volume_min = 0,
157 .dac_volume_max = 255,
156 .function_flags = OXYGEN_FUNCTION_SPI, 158 .function_flags = OXYGEN_FUNCTION_SPI,
157 .dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST, 159 .dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST,
158 .adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST, 160 .adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST,