summaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/oxygen.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-01-10 16:16:08 +0100
committerTakashi Iwai <tiwai@suse.de>2011-01-10 16:46:35 +0100
commitce2c492090aa55ff2764f473abdb3c5a76b4a7c4 (patch)
treed69dc0953758f9034ca4c9889b14c6b1321019d8 /sound/pci/oxygen/oxygen.c
parent5b8bf2a54fb13e40519ee846ce27bc8a2d7a7878 (diff)
downloadop-kernel-dev-ce2c492090aa55ff2764f473abdb3c5a76b4a7c4.zip
op-kernel-dev-ce2c492090aa55ff2764f473abdb3c5a76b4a7c4.tar.gz
ALSA: virtuoso: reduce MCLK in double rate modes
For the CSxxxx and AKxxxx DAC/ADC chips, the MCLK factor in double rate modes (64-96 kHz) can be reduced to 128x without reducing sound quality. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/oxygen.c')
-rw-r--r--sound/pci/oxygen/oxygen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c
index 784d500..2316884 100644
--- a/sound/pci/oxygen/oxygen.c
+++ b/sound/pci/oxygen/oxygen.c
@@ -588,7 +588,7 @@ static const struct oxygen_model model_generic = {
.dac_volume_max = 255,
.function_flags = OXYGEN_FUNCTION_SPI |
OXYGEN_FUNCTION_ENABLE_SPI_4_5,
- .dac_mclks = OXYGEN_MCLKS(256, 256, 128),
+ .dac_mclks = OXYGEN_MCLKS(256, 128, 128),
.adc_mclks = OXYGEN_MCLKS(256, 256, 128),
.dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST,
.adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST,
@@ -643,8 +643,10 @@ static int __devinit get_oxygen_model(struct oxygen *chip,
chip->model.dump_registers = dump_ak4396_registers;
chip->model.device_config = PLAYBACK_0_TO_I2S |
PLAYBACK_1_TO_SPDIF;
- if (id->driver_data == MODEL_FANTASIA)
+ if (id->driver_data == MODEL_FANTASIA) {
chip->model.device_config |= CAPTURE_0_FROM_I2S_1;
+ chip->model.adc_mclks = OXYGEN_MCLKS(256, 128, 128);
+ }
chip->model.dac_channels_pcm = 2;
chip->model.dac_channels_mixer = 2;
break;
OpenPOWER on IntegriCloud