Changeset 703 for GPL/trunk/alsa-kernel/pci/intel8x0.c
- Timestamp:
- Sep 26, 2021, 6:18:40 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 696-702
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/intel8x0.c
r695 r703 83 83 ICH_REG_##name##_PIV = base + 0x0a, /* byte - prefetched index value */ \ 84 84 ICH_REG_##name##_CR = base + 0x0b, /* byte - control register */ \ 85 } ;85 } 86 86 87 87 /* busmaster blocks */ … … 542 542 } else { 543 543 res = iagetword(chip, reg + ac97->num * 0x80); 544 if ((tmp = igetdword(chip, ICHREG(GLOB_STA))) & ICH_RCS) { 544 tmp = igetdword(chip, ICHREG(GLOB_STA)); 545 if (tmp & ICH_RCS) { 545 546 /* reset RCS and preserve other R/WC bits */ 546 547 iputdword(chip, ICHREG(GLOB_STA), tmp & … … 563 564 if (snd_intel8x0_codec_semaphore(chip, codec) >= 0) { 564 565 iagetword(chip, codec * 0x80); 565 if ((tmp = igetdword(chip, ICHREG(GLOB_STA))) & ICH_RCS) { 566 tmp = igetdword(chip, ICHREG(GLOB_STA)); 567 if (tmp & ICH_RCS) { 566 568 /* reset RCS and preserve other R/WC bits */ 567 569 iputdword(chip, ICHREG(GLOB_STA), tmp & … … 1109 1111 runtime->hw.period_bytes_max = 64*1024; 1110 1112 } 1111 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) 1113 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); 1114 if (err < 0) 1112 1115 return err; 1113 1116 runtime->private_data = ichdev; … … 2194 2197 } 2195 2198 } 2196 if ((err = snd_ac97_bus(chip->card, 0, ops, chip, &pbus)) < 0) 2199 err = snd_ac97_bus(chip->card, 0, ops, chip, &pbus); 2200 if (err < 0) 2197 2201 goto __err; 2198 2202 pbus->private_free = snd_intel8x0_mixer_free_ac97_bus; … … 2210 2214 for (i = 0; i < codecs; i++) { 2211 2215 ac97.num = i; 2212 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) { 2216 err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i]); 2217 if (err < 0) { 2213 2218 if (err != -EACCES) 2214 2219 dev_err(chip->card->dev, … … 2497 2502 2498 2503 if (chip->device_type != DEVICE_ALI) { 2499 if ((err = snd_intel8x0_ich_chip_init(chip, probing)) < 0) 2504 err = snd_intel8x0_ich_chip_init(chip, probing); 2505 if (err < 0) 2500 2506 return err; 2501 2507 iagetword(chip, 0); /* clear semaphore flag */ 2502 2508 } else { 2503 if ((err = snd_intel8x0_ali_chip_init(chip, probing)) < 0) 2509 err = snd_intel8x0_ali_chip_init(chip, probing); 2510 if (err < 0) 2504 2511 return err; 2505 2512 } … … 2943 2950 *r_intel8x0 = NULL; 2944 2951 2945 if ((err = pci_enable_device(pci)) < 0) 2952 err = pci_enable_device(pci); 2953 if (err < 0) 2946 2954 return err; 2947 2955 … … 2975 2983 chip->fix_nocache = 1; /* enable workaround */ 2976 2984 2977 if ((err = pci_request_regions(pci, card->shortname)) < 0) { 2985 err = pci_request_regions(pci, card->shortname); 2986 if (err < 0) { 2978 2987 kfree(chip); 2979 2988 pci_disable_device(pci); … … 3089 3098 chip->codec_isr_bits |= chip->codec_bit[i]; 3090 3099 3091 if ((err = snd_intel8x0_chip_init(chip, 1)) < 0) { 3100 err = snd_intel8x0_chip_init(chip, 1); 3101 if (err < 0) { 3092 3102 snd_intel8x0_free(chip); 3093 3103 return err; … … 3104 3114 card->sync_irq = chip->irq; 3105 3115 3106 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { 3116 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); 3117 if (err < 0) { 3107 3118 snd_intel8x0_free(chip); 3108 3119 return err; … … 3211 3222 } 3212 3223 3213 if ((err = snd_intel8x0_create(card, pci, pci_id->driver_data,3214 &chip))< 0) {3224 err = snd_intel8x0_create(card, pci, pci_id->driver_data, &chip); 3225 if (err < 0) { 3215 3226 snd_card_free(card); 3216 3227 return err; … … 3218 3229 card->private_data = chip; 3219 3230 3220 if ((err = snd_intel8x0_mixer(chip, ac97_clock, ac97_quirk)) < 0) { 3231 err = snd_intel8x0_mixer(chip, ac97_clock, ac97_quirk); 3232 if (err < 0) { 3221 3233 snd_card_free(card); 3222 3234 return err; 3223 3235 } 3224 if ((err = snd_intel8x0_pcm(chip)) < 0) { 3236 err = snd_intel8x0_pcm(chip); 3237 if (err < 0) { 3225 3238 snd_card_free(card); 3226 3239 return err; … … 3242 3255 } 3243 3256 3244 if ((err = snd_card_register(card)) < 0) { 3257 err = snd_card_register(card); 3258 if (err < 0) { 3245 3259 snd_card_free(card); 3246 3260 return err;
Note:
See TracChangeset
for help on using the changeset viewer.