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

Modified Files:
        via82xx.c 
Log Message:
- added the dxs default for MSI KT6 Delta-SR.
- fixed the calculation of rate bits (based on 0x100000).




Index: via82xx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/via82xx.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- via82xx.c   11 Feb 2004 12:08:10 -0000      1.85
+++ via82xx.c   13 Feb 2004 10:52:46 -0000      1.86
@@ -922,12 +922,10 @@
                                  chip->no_vra ? 48000 : runtime->rate);
                snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
        }
-#if 0
-       if (chip->revision == VIA_REV_8233A)
-               rbits = 0;
+       if (runtime->rate == 48000)
+               rbits = 0xfffff;
        else
-#endif
-               rbits = (0xfffff / 48000) * runtime->rate + ((0xfffff % 48000) * 
runtime->rate) / 48000;
+               rbits = (0x100000 / 48000) * runtime->rate + ((0x100000 % 48000) * 
runtime->rate) / 48000;
        snd_assert((rbits & ~0xfffff) == 0, return -EINVAL);
        snd_via82xx_channel_reset(chip, viadev);
        snd_via82xx_set_table_ptr(chip, viadev);
@@ -1994,6 +1992,7 @@
                { .vendor = 0x14ff, .device = 0x0403, .action = VIA_DXS_ENABLE }, /* 
Twinhead mobo */
                { .vendor = 0x1462, .device = 0x3800, .action = VIA_DXS_ENABLE }, /* 
MSI KT266 */
                { .vendor = 0x1462, .device = 0x7120, .action = VIA_DXS_ENABLE }, /* 
MSI KT4V */
+               { .vendor = 0x1462, .device = 0x5901, .action = VIA_DXS_NO_VRA }, /* 
MSI KT6 Delta-SR */
                { .vendor = 0x1631, .device = 0xe004, .action = VIA_DXS_ENABLE }, /* 
Easy Note 3174, Packard Bell */
                { .vendor = 0x1695, .device = 0x3005, .action = VIA_DXS_ENABLE }, /* 
EPoX EP-8K9A */
                { .vendor = 0x1849, .device = 0x3059, .action = VIA_DXS_NO_VRA }, /* 
ASRock K7VM2 */



-------------------------------------------------------
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