Ignore:
Timestamp:
Jul 25, 2010, 7:16:22 PM (15 years ago)
Author:
David Azarewicz
Message:

debug statement changes, add quirk for eMachines STAC mixer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/pci/hda/patch_sigmatel.c

    r464 r528  
    547547
    548548static hda_nid_t stac9200_pin_nids[8] = {
    549         0x08, 0x09, 0x0d, 0x0e, 
     549        0x08, 0x09, 0x0d, 0x0e,
    550550        0x0f, 0x10, 0x11, 0x12,
    551551};
    552552
    553553static hda_nid_t stac925x_pin_nids[8] = {
    554         0x07, 0x08, 0x0a, 0x0b, 
     554        0x07, 0x08, 0x0a, 0x0b,
    555555        0x0c, 0x0d, 0x10, 0x11,
    556556};
     
    14101410*/
    14111411static unsigned int dell9200_d21_pin_configs[8] = {
    1412         0x400001f0, 0x400001f1, 0x02214030, 0x01014010, 
     1412        0x400001f0, 0x400001f1, 0x02214030, 0x01014010,
    14131413        0x02a19020, 0x01a19021, 0x90100140, 0x01813122,
    14141414};
    14151415
    1416 /* 
     1416/*
    14171417    STAC 9200 pin configs for
    14181418    102801C0
     
    14201420*/
    14211421static unsigned int dell9200_d22_pin_configs[8] = {
    1422         0x400001f0, 0x400001f1, 0x0221401f, 0x01014010, 
     1422        0x400001f0, 0x400001f1, 0x0221401f, 0x01014010,
    14231423        0x01813020, 0x02a19021, 0x90100140, 0x400001f2,
    14241424};
    14251425
    1426 /* 
     1426/*
    14271427    STAC 9200 pin configs for
    14281428    102801C4 (Dell Dimension E310)
     
    14341434*/
    14351435static unsigned int dell9200_d23_pin_configs[8] = {
    1436         0x400001f0, 0x400001f1, 0x0221401f, 0x01014010, 
    1437         0x01813020, 0x01a19021, 0x90100140, 0x400001f2, 
    1438 };
    1439 
    1440 
    1441 /* 
     1436        0x400001f0, 0x400001f1, 0x0221401f, 0x01014010,
     1437        0x01813020, 0x01a19021, 0x90100140, 0x400001f2,
     1438};
     1439
     1440
     1441/*
    14421442    STAC 9200-32 pin configs for
    14431443    102801B5 (Dell Inspiron 630m)
     
    14491449};
    14501450
    1451 /* 
     1451/*
    14521452    STAC 9200-32 pin configs for
    14531453    102801C2 (Dell Latitude D620)
    1454     102801C8 
     1454    102801C8
    14551455    102801CC (Dell Latitude D820)
    1456     102801D4 
    1457     102801D6 
     1456    102801D4
     1457    102801D6
    14581458*/
    14591459static unsigned int dell9200_m22_pin_configs[8] = {
    1460         0x40c003fa, 0x0144131f, 0x0321121f, 0x90170310, 
     1460        0x40c003fa, 0x0144131f, 0x0321121f, 0x90170310,
    14611461        0x90a70321, 0x03a11020, 0x401003fb, 0x40f000fc,
    14621462};
    14631463
    1464 /* 
     1464/*
    14651465    STAC 9200-32 pin configs for
    14661466    102801CE (Dell XPS M1710)
     
    14731473
    14741474/*
    1475     STAC 9200-32 pin configs for 
     1475    STAC 9200-32 pin configs for
    14761476    102801C9
    14771477    102801CA
     
    14801480*/
    14811481static unsigned int dell9200_m24_pin_configs[8] = {
    1482         0x40c003fa, 0x404003fb, 0x0321121f, 0x90170310, 
    1483         0x408003fc, 0x03a11020, 0x401003fd, 0x403003fe, 
     1482        0x40c003fa, 0x404003fb, 0x0321121f, 0x90170310,
     1483        0x408003fc, 0x03a11020, 0x401003fd, 0x403003fe,
    14841484};
    14851485
     
    14911491*/
    14921492static unsigned int dell9200_m25_pin_configs[8] = {
    1493         0x40c003fa, 0x01441340, 0x0421121f, 0x90170310, 
     1493        0x40c003fa, 0x01441340, 0x0421121f, 0x90170310,
    14941494        0x408003fb, 0x04a11020, 0x401003fc, 0x403003fd,
    14951495};
     
    15011501*/
    15021502static unsigned int dell9200_m26_pin_configs[8] = {
    1503         0x40c003fa, 0x404003fb, 0x0421121f, 0x90170310, 
     1503        0x40c003fa, 0x404003fb, 0x0421121f, 0x90170310,
    15041504        0x408003fc, 0x04a11020, 0x401003fd, 0x403003fe,
    15051505};
     
    19631963static unsigned int dell_922x_m81_pin_configs[10] = {
    19641964        0x0321101f, 0x01112024, 0x01111222, 0x91174220,
    1965         0x03a11050, 0x01116221, 0x90a70330, 0x01452340, 
     1965        0x03a11050, 0x01116221, 0x90a70330, 0x01452340,
    19661966        0x40C003f1, 0x405003f0,
    19671967};
     
    19721972*/
    19731973static unsigned int dell_922x_m82_pin_configs[10] = {
    1974         0x02211211, 0x408103ff, 0x02a1123e, 0x90100310, 
    1975         0x408003f1, 0x0221121f, 0x03451340, 0x40c003f2, 
    1976         0x508003f3, 0x405003f4, 
     1974        0x02211211, 0x408103ff, 0x02a1123e, 0x90100310,
     1975        0x408003f1, 0x0221121f, 0x03451340, 0x40c003f2,
     1976        0x508003f3, 0x405003f4,
    19771977};
    19781978
     
    21622162        SND_PCI_QUIRK_MASK(0x1019, 0xf000, 0x2000,
    21632163                      "ECS/PC chips", STAC_ECS_202),
     2164        SND_PCI_QUIRK(0x107b, 0x6051, "eMachines T5226", STAC_D945_REF),
    21642165        {0} /* terminator */
    21652166};
     
    21672168static unsigned int ref927x_pin_configs[14] = {
    21682169        0x02214020, 0x02a19080, 0x0181304e, 0x01014010,
    2169         0x01a19040, 0x01011012, 0x01016011, 0x0101201f, 
     2170        0x01a19040, 0x01011012, 0x01016011, 0x0101201f,
    21702171        0x183301f0, 0x18a001f0, 0x18a001f0, 0x01442070,
    21712172        0x01c42190, 0x40000100,
     
    26222623        struct sigmatel_spec *spec = codec->spec;
    26232624        int nid = kcontrol->private_value;
    2624  
     2625
    26252626        spec->hp_switch = ucontrol->value.integer.value[0] ? nid : 0;
    26262627
     
    46314632                                spec->eapd_mask);
    46324633        }
    4633 } 
     4634}
    46344635
    46354636/* return non-zero if the hp-pin of the given array index isn't
     
    47104711 * So, it's basically a problem of default pin configs, likely a BIOS issue.
    47114712 * But, disabling the code below just works around it, and I'm too tired of
    4712  * bug reports with such devices... 
     4713 * bug reports with such devices...
    47134714 */
    47144715                else
     
    47164717#endif /* FIXME */
    47174718        }
    4718 } 
     4719}
    47194720
    47204721static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid,
     
    48704871{
    48714872        if (nid == codec->afg)
    4872                 snd_iprintf(buffer, "Power-Map: 0x%02x\n", 
     4873                snd_iprintf(buffer, "Power-Map: 0x%02x\n",
    48734874                            snd_hda_codec_read(codec, nid, 0, 0x0fec, 0x0));
    48744875}
Note: See TracChangeset for help on using the changeset viewer.