]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] virtuoso: set PCM1796 oversampling rate
authorClemens Ladisch <clemens@ladisch.de>
Mon, 7 Apr 2008 08:26:26 +0000 (10:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:31 +0000 (12:00 +0200)
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>
sound/pci/oxygen/virtuoso.c

index 95c229acf85565d8cbf3fae15f700fd2e663dd46..c6bd31b9f4b5fd9999cf9f5ed5ac922d2e65a7c3 100644 (file)
@@ -174,14 +174,12 @@ static void xonar_cleanup(struct oxygen *chip)
 static void set_pcm1796_params(struct oxygen *chip,
                               struct snd_pcm_hw_params *params)
 {
-#if 0
        unsigned int i;
        u8 value;
 
        value = params_rate(params) >= 96000 ? PCM1796_OS_32 : PCM1796_OS_64;
        for (i = 0; i < 4; ++i)
                pcm1796_write(chip, i, 20, value);
-#endif
 }
 
 static void update_pcm1796_volume(struct oxygen *chip)