]> git.hungrycats.org Git - linux/commitdiff
ALSA CVS update
authorJaroslav Kysela <perex@suse.cz>
Thu, 25 Sep 2003 17:24:33 +0000 (19:24 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 25 Sep 2003 17:24:33 +0000 (19:24 +0200)
D:2003/09/16 16:09:35
C:VIA82xx driver
A:Takashi Iwai <tiwai@suse.de>
F:pci/via82xx.c:1.49->1.50
L:don't restrict the capture sample rate even with dxs 48k fixed is given.

sound/pci/via82xx.c

index 405c03d28dc0007e7eb938b449e5f79e5ea73af3..29d6370a143206072c587186a395169ea34356e4 100644 (file)
@@ -1042,7 +1042,8 @@ static int snd_via82xx_pcm_open(via82xx_t *chip, viadev_t *viadev, snd_pcm_subst
        ratep = &chip->rates[viadev->direction];
        spin_lock_irqsave(&ratep->lock, flags);
        ratep->used++;
-       if (chip->dxs_fixed) {
+       if (chip->dxs_fixed && viadev->direction == 0) {
+               /* fixed playback rate */
                runtime->hw.rates = SNDRV_PCM_RATE_48000;
                runtime->hw.rate_min = runtime->hw.rate_max = 48000;
        } else if (! ratep->rate) {
@@ -2073,7 +2074,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci,
                } else {
                        if ((err = snd_via8233_pcm_new(chip)) < 0)
                                goto __error;
-                       if (dxs_support[dev] == 3)
+                       if (dxs_support[dev] == VIA_DXS_48K)
                                chip->dxs_fixed = 1;
                }
                if ((err = snd_via8233_init_misc(chip, dev)) < 0)