Update of /cvsroot/alsa/alsa-kernel/pci
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8662/pci

Modified Files:
        intel8x0.c 
Log Message:
- added snd_pcm_limit_hw_rates() to determine the min/max rates from
  rates bits.


Index: intel8x0.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/intel8x0.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- intel8x0.c  16 Feb 2004 16:40:20 -0000      1.118
+++ intel8x0.c  24 Feb 2004 15:37:45 -0000      1.119
@@ -1095,21 +1095,12 @@
 {
        intel8x0_t *chip = snd_pcm_substream_chip(substream);
        snd_pcm_runtime_t *runtime = substream->runtime;
-       static unsigned int i, rates[] = {
-               /* ATTENTION: these values depend on the definition in pcm.h! */
-               5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000
-       };
        int err;
 
        ichdev->substream = substream;
        runtime->hw = snd_intel8x0_stream;
        runtime->hw.rates = ichdev->pcm->rates;
-       for (i = 0; i < ARRAY_SIZE(rates); i++) {
-               if (runtime->hw.rates & (1 << i)) {
-                       runtime->hw.rate_min = rates[i];
-                       break;
-               }
-       }
+       snd_pcm_limit_hw_rates(runtime);
        if (chip->device_type == DEVICE_SIS) {
                runtime->hw.buffer_bytes_max = 64*1024;
                runtime->hw.period_bytes_max = 64*1024;



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to