aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/xonar_wm87x6.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-01-10 10:14:52 -0500
committerTakashi Iwai <tiwai@suse.de>2011-01-10 10:46:31 -0500
commit5b8bf2a54fb13e40519ee846ce27bc8a2d7a7878 (patch)
tree2aa57e62574054f6f9d5d8bf5eb55c72c227e787 /sound/pci/oxygen/xonar_wm87x6.c
parentbc29e262c3062682c6099bd455ae8544916f723e (diff)
ALSA: oxygen: simplify model-specific MCLK handling
Replace the get_i2s_mclk callback with tables of MCLK values. This simplifies the MCLK-handling code in both the framework and the model- specific drivers. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/xonar_wm87x6.c')
-rw-r--r--sound/pci/oxygen/xonar_wm87x6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/oxygen/xonar_wm87x6.c b/sound/pci/oxygen/xonar_wm87x6.c
index da92cc24eed2..4f9657084603 100644
--- a/sound/pci/oxygen/xonar_wm87x6.c
+++ b/sound/pci/oxygen/xonar_wm87x6.c
@@ -1122,7 +1122,6 @@ static const struct oxygen_model model_xonar_ds = {
1122 .suspend = xonar_ds_suspend, 1122 .suspend = xonar_ds_suspend,
1123 .resume = xonar_ds_resume, 1123 .resume = xonar_ds_resume,
1124 .pcm_hardware_filter = wm8776_adc_hardware_filter, 1124 .pcm_hardware_filter = wm8776_adc_hardware_filter,
1125 .get_i2s_mclk = oxygen_default_i2s_mclk,
1126 .set_dac_params = set_wm87x6_dac_params, 1125 .set_dac_params = set_wm87x6_dac_params,
1127 .set_adc_params = set_wm8776_adc_params, 1126 .set_adc_params = set_wm8776_adc_params,
1128 .update_dac_volume = update_wm87x6_volume, 1127 .update_dac_volume = update_wm87x6_volume,
@@ -1140,6 +1139,8 @@ static const struct oxygen_model model_xonar_ds = {
1140 .dac_volume_min = 255 - 2*60, 1139 .dac_volume_min = 255 - 2*60,
1141 .dac_volume_max = 255, 1140 .dac_volume_max = 255,
1142 .function_flags = OXYGEN_FUNCTION_SPI, 1141 .function_flags = OXYGEN_FUNCTION_SPI,
1142 .dac_mclks = OXYGEN_MCLKS(256, 256, 128),
1143 .adc_mclks = OXYGEN_MCLKS(256, 256, 128),
1143 .dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST, 1144 .dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST,
1144 .adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST, 1145 .adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST,
1145}; 1146};