Changeset 703 for GPL/trunk/alsa-kernel/pci/atiixp.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.c
r695 r703 1050 1050 runtime->hw.formats = SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE; 1051 1051 } 1052 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) 1052 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); 1053 if (err < 0) 1053 1054 return err; 1054 1055 runtime->private_data = dma; … … 1426 1427 return -ENXIO; 1427 1428 1428 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) 1429 err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus); 1430 if (err < 0) 1429 1431 return err; 1430 1432 pbus->clock = clock; … … 1442 1444 if (! chip->spdif_over_aclink) 1443 1445 ac97.scaps |= AC97_SCAP_NO_SPDIF; 1444 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) { 1446 err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i]); 1447 if (err < 0) { 1445 1448 chip->ac97[i] = NULL; /* to be sure */ 1446 1449 dev_dbg(chip->card->dev, … … 1573 1576 int err; 1574 1577 1575 if ((err = pci_enable_device(pci)) < 0) 1578 err = pci_enable_device(pci); 1579 if (err < 0) 1576 1580 return err; 1577 1581 … … 1587 1591 chip->pci = pci; 1588 1592 chip->irq = -1; 1589 if ((err = pci_request_regions(pci, "ATI IXP AC97")) < 0) { 1593 err = pci_request_regions(pci, "ATI IXP AC97"); 1594 if (err < 0) { 1590 1595 pci_disable_device(pci); 1591 1596 kfree(chip); … … 1610 1615 pci_set_master(pci); 1611 1616 1612 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { 1617 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); 1618 if (err < 0) { 1613 1619 snd_atiixp_free(chip); 1614 1620 return err; … … 1633 1639 strcpy(card->driver, spdif_aclink ? "ATIIXP" : "ATIIXP-SPDMA"); 1634 1640 strcpy(card->shortname, "ATI IXP"); 1635 if ((err = snd_atiixp_create(card, pci, &chip)) < 0) 1641 err = snd_atiixp_create(card, pci, &chip); 1642 if (err < 0) 1636 1643 goto __error; 1637 1644 card->private_data = chip; 1638 1645 1639 if ((err = snd_atiixp_aclink_reset(chip)) < 0) 1646 err = snd_atiixp_aclink_reset(chip); 1647 if (err < 0) 1640 1648 goto __error; 1641 1649 1642 1650 chip->spdif_over_aclink = spdif_aclink; 1643 1651 1644 if ((err = snd_atiixp_mixer_new(chip, ac97_clock, ac97_quirk)) < 0) 1652 err = snd_atiixp_mixer_new(chip, ac97_clock, ac97_quirk); 1653 if (err < 0) 1645 1654 goto __error; 1646 1655 1647 if ((err = snd_atiixp_pcm_new(chip)) < 0) 1656 err = snd_atiixp_pcm_new(chip); 1657 if (err < 0) 1648 1658 goto __error; 1649 1659 … … 1662 1672 chip->addr, chip->irq); 1663 1673 1664 if ((err = snd_card_register(card)) < 0) 1674 err = snd_card_register(card); 1675 if (err < 0) 1665 1676 goto __error; 1666 1677
Note:
See TracChangeset
for help on using the changeset viewer.