Commit 4b9d2c1d authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

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.
parent c9f3eac0
...@@ -1042,7 +1042,8 @@ static int snd_via82xx_pcm_open(via82xx_t *chip, viadev_t *viadev, snd_pcm_subst ...@@ -1042,7 +1042,8 @@ static int snd_via82xx_pcm_open(via82xx_t *chip, viadev_t *viadev, snd_pcm_subst
ratep = &chip->rates[viadev->direction]; ratep = &chip->rates[viadev->direction];
spin_lock_irqsave(&ratep->lock, flags); spin_lock_irqsave(&ratep->lock, flags);
ratep->used++; 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.rates = SNDRV_PCM_RATE_48000;
runtime->hw.rate_min = runtime->hw.rate_max = 48000; runtime->hw.rate_min = runtime->hw.rate_max = 48000;
} else if (! ratep->rate) { } else if (! ratep->rate) {
...@@ -2073,7 +2074,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci, ...@@ -2073,7 +2074,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci,
} else { } else {
if ((err = snd_via8233_pcm_new(chip)) < 0) if ((err = snd_via8233_pcm_new(chip)) < 0)
goto __error; goto __error;
if (dxs_support[dev] == 3) if (dxs_support[dev] == VIA_DXS_48K)
chip->dxs_fixed = 1; chip->dxs_fixed = 1;
} }
if ((err = snd_via8233_init_misc(chip, dev)) < 0) if ((err = snd_via8233_init_misc(chip, dev)) < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment