diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-01-10 10:14:52 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-01-10 10:46:31 -0500 |
commit | 5b8bf2a54fb13e40519ee846ce27bc8a2d7a7878 (patch) | |
tree | 2aa57e62574054f6f9d5d8bf5eb55c72c227e787 /sound/pci/oxygen/xonar_cs43xx.c | |
parent | bc29e262c3062682c6099bd455ae8544916f723e (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_cs43xx.c')
-rw-r--r-- | sound/pci/oxygen/xonar_cs43xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/oxygen/xonar_cs43xx.c b/sound/pci/oxygen/xonar_cs43xx.c index a25197ca39a1..b651938f3248 100644 --- a/sound/pci/oxygen/xonar_cs43xx.c +++ b/sound/pci/oxygen/xonar_cs43xx.c | |||
@@ -412,7 +412,6 @@ static const struct oxygen_model model_xonar_d1 = { | |||
412 | .cleanup = xonar_d1_cleanup, | 412 | .cleanup = xonar_d1_cleanup, |
413 | .suspend = xonar_d1_suspend, | 413 | .suspend = xonar_d1_suspend, |
414 | .resume = xonar_d1_resume, | 414 | .resume = xonar_d1_resume, |
415 | .get_i2s_mclk = oxygen_default_i2s_mclk, | ||
416 | .set_dac_params = set_cs43xx_params, | 415 | .set_dac_params = set_cs43xx_params, |
417 | .set_adc_params = xonar_set_cs53x1_params, | 416 | .set_adc_params = xonar_set_cs53x1_params, |
418 | .update_dac_volume = update_cs43xx_volume, | 417 | .update_dac_volume = update_cs43xx_volume, |
@@ -431,6 +430,8 @@ static const struct oxygen_model model_xonar_d1 = { | |||
431 | .dac_volume_min = 127 - 60, | 430 | .dac_volume_min = 127 - 60, |
432 | .dac_volume_max = 127, | 431 | .dac_volume_max = 127, |
433 | .function_flags = OXYGEN_FUNCTION_2WIRE, | 432 | .function_flags = OXYGEN_FUNCTION_2WIRE, |
433 | .dac_mclks = OXYGEN_MCLKS(256, 256, 128), | ||
434 | .adc_mclks = OXYGEN_MCLKS(256, 256, 128), | ||
434 | .dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST, | 435 | .dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST, |
435 | .adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST, | 436 | .adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST, |
436 | }; | 437 | }; |