diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-04-07 04:26:26 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:31 -0400 |
commit | d08267a9df99c3cf288ca05e75084d14479fe7cb (patch) | |
tree | 01fced319a85797b45eb9f5884d539a8e51c72a5 /sound/pci | |
parent | af9af1741f5e7959d220fb0d83604ecb5ae26581 (diff) |
[ALSA] virtuoso: set PCM1796 oversampling rate
When playing data at 96 kHz or higher, reduce the DAC oversampling rate
to 32.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/oxygen/virtuoso.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c index 95c229acf855..c6bd31b9f4b5 100644 --- a/sound/pci/oxygen/virtuoso.c +++ b/sound/pci/oxygen/virtuoso.c | |||
@@ -174,14 +174,12 @@ static void xonar_cleanup(struct oxygen *chip) | |||
174 | static void set_pcm1796_params(struct oxygen *chip, | 174 | static void set_pcm1796_params(struct oxygen *chip, |
175 | struct snd_pcm_hw_params *params) | 175 | struct snd_pcm_hw_params *params) |
176 | { | 176 | { |
177 | #if 0 | ||
178 | unsigned int i; | 177 | unsigned int i; |
179 | u8 value; | 178 | u8 value; |
180 | 179 | ||
181 | value = params_rate(params) >= 96000 ? PCM1796_OS_32 : PCM1796_OS_64; | 180 | value = params_rate(params) >= 96000 ? PCM1796_OS_32 : PCM1796_OS_64; |
182 | for (i = 0; i < 4; ++i) | 181 | for (i = 0; i < 4; ++i) |
183 | pcm1796_write(chip, i, 20, value); | 182 | pcm1796_write(chip, i, 20, value); |
184 | #endif | ||
185 | } | 183 | } |
186 | 184 | ||
187 | static void update_pcm1796_volume(struct oxygen *chip) | 185 | static void update_pcm1796_volume(struct oxygen *chip) |