Update of /cvsroot/alsa/alsa-kernel/pci
In directory sc8-pr-cvs1:/tmp/cvs-serv16414
Modified Files:
via82xx.c
Log Message:
don't restrict the capture sample rate even with dxs 48k fixed is given.
Index: via82xx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/via82xx.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- via82xx.c 8 Sep 2003 09:32:23 -0000 1.49
+++ via82xx.c 16 Sep 2003 15:09:35 -0000 1.50
@@ -1042,7 +1042,8 @@
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 @@
} 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)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog