Changeset 88 for GPL/trunk/alsa-kernel/pci/intel8x0.c
- Timestamp:
- Jan 25, 2007, 7:00:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/intel8x0.c
r86 r88 2090 2090 unsigned int glob_sta = 0; 2091 2091 ac97_bus_ops_t *ops; 2092 static ac97_bus_ops_tstandard_bus_ops = {2093 0,snd_intel8x0_codec_write,2094 snd_intel8x0_codec_read,0,02092 static struct snd_ac97_bus_ops standard_bus_ops = { 2093 .write = snd_intel8x0_codec_write, 2094 .read = snd_intel8x0_codec_read, 2095 2095 }; 2096 static ac97_bus_ops_tali_bus_ops = {2097 0,snd_intel8x0_ali_codec_write,2098 snd_intel8x0_ali_codec_read,0,02096 static struct snd_ac97_bus_ops ali_bus_ops = { 2097 .write = snd_intel8x0_ali_codec_write, 2098 .read = snd_intel8x0_ali_codec_read, 2099 2099 }; 2100 2100 2101 chip->spdif_idx = -1; /* use PCMOUT (or disabled) */ 2101 2102 switch (chip->device_type) { … … 3008 3009 return err; 3009 3010 } 3010 3011 #ifdef DEBUG 3012 dprintf(("snd_intel8x0_create. cp1")); 3013 #endif 3011 3014 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { 3012 3015 snd_intel8x0_free(chip); … … 3015 3018 3016 3019 *r_intel8x0 = chip; 3020 #ifdef DEBUG 3021 dprintf(("snd_intel8x0_create. cp2")); 3022 #endif 3017 3023 return 0; 3018 3024 } … … 3112 3118 return err; 3113 3119 } 3120 #ifdef DEBUG 3121 dprintf(("snd_intel8x0_mixer passed")); 3122 #endif 3114 3123 if ((err = snd_intel8x0_pcm(chip)) < 0) { 3115 3124 snd_card_free(card); … … 3118 3127 } 3119 3128 3129 #ifdef DEBUG 3130 dprintf(("snd_intel8x0_pcm passed")); 3131 #endif 3120 3132 if (mpu_port[dev] == 0x300 || mpu_port[dev] == 0x330) { 3121 3133 if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_INTEL8X0, … … 3129 3141 3130 3142 snd_intel8x0_proc_init(chip); 3143 #ifdef DEBUG 3144 dprintf(("snd_intel8x0_proc_init passed")); 3145 #endif 3131 3146 3132 3147 sprintf(card->longname, "%s at 0x%lx, irq %i", … … 3135 3150 if (! ac97_clock[dev]) 3136 3151 intel8x0_measure_ac97_clock(chip); 3152 #ifdef DEBUG 3153 dprintf(("intel8x0_measure_ac97_clock passed")); 3154 #endif 3137 3155 3138 3156 if ((err = snd_card_register(card)) < 0) { … … 3141 3159 return err; 3142 3160 } 3161 #ifdef DEBUG 3162 dprintf(("snd_card_register passed")); 3163 #endif 3143 3164 pci_set_drvdata(pci, card); 3144 3165 dev++;
Note:
See TracChangeset
for help on using the changeset viewer.