Update of /cvsroot/alsa/alsa-kernel/pci
In directory sc8-pr-cvs1:/tmp/cvs-serv15504/pci

Modified Files:
        intel8x0.c via82xx.c 
Log Message:
- added quirk type AC97_TUNE_AD_SHARING.
- added mask field to snd_ac97_quirk.
- new patch for AD1985.  set more config bits for line/mic sharing.
- rewritten quirk table in C99 init style.
- more quirks for intel ICH5/AD1985 boards.



Index: intel8x0.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/intel8x0.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- intel8x0.c  24 Jul 2003 05:53:57 -0000      1.85
+++ intel8x0.c  30 Jul 2003 10:54:03 -0000      1.86
@@ -1555,13 +1555,98 @@
 };
 
 static struct ac97_quirk ac97_quirks[] __devinitdata = {
-       { 0x1028, 0x0126, "Dell Optiplex GX260", AC97_TUNE_HP_ONLY },
-       { 0x1734, 0x0088, "Fujitsu-Siemens D1522", AC97_TUNE_HP_ONLY },
-       { 0x10f1, 0x2665, "Fujitsu-Siemens Celcius", AC97_TUNE_HP_ONLY },
-       { 0x110a, 0x0056, "Fujitsu-Siemens Scenic", AC97_TUNE_HP_ONLY },
-       { 0x8086, 0x4d44, "Intel D850EMV2", AC97_TUNE_HP_ONLY },
-       /* { 0x4144, 0x5360, "AMD64 Motherboard", AC97_TUNE_HP_ONLY }, */ /* FIXME: 
this seems invalid */
-       { 0x1043, 0x80b0, "ASUS P4PE Mobo", AC97_TUNE_SWAP_SURROUND },
+       {
+               .vendor = 0x1028,
+               .device = 0x0126,
+               .name = "Dell Optiplex GX260",
+               .type = AC97_TUNE_HP_ONLY
+       },
+       {
+               .vendor = 0x1043,
+               .device =0x80b0,
+               .name = "ASUS P4PE Mobo",
+               .type = AC97_TUNE_SWAP_SURROUND
+       },
+       {
+               .vendor = 0x10f1,
+               .device = 0x2665,
+               .name = "Fujitsu-Siemens Celcius",
+               .type = AC97_TUNE_HP_ONLY
+       },
+       {
+               .vendor = 0x110a,
+               .device = 0x0056,
+               .name = "Fujitsu-Siemens Scenic",
+               .type = AC97_TUNE_HP_ONLY
+       },
+       {
+               .vendor = 0x11d4,
+               .device = 0x5375,
+               .name = "ADI AD1985 (discrete)",
+               .type = AC97_TUNE_HP_ONLY
+       },
+       {
+               .vendor = 0x1734,
+               .device = 0x0088,
+               .name = "Fujitsu-Siemens D1522",
+               .type = AC97_TUNE_HP_ONLY
+       },
+#if 0
+       /* FIXME: this seems invalid */
+       {
+               .vendor = 0x4144,
+               .device = 0x5360,
+               .type = "AMD64 Motherboard",
+               .name = AC97_TUNE_HP_ONLY
+       },
+#endif
+       {
+               .vendor = 0x8086,
+               .device = 0x2000,
+               .mask = 0xfff0,
+               .name = "Intel ICH5/AD1985 (discrete)",
+               .type = AC97_TUNE_HP_ONLY
+       },
+       {
+               .vendor = 0x8086,
+               .device = 0x4000,
+               .mask = 0xfff0,
+               .name = "Intel ICH5/AD1985",
+               .type = AC97_TUNE_AD_SHARING
+       },
+       {
+               .vendor = 0x8086,
+               .device = 0x4d44,
+               .name = "Intel D850EMV2",
+               .type = AC97_TUNE_HP_ONLY
+       },
+       {
+               .vendor = 0x8086,
+               .device = 0x6000,
+               .mask = 0xfff0,
+               .name = "Intel ICH5/AD1985",
+               .type = AC97_TUNE_AD_SHARING
+       },
+       {
+               .vendor = 0x8086,
+               .device = 0xe000,
+               .mask = 0xfff0,
+               .name = "Intel ICH5/AD1985",
+               .type = AC97_TUNE_AD_SHARING
+       },
+       {
+               .vendor = 0x8086,
+               .device = 0xa000,
+               .mask = 0xfff0,
+               .name = "Intel ICH5/AD1985 (discrete)",
+               .type = AC97_TUNE_HP_ONLY
+       },
+       {
+               .vendor = 0x80f3,
+               .device = 0x1043,
+               .name = "ASUS ICH5/AD1985",
+               .type = AC97_TUNE_AD_SHARING
+       },
        { } /* terminator */
 };
 

Index: via82xx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/via82xx.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- via82xx.c   21 Jul 2003 14:55:22 -0000      1.43
+++ via82xx.c   30 Jul 2003 10:54:03 -0000      1.44
@@ -886,9 +886,11 @@
                snd_ac97_set_rate(chip->ac97, AC97_PCM_LFE_DAC_RATE, runtime->rate);
                snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
        }
+#if 0
        if (chip->revision == VIA_REV_8233A)
                rbits = 0;
        else
+#endif
                rbits = (0xfffff / 48000) * runtime->rate + ((0xfffff % 48000) * 
runtime->rate) / 48000;
        snd_assert((rbits & ~0xfffff) == 0, return -EINVAL);
        snd_via82xx_channel_reset(chip, viadev);
@@ -928,9 +930,12 @@
        fmt = (runtime->format == SNDRV_PCM_FORMAT_S16_LE) ? 
VIA_REG_MULTPLAY_FMT_16BIT : VIA_REG_MULTPLAY_FMT_8BIT;
        fmt |= runtime->channels << 4;
        outb(fmt, VIADEV_REG(viadev, OFS_MULTPLAY_FORMAT));
+#if 0
        if (chip->revision == VIA_REV_8233A)
                slots = 0;
-       else {
+       else
+#endif
+       {
                /* set sample number to slot 3, 4, 7, 8, 6, 9 (for VIA8233/C,8235) */
                /* corresponding to FL, FR, RL, RR, C, LFE ?? */
                switch (runtime->channels) {
@@ -1501,7 +1506,12 @@
 }
 
 static struct ac97_quirk ac97_quirks[] = {
-       { 0x1106, 0x4161, "ASRock K7VT2", AC97_TUNE_HP_ONLY },
+       {
+               .vendor = 0x1106,
+               .device = 0x4161,
+               .name = "ASRock K7VT2",
+               .type = AC97_TUNE_HP_ONLY
+       },
        { } /* terminator */
 };
 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to