Ignore:
Timestamp:
Apr 3, 2017, 4:51:56 PM (8 years ago)
Author:
David Azarewicz
Message:

Merged/reintegrated v2 branch into trunk. Trunk is now v2

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/intel8x0.c

    r522 r598  
    9797
    9898/* just for backward compatibility */
    99 static int enable;
     99//static int enable;
    100100module_param(enable, bool, 0444);
    101 static int joystick;
     101//static int joystick;
    102102module_param(joystick, int, 0444);
    103103
     
    421421};
    422422
    423 static struct pci_device_id snd_intel8x0_ids[] = {
     423static DEFINE_PCI_DEVICE_TABLE(snd_intel8x0_ids) = {
    424424        { PCI_VDEVICE(INTEL, 0x2415), DEVICE_INTEL },   /* 82801AA */
    425425        { PCI_VDEVICE(INTEL, 0x2425), DEVICE_INTEL },   /* 82901AB */
     
    717717 * which aborts PCI busmaster for audio transfer.  A workaround is to set
    718718 * the pages as non-cached.  For details, see the errata in
    719  *      http://www.intel.com/design/chipsets/specupdt/245051.htm
     719 *      http://download.intel.com/design/chipsets/specupdt/24505108.pdf
    720720 */
    721721static void fill_nocache(void *buf, int size, int nocache)
     
    17791779        {
    17801780                .subvendor = 0x1014,
     1781                .subdevice = 0x0534,
     1782                .name = "ThinkPad X31",
     1783                .type = AC97_TUNE_INV_EAPD
     1784        },
     1785        {
     1786                .subvendor = 0x1014,
    17811787                .subdevice = 0x1f00,
    17821788                .name = "MS-9128",
     
    18391845        {
    18401846                .subvendor = 0x1028,
     1847                .subdevice = 0x0151,
     1848                .name = "Dell Optiplex GX270",  /* AD1981B */
     1849                .type = AC97_TUNE_HP_ONLY
     1850        },
     1851        {
     1852                .subvendor = 0x1028,
    18411853                .subdevice = 0x014e,
    18421854                .name = "Dell D800", /* STAC9750/51 */
    1843                 .type = AC97_TUNE_HP_ONLY
    1844         },
    1845         {
    1846                 .subvendor = 0x1028,
    1847                 .subdevice = 0x0151,
    1848                 .name = "Dell Optiplex GX270",  /* AD1981B */
    18491855                .type = AC97_TUNE_HP_ONLY
    18501856        },
     
    18591865                .subdevice = 0x016a,
    18601866                .name = "Dell Inspiron 8600",   /* STAC9750/51 */
     1867                .type = AC97_TUNE_HP_ONLY
     1868        },
     1869        {
     1870                .subvendor = 0x1028,
     1871                .subdevice = 0x0182,
     1872                .name = "Dell Latitude D610",   /* STAC9750/51 */
    18611873                .type = AC97_TUNE_HP_ONLY
    18621874        },
     
    19051917        {
    19061918                .subvendor = 0x103c,
    1907                 .subdevice = 0x0934,
    1908                 .name = "HP nc8220",
    1909                 .type = AC97_TUNE_HP_MUTE_LED
     1919                .subdevice = 0x129d,
     1920                .name = "HP xw8000",
     1921                .type = AC97_TUNE_HP_ONLY
    19101922        },
    19111923        {
     
    19171929        {
    19181930                .subvendor = 0x103c,
     1931                .subdevice = 0x099c,
     1932                .name = "HP nx6110/nc6120",
     1933                .type = AC97_TUNE_HP_MUTE_LED
     1934        },
     1935        {
     1936                .subvendor = 0x103c,
    19191937                .subdevice = 0x0944,
    19201938                .name = "HP nc6220",
     
    19231941        {
    19241942                .subvendor = 0x103c,
    1925                 .subdevice = 0x099c,
    1926                 .name = "HP nx6110/nc6120",
     1943                .subdevice = 0x0934,
     1944                .name = "HP nc8220",
    19271945                .type = AC97_TUNE_HP_MUTE_LED
    1928         },
    1929         {
    1930                 .subvendor = 0x103c,
    1931                 .subdevice = 0x129d,
    1932                 .name = "HP xw8000",
    1933                 .type = AC97_TUNE_HP_ONLY
    19341946        },
    19351947        {
     
    19531965        {
    19541966                .subvendor = 0x104d,
     1967                .subdevice = 0x8144,
     1968                .name = "Sony",
     1969                .type = AC97_TUNE_INV_EAPD
     1970        },
     1971        {
     1972                .subvendor = 0x104d,
    19551973                .subdevice = 0x8197,
    19561974                .name = "Sony S1XP",
     1975                .type = AC97_TUNE_INV_EAPD
     1976        },
     1977        {
     1978                .subvendor = 0x104d,
     1979                .subdevice = 0x81c0,
     1980                .name = "Sony VAIO VGN-T350P", /*AD1981B*/
     1981                .type = AC97_TUNE_INV_EAPD
     1982        },
     1983        {
     1984                .subvendor = 0x104d,
     1985                .subdevice = 0x81c5,
     1986                .name = "Sony VAIO VGN-B1VP", /*AD1981B*/
    19571987                .type = AC97_TUNE_INV_EAPD
    19581988        },
     
    20482078        },
    20492079        {
     2080                .subvendor = 0x161f,
     2081                .subdevice = 0x203a,
     2082                .name = "Gateway 4525GZ",               /* AD1981B */
     2083                .type = AC97_TUNE_INV_EAPD
     2084        },
     2085        {
    20502086                .subvendor = 0x1734,
    20512087                .subdevice = 0x0088,
     
    20572093                .subdevice = 0x0111,
    20582094                .name = "Gateway 2000 ICH2/AD1885",
    2059                 .type = AC97_TUNE_HP_ONLY
    2060         },
    2061         {
    2062                 .subvendor = 0x8086,
    2063                 .subdevice = 0x0104,
    2064                 .name = "Intel D845GEBV2",              /* AD1981B */
    20652095                .type = AC97_TUNE_HP_ONLY
    20662096        },
     
    27802810        t *= 1000000;
    27812811        t += (stop_time.tv_nsec - start_time.tv_nsec) / 1000;
    2782         printk(KERN_INFO "%s: measured %lu usecs (%lu samples)\n", __func__, t, pos);
     2812        dprintf(("%s: measured %lu usecs (%lu samples)\n", __func__, t, pos));
    27832813        if (t == 0) {
    27842814                snd_printk(KERN_ERR "intel8x0: ?? calculation error..\n");
     
    28012831                chip->ac97_bus->clock = (chip->ac97_bus->clock * 48000) / pos;
    28022832      __end:
    2803         printk(KERN_INFO "intel8x0: clocking to %d\n", chip->ac97_bus->clock);
     2833        dprintf(("intel8x0: clocking to %d\n", chip->ac97_bus->clock));
    28042834        snd_ac97_update_power(chip->ac97[0], AC97_PCM_FRONT_DAC_RATE, 0);
    28052835}
     
    31343164};
    31353165
     3166#ifdef NOT_USED
    31363167static struct snd_pci_quirk spdif_aclink_defaults[] __devinitdata = {
    31373168        SND_PCI_QUIRK(0x147b, 0x1c1a, "ASUS KN8", 1),
    31383169        {0} /* end */
    31393170};
     3171#endif
    31403172
    31413173/* look up white/black list for SPDIF over ac-link */
Note: See TracChangeset for help on using the changeset viewer.