Changeset 703 for GPL/trunk/alsa-kernel/pci/atiixp_modem.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/atiixp_modem.c
r695 r703 857 857 runtime->hw = snd_atiixp_pcm_hw; 858 858 dma->ac97_pcm_type = pcm_type; 859 if ((err = snd_pcm_hw_constraint_list(runtime, 0,860 SNDRV_PCM_HW_PARAM_RATE,861 &hw_constraints_rates))< 0)859 err = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 860 &hw_constraints_rates); 861 if (err < 0) 862 862 return err; 863 if ((err = snd_pcm_hw_constraint_integer(runtime,864 SNDRV_PCM_HW_PARAM_PERIODS))< 0)863 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); 864 if (err < 0) 865 865 return err; 866 866 runtime->private_data = dma; … … 1059 1059 return -ENXIO; 1060 1060 1061 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) 1061 err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus); 1062 if (err < 0) 1062 1063 return err; 1063 1064 pbus->clock = clock; … … 1073 1074 ac97.num = i; 1074 1075 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE; 1075 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) { 1076 err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i]); 1077 if (err < 0) { 1076 1078 chip->ac97[i] = NULL; /* to be sure */ 1077 1079 dev_dbg(chip->card->dev, … … 1193 1195 int err; 1194 1196 1195 if ((err = pci_enable_device(pci)) < 0) 1197 err = pci_enable_device(pci); 1198 if (err < 0) 1196 1199 return err; 1197 1200 … … 1207 1210 chip->pci = pci; 1208 1211 chip->irq = -1; 1209 if ((err = pci_request_regions(pci, "ATI IXP MC97")) < 0) { 1212 err = pci_request_regions(pci, "ATI IXP MC97"); 1213 if (err < 0) { 1210 1214 kfree(chip); 1211 1215 pci_disable_device(pci); … … 1230 1234 pci_set_master(pci); 1231 1235 1232 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { 1236 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); 1237 if (err < 0) { 1233 1238 snd_atiixp_free(chip); 1234 1239 return err; … … 1253 1258 strcpy(card->driver, "ATIIXP-MODEM"); 1254 1259 strcpy(card->shortname, "ATI IXP Modem"); 1255 if ((err = snd_atiixp_create(card, pci, &chip)) < 0) 1260 err = snd_atiixp_create(card, pci, &chip); 1261 if (err < 0) 1256 1262 goto __error; 1257 1263 card->private_data = chip; 1258 1264 1259 if ((err = snd_atiixp_aclink_reset(chip)) < 0) 1265 err = snd_atiixp_aclink_reset(chip); 1266 if (err < 0) 1260 1267 goto __error; 1261 1268 1262 if ((err = snd_atiixp_mixer_new(chip, ac97_clock)) < 0) 1269 err = snd_atiixp_mixer_new(chip, ac97_clock); 1270 if (err < 0) 1263 1271 goto __error; 1264 1272 1265 if ((err = snd_atiixp_pcm_new(chip)) < 0) 1273 err = snd_atiixp_pcm_new(chip); 1274 if (err < 0) 1266 1275 goto __error; 1267 1276 … … 1273 1282 card->shortname, pci->revision, chip->addr, chip->irq); 1274 1283 1275 if ((err = snd_card_register(card)) < 0) 1284 err = snd_card_register(card); 1285 if (err < 0) 1276 1286 goto __error; 1277 1287
Note:
See TracChangeset
for help on using the changeset viewer.