From 4b9d2c1dfd0445e4d55d7f168a455bc99b3072f9 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 25 Sep 2003 19:24:33 +0200 Subject: [PATCH] ALSA CVS update D:2003/09/16 16:09:35 C:VIA82xx driver A:Takashi Iwai 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 405c03d28dc0..29d6370a1432 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c @@ -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) -- 2.47.3