From b6806e333f71ea6f906f3dbe8ccab6016acadc10 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 25 Sep 2003 19:26:24 +0200 Subject: [PATCH] ALSA CVS update D:2003/09/17 13:42:05 C:VIA82xx driver A:Takashi Iwai F:pci/via82xx.c:1.50->1.51 L:- allow VAR for multi-channel stream. L:- use 48k only for DXS #3 on VIA8233A. --- 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 29d6370a14320..98e040a4b505d 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c @@ -1042,8 +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 && viadev->direction == 0) { - /* fixed playback rate */ + if (chip->dxs_fixed && viadev->reg_offset < 0x40) { + /* fixed DXS playback rate */ runtime->hw.rates = SNDRV_PCM_RATE_48000; runtime->hw.rate_min = runtime->hw.rate_max = 48000; } else if (! ratep->rate) { @@ -2071,6 +2071,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci, if (chip_type == TYPE_VIA8233A) { if ((err = snd_via8233a_pcm_new(chip)) < 0) goto __error; + chip->dxs_fixed = 1; /* use 48k for DXS #3 */ } else { if ((err = snd_via8233_pcm_new(chip)) < 0) goto __error; -- 2.53.0