Changeset 703 for GPL/trunk/alsa-kernel/pci/intel8x0m.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/intel8x0m.c
r695 r703 58 58 ICH_REG_##name##_PIV = base + 0x0a, /* byte - prefetched index value */ \ 59 59 ICH_REG_##name##_CR = base + 0x0b, /* byte - control register */ \ 60 } ;60 } 61 61 62 62 /* busmaster blocks */ … … 343 343 } else { 344 344 res = iagetword(chip, reg + ac97->num * 0x80); 345 if ((tmp = igetdword(chip, ICHREG(GLOB_STA))) & ICH_RCS) { 345 tmp = igetdword(chip, ICHREG(GLOB_STA)); 346 if (tmp & ICH_RCS) { 346 347 /* reset RCS and preserve other R/WC bits */ 347 348 iputdword(chip, ICHREG(GLOB_STA), … … 801 802 glob_sta = igetdword(chip, ICHREG(GLOB_STA)); 802 803 803 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) 804 err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus); 805 if (err < 0) 804 806 goto __err; 805 807 pbus->private_free = snd_intel8x0m_mixer_free_ac97_bus; … … 810 812 ac97.pci = chip->pci; 811 813 ac97.num = glob_sta & ICH_SCR ? 1 : 0; 812 if ((err = snd_ac97_mixer(pbus, &ac97, &x97)) < 0) { 814 err = snd_ac97_mixer(pbus, &ac97, &x97); 815 if (err < 0) { 813 816 dev_err(chip->card->dev, 814 817 "Unable to initialize codec #%d\n", ac97.num); … … 928 931 int err; 929 932 930 if ((err = snd_intel8x0m_ich_chip_init(chip, probing)) < 0) 933 err = snd_intel8x0m_ich_chip_init(chip, probing); 934 if (err < 0) 931 935 return err; 932 936 iagetword(chip, 0); /* clear semaphore flag */ … … 1076 1080 *r_intel8x0m = NULL; 1077 1081 1078 if ((err = pci_enable_device(pci)) < 0) 1082 err = pci_enable_device(pci); 1083 if (err < 0) 1079 1084 return err; 1080 1085 … … 1090 1095 chip->irq = -1; 1091 1096 1092 if ((err = pci_request_regions(pci, card->shortname)) < 0) { 1097 err = pci_request_regions(pci, card->shortname); 1098 if (err < 0) { 1093 1099 kfree(chip); 1094 1100 pci_disable_device(pci); … … 1168 1174 pci_set_master(pci); 1169 1175 1170 if ((err = snd_intel8x0m_chip_init(chip, 1)) < 0) { 1176 err = snd_intel8x0m_chip_init(chip, 1); 1177 if (err < 0) { 1171 1178 snd_intel8x0m_free(chip); 1172 1179 return err; … … 1182 1189 card->sync_irq = chip->irq; 1183 1190 1184 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { 1191 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); 1192 if (err < 0) { 1185 1193 snd_intel8x0m_free(chip); 1186 1194 return err; … … 1239 1247 strcat(card->shortname," Modem"); 1240 1248 1241 if ((err = snd_intel8x0m_create(card, pci, pci_id->driver_data, &chip)) < 0) { 1249 err = snd_intel8x0m_create(card, pci, pci_id->driver_data, &chip); 1250 if (err < 0) { 1242 1251 snd_card_free(card); 1243 1252 return err; … … 1245 1254 card->private_data = chip; 1246 1255 1247 if ((err = snd_intel8x0m_mixer(chip, ac97_clock)) < 0) { 1256 err = snd_intel8x0m_mixer(chip, ac97_clock); 1257 if (err < 0) { 1248 1258 snd_card_free(card); 1249 1259 return err; 1250 1260 } 1251 if ((err = snd_intel8x0m_pcm(chip)) < 0) { 1261 err = snd_intel8x0m_pcm(chip); 1262 if (err < 0) { 1252 1263 snd_card_free(card); 1253 1264 return err; … … 1259 1270 card->shortname, chip->irq); 1260 1271 1261 if ((err = snd_card_register(card)) < 0) { 1272 err = snd_card_register(card); 1273 if (err < 0) { 1262 1274 snd_card_free(card); 1263 1275 return err;
Note:
See TracChangeset
for help on using the changeset viewer.