Changeset 703 for GPL/trunk/alsa-kernel/pci/cs46xx/cs46xx.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/cs46xx/cs46xx.c
r695 r703 78 78 if (err < 0) 79 79 return err; 80 if ((err = snd_cs46xx_create(card, pci, 81 external_amp[dev], thinkpad[dev], 82 &chip)) < 0) { 80 err = snd_cs46xx_create(card, pci, 81 external_amp[dev], thinkpad[dev], 82 &chip); 83 if (err < 0) { 83 84 snd_card_free(card); 84 85 return err; … … 86 87 card->private_data = chip; 87 88 chip->accept_valid = mmap_valid[dev]; 88 if ((err = snd_cs46xx_pcm(chip, 0)) < 0) { 89 err = snd_cs46xx_pcm(chip, 0); 90 if (err < 0) { 89 91 snd_card_free(card); 90 92 return err; 91 93 } 92 94 #ifdef CONFIG_SND_CS46XX_NEW_DSP 93 if ((err = snd_cs46xx_pcm_rear(chip, 1)) < 0) { 95 err = snd_cs46xx_pcm_rear(chip, 1); 96 if (err < 0) { 94 97 snd_card_free(card); 95 98 return err; 96 99 } 97 if ((err = snd_cs46xx_pcm_iec958(chip, 2)) < 0) { 100 err = snd_cs46xx_pcm_iec958(chip, 2); 101 if (err < 0) { 98 102 snd_card_free(card); 99 103 return err; 100 104 } 101 105 #endif 102 if ((err = snd_cs46xx_mixer(chip, 2)) < 0) { 106 err = snd_cs46xx_mixer(chip, 2); 107 if (err < 0) { 103 108 snd_card_free(card); 104 109 return err; … … 106 111 #ifdef CONFIG_SND_CS46XX_NEW_DSP 107 112 if (chip->nr_ac97_codecs ==2) { 108 if ((err = snd_cs46xx_pcm_center_lfe(chip, 3)) < 0) { 113 err = snd_cs46xx_pcm_center_lfe(chip, 3); 114 if (err < 0) { 109 115 snd_card_free(card); 110 116 return err; … … 112 118 } 113 119 #endif 114 if ((err = snd_cs46xx_midi(chip, 0)) < 0) { 120 err = snd_cs46xx_midi(chip, 0); 121 if (err < 0) { 115 122 snd_card_free(card); 116 123 return err; 117 124 } 118 if ((err = snd_cs46xx_start_dsp(chip)) < 0) { 125 err = snd_cs46xx_start_dsp(chip); 126 if (err < 0) { 119 127 snd_card_free(card); 120 128 return err; … … 132 140 chip->irq); 133 141 134 if ((err = snd_card_register(card)) < 0) { 142 err = snd_card_register(card); 143 if (err < 0) { 135 144 snd_card_free(card); 136 145 return err;
Note:
See TracChangeset
for help on using the changeset viewer.