Ignore:
Timestamp:
Jan 25, 2007, 7:00:54 PM (19 years ago)
Author:
vladest
Message:

Added AD HDA updates
Fix TRAP in Intel chips

File:
1 edited

Legend:

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

    r86 r88  
    20902090    unsigned int glob_sta = 0;
    20912091    ac97_bus_ops_t *ops;
    2092     static ac97_bus_ops_t standard_bus_ops = {
    2093         0,snd_intel8x0_codec_write,
    2094         snd_intel8x0_codec_read,0,0
     2092    static struct snd_ac97_bus_ops standard_bus_ops = {
     2093        .write = snd_intel8x0_codec_write,
     2094        .read = snd_intel8x0_codec_read,
    20952095    };
    2096     static ac97_bus_ops_t ali_bus_ops = {
    2097         0,snd_intel8x0_ali_codec_write,
    2098         snd_intel8x0_ali_codec_read,0,0
     2096    static struct snd_ac97_bus_ops ali_bus_ops = {
     2097        .write = snd_intel8x0_ali_codec_write,
     2098        .read = snd_intel8x0_ali_codec_read,
    20992099    };
     2100
    21002101    chip->spdif_idx = -1; /* use PCMOUT (or disabled) */
    21012102    switch (chip->device_type) {
     
    30083009        return err;
    30093010    }
    3010 
     3011#ifdef DEBUG
     3012    dprintf(("snd_intel8x0_create. cp1"));
     3013#endif
    30113014    if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
    30123015        snd_intel8x0_free(chip);
     
    30153018
    30163019    *r_intel8x0 = chip;
     3020#ifdef DEBUG
     3021    dprintf(("snd_intel8x0_create. cp2"));
     3022#endif
    30173023    return 0;
    30183024}
     
    31123118        return err;
    31133119    }
     3120#ifdef DEBUG
     3121    dprintf(("snd_intel8x0_mixer passed"));
     3122#endif
    31143123    if ((err = snd_intel8x0_pcm(chip)) < 0) {
    31153124        snd_card_free(card);
     
    31183127    }
    31193128
     3129#ifdef DEBUG
     3130    dprintf(("snd_intel8x0_pcm passed"));
     3131#endif
    31203132    if (mpu_port[dev] == 0x300 || mpu_port[dev] == 0x330) {
    31213133        if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_INTEL8X0,
     
    31293141
    31303142    snd_intel8x0_proc_init(chip);
     3143#ifdef DEBUG
     3144    dprintf(("snd_intel8x0_proc_init passed"));
     3145#endif
    31313146
    31323147    sprintf(card->longname, "%s at 0x%lx, irq %i",
     
    31353150    if (! ac97_clock[dev])
    31363151        intel8x0_measure_ac97_clock(chip);
     3152#ifdef DEBUG
     3153    dprintf(("intel8x0_measure_ac97_clock passed"));
     3154#endif
    31373155
    31383156    if ((err = snd_card_register(card)) < 0) {
     
    31413159        return err;
    31423160    }
     3161#ifdef DEBUG
     3162    dprintf(("snd_card_register passed"));
     3163#endif
    31433164    pci_set_drvdata(pci, card);
    31443165    dev++;
Note: See TracChangeset for help on using the changeset viewer.