Changeset 503 for GPL


Ignore:
Timestamp:
Jul 11, 2010, 7:14:11 AM (15 years ago)
Author:
David Azarewicz
Message:

misc fixes, work on NVidia problem

Location:
GPL/branches/uniaud32-2.1.x
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/core/pcm_memory.c

    r499 r503  
    497497EXPORT_SYMBOL(snd_pcm_lib_get_vmalloc_page);
    498498#endif
     499
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/hda_intel.c

    r499 r503  
    3232 *
    3333 *  2004.12.01  Major rewrite by tiwai, merged the work of pshou
    34  * 
     34 *
    3535 */
    3636
     
    355355#ifdef TARGET_OS2
    356356        volatile void __iomem *sd_addr;         /* stream descriptor pointer */
    357 #else 
     357#else
    358358        void __iomem *sd_addr;  /* stream descriptor pointer */
    359359#endif
     
    494494        [AZX_DRIVER_ULI] = "HDA ULI M5461",
    495495        [AZX_DRIVER_NVIDIA] = "HDA NVidia",
    496         [AZX_DRIVER_TERA] = "HDA Teradici", 
     496        [AZX_DRIVER_TERA] = "HDA Teradici",
    497497        [AZX_DRIVER_GENERIC] = "HD-Audio Generic",
    498498};
     
    949949/*
    950950 * Lowlevel interface
    951  */ 
     951 */
    952952
    953953/* enable interrupts */
     
    10901090                /* For ATI SB450 azalia HD audio, we need to enable snoop */
    10911091                update_pci_byte(chip->pci,
    1092                                 ATI_SB450_HDAUDIO_MISC_CNTR2_ADDR, 
     1092                                ATI_SB450_HDAUDIO_MISC_CNTR2_ADDR,
    10931093                                0x07, ATI_SB450_HDAUDIO_ENABLE_SNOOP);
    10941094                break;
     
    27992799        { PCI_DEVICE(0x10b9, 0x5461), .driver_data = AZX_DRIVER_ULI },
    28002800        /* NVIDIA MCP */
     2801        { PCI_DEVICE(0x10de, 0x03f0), .driver_data = AZX_DRIVER_NVIDIA },
    28012802        { PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID),
    28022803          .class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8,
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/patch_sigmatel.c

    r499 r503  
    544544
    545545static hda_nid_t stac9200_pin_nids[8] = {
    546         0x08, 0x09, 0x0d, 0x0e, 
     546        0x08, 0x09, 0x0d, 0x0e,
    547547        0x0f, 0x10, 0x11, 0x12,
    548548};
    549549
    550550static hda_nid_t stac925x_pin_nids[8] = {
    551         0x07, 0x08, 0x0a, 0x0b, 
     551        0x07, 0x08, 0x0a, 0x0b,
    552552        0x0c, 0x0d, 0x10, 0x11,
    553553};
     
    12121212*/
    12131213static unsigned int dell9200_d21_pin_configs[8] = {
    1214         0x400001f0, 0x400001f1, 0x02214030, 0x01014010, 
     1214        0x400001f0, 0x400001f1, 0x02214030, 0x01014010,
    12151215        0x02a19020, 0x01a19021, 0x90100140, 0x01813122,
    12161216};
    12171217
    1218 /* 
     1218/*
    12191219    STAC 9200 pin configs for
    12201220    102801C0
     
    12221222*/
    12231223static unsigned int dell9200_d22_pin_configs[8] = {
    1224         0x400001f0, 0x400001f1, 0x0221401f, 0x01014010, 
     1224        0x400001f0, 0x400001f1, 0x0221401f, 0x01014010,
    12251225        0x01813020, 0x02a19021, 0x90100140, 0x400001f2,
    12261226};
    12271227
    1228 /* 
     1228/*
    12291229    STAC 9200 pin configs for
    12301230    102801C4 (Dell Dimension E310)
     
    12361236*/
    12371237static unsigned int dell9200_d23_pin_configs[8] = {
    1238         0x400001f0, 0x400001f1, 0x0221401f, 0x01014010, 
    1239         0x01813020, 0x01a19021, 0x90100140, 0x400001f2, 
    1240 };
    1241 
    1242 
    1243 /* 
     1238        0x400001f0, 0x400001f1, 0x0221401f, 0x01014010,
     1239        0x01813020, 0x01a19021, 0x90100140, 0x400001f2,
     1240};
     1241
     1242
     1243/*
    12441244    STAC 9200-32 pin configs for
    12451245    102801B5 (Dell Inspiron 630m)
     
    12511251};
    12521252
    1253 /* 
     1253/*
    12541254    STAC 9200-32 pin configs for
    12551255    102801C2 (Dell Latitude D620)
    1256     102801C8 
     1256    102801C8
    12571257    102801CC (Dell Latitude D820)
    1258     102801D4 
    1259     102801D6 
     1258    102801D4
     1259    102801D6
    12601260*/
    12611261static unsigned int dell9200_m22_pin_configs[8] = {
    1262         0x40c003fa, 0x0144131f, 0x0321121f, 0x90170310, 
     1262        0x40c003fa, 0x0144131f, 0x0321121f, 0x90170310,
    12631263        0x90a70321, 0x03a11020, 0x401003fb, 0x40f000fc,
    12641264};
    12651265
    1266 /* 
     1266/*
    12671267    STAC 9200-32 pin configs for
    12681268    102801CE (Dell XPS M1710)
     
    12751275
    12761276/*
    1277     STAC 9200-32 pin configs for 
     1277    STAC 9200-32 pin configs for
    12781278    102801C9
    12791279    102801CA
     
    12821282*/
    12831283static unsigned int dell9200_m24_pin_configs[8] = {
    1284         0x40c003fa, 0x404003fb, 0x0321121f, 0x90170310, 
    1285         0x408003fc, 0x03a11020, 0x401003fd, 0x403003fe, 
     1284        0x40c003fa, 0x404003fb, 0x0321121f, 0x90170310,
     1285        0x408003fc, 0x03a11020, 0x401003fd, 0x403003fe,
    12861286};
    12871287
     
    12931293*/
    12941294static unsigned int dell9200_m25_pin_configs[8] = {
    1295         0x40c003fa, 0x01441340, 0x0421121f, 0x90170310, 
     1295        0x40c003fa, 0x01441340, 0x0421121f, 0x90170310,
    12961296        0x408003fb, 0x04a11020, 0x401003fc, 0x403003fd,
    12971297};
     
    13031303*/
    13041304static unsigned int dell9200_m26_pin_configs[8] = {
    1305         0x40c003fa, 0x404003fb, 0x0421121f, 0x90170310, 
     1305        0x40c003fa, 0x404003fb, 0x0421121f, 0x90170310,
    13061306        0x408003fc, 0x04a11020, 0x401003fd, 0x403003fe,
    13071307};
     
    17991799static unsigned int dell_922x_m81_pin_configs[10] = {
    18001800        0x0321101f, 0x01112024, 0x01111222, 0x91174220,
    1801         0x03a11050, 0x01116221, 0x90a70330, 0x01452340, 
     1801        0x03a11050, 0x01116221, 0x90a70330, 0x01452340,
    18021802        0x40C003f1, 0x405003f0,
    18031803};
     
    18081808*/
    18091809static unsigned int dell_922x_m82_pin_configs[10] = {
    1810         0x02211211, 0x408103ff, 0x02a1123e, 0x90100310, 
    1811         0x408003f1, 0x0221121f, 0x03451340, 0x40c003f2, 
    1812         0x508003f3, 0x405003f4, 
     1810        0x02211211, 0x408103ff, 0x02a1123e, 0x90100310,
     1811        0x408003f1, 0x0221121f, 0x03451340, 0x40c003f2,
     1812        0x508003f3, 0x405003f4,
    18131813};
    18141814
     
    20032003static unsigned int ref927x_pin_configs[14] = {
    20042004        0x02214020, 0x02a19080, 0x0181304e, 0x01014010,
    2005         0x01a19040, 0x01011012, 0x01016011, 0x0101201f, 
     2005        0x01a19040, 0x01011012, 0x01016011, 0x0101201f,
    20062006        0x183301f0, 0x18a001f0, 0x18a001f0, 0x01442070,
    20072007        0x01c42190, 0x40000100,
     
    24652465        struct sigmatel_spec *spec = codec->spec;
    24662466        int nid = kcontrol->private_value;
    2467  
     2467
    24682468        spec->hp_switch = ucontrol->value.integer.value[0] ? nid : 0;
    24692469
     
    41754175
    41764176static inline int get_int_hint(struct hda_codec *codec, const char *key,
    4177                                int *valp)
     4177                               unsigned int *valp)
    41784178{
    41794179        const char *p;
     
    45244524                                spec->eapd_mask);
    45254525        }
    4526 } 
     4526}
    45274527
    45284528/* return non-zero if the hp-pin of the given array index isn't
     
    46034603 * So, it's basically a problem of default pin configs, likely a BIOS issue.
    46044604 * But, disabling the code below just works around it, and I'm too tired of
    4605  * bug reports with such devices... 
     4605 * bug reports with such devices...
    46064606 */
    46074607                else
     
    46094609#endif /* FIXME */
    46104610        }
    4611 } 
     4611}
    46124612
    46134613static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid,
     
    48614861{
    48624862        if (nid == codec->afg)
    4863                 snd_iprintf(buffer, "Power-Map: 0x%02x\n", 
     4863                snd_iprintf(buffer, "Power-Map: 0x%02x\n",
    48644864                            snd_hda_codec_read(codec, nid, 0, 0x0fec, 0x0));
    48654865}
  • GPL/branches/uniaud32-2.1.x/lib32/ossidc.cpp

    r479 r503  
    135135    call_module_init(patch_sigmatel_init);
    136136    call_module_init(patch_via_init);
     137    dprintf(("OSS32_Initialize: ForceCard=%d", ForceCard));
    137138#if 0
    138139    int i;
     
    162163    }
    163164#else
    164     dprintf(("force card: %d",ForceCard));
    165165    //Check for SoundBlaster Live!
    166166    if((ForceCard == CARD_NONE || ForceCard == CARD_ICH) &&
     
    174174        fnCardExitCall[nrCardsDetected] = name_module_exit(alsa_card_via82xx_exit);
    175175    }
    176 
    177176
    178177    if((ForceCard == CARD_NONE || ForceCard == CARD_SBLIVE) &&
Note: See TracChangeset for help on using the changeset viewer.