Changeset 770
- Timestamp:
- Apr 14, 2025, 11:14:34 AM (4 months ago)
- Location:
- GPL/branches/uniaud32-exp/alsa-kernel
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-exp/alsa-kernel/core/info.c
r767 r770 330 330 if (next > buf->len) { 331 331 char *nbuf = kvzalloc(PAGE_ALIGN(next), GFP_KERNEL); 332 if (!nbuf) 333 return -ENOMEM; 332 if (!nbuf) { 333 err = -ENOMEM; 334 goto error; 335 } 334 336 kvfree(buf->buffer); 335 337 buf->buffer = nbuf; -
GPL/branches/uniaud32-exp/alsa-kernel/core/init.c
r767 r770 1094 1094 spin_lock(&card->files_lock); 1095 1095 if (card->shutdown) { 1096 spin_unlock(&card->files_lock);1096 spin_unlock(&card->files_lock); 1097 1097 kfree(mfile); 1098 1098 return -ENODEV; … … 1100 1100 list_add(&mfile->list, &card->files_list); 1101 1101 get_device(&card->card_dev); 1102 spin_unlock(&card->files_lock); 1102 1103 return 0; 1103 1104 } … … 1132 1133 found = mfile; 1133 1134 break; 1134 1135 } 1135 1136 } 1136 1137 if (list_empty(&card->files_list)) -
GPL/branches/uniaud32-exp/alsa-kernel/core/pcm.c
r767 r770 128 128 goto _error; 129 129 } 130 pstr = &pcm->streams[stream]; 130 131 if (pstr->substream_count == 0) { 131 132 err = -ENOENT; -
GPL/branches/uniaud32-exp/alsa-kernel/core/pcm_memory.c
r767 r770 198 198 if (substream->runtime) { 199 199 buffer->error = -EBUSY; 200 return;200 goto unlock; 201 201 } 202 202 if (!snd_info_get_line(buffer, line, sizeof(line))) { … … 234 234 buffer->error = -EINVAL; 235 235 } 236 unlock: 237 mutex_unlock(&substream->pcm->open_mutex); 236 238 } 237 239 -
GPL/branches/uniaud32-exp/alsa-kernel/core/seq/seq_ports.c
r767 r770 55 55 break; /* deleting now */ 56 56 snd_use_lock_use(&port->use_lock); 57 read_unlock(&client->ports_lock); 57 58 return port; 58 59 } … … 653 654 err = 0; 654 655 break; 655 656 656 } 657 } 657 658 up_write(&dest->list_mutex); 658 659 if (err < 0) -
GPL/branches/uniaud32-exp/alsa-kernel/core/seq/seq_prioq.c
r767 r770 180 180 cur = cur->next; 181 181 if (! --count) { 182 spin_unlock_irqrestore(&f->lock, flags); 182 183 pr_err("ALSA: seq: cannot find a pointer.. infinite loop?\n"); 183 spin_unlock_irqrestore(&f->lock, flags);184 184 return -EINVAL; 185 185 } -
GPL/branches/uniaud32-exp/alsa-kernel/core/seq/seq_queue.c
r767 r770 52 52 int i; 53 53 unsigned long flags; 54 54 55 55 spin_lock_irqsave(&queue_list_lock, flags); 56 56 for (i = 0; i < SNDRV_SEQ_MAX_QUEUES; i++) { … … 71 71 struct snd_seq_queue *q; 72 72 unsigned long flags; 73 73 74 74 spin_lock_irqsave(&queue_list_lock, flags); 75 75 q = queue_list[id]; … … 78 78 if (q->owner == client) { 79 79 /* found */ 80 q->klocked = 1; 80 81 spin_unlock(&q->owner_lock); 81 q->klocked = 1;82 82 queue_list[id] = NULL; 83 83 num_queues--; -
GPL/branches/uniaud32-exp/alsa-kernel/core/seq/seq_timer.c
r767 r770 135 135 if (tmr == NULL) 136 136 return; 137 138 137 spin_lock_irqsave(&tmr->lock, flags); 139 138 if (!tmr->running) { … … 148 147 (((resolution & 0xffff) * tmr->skew) >> 16); 149 148 } 150 149 151 150 /* update timer */ 152 151 snd_seq_inc_time_nsec(&tmr->cur_time, resolution); -
GPL/branches/uniaud32-exp/alsa-kernel/core/sound.c
r767 r770 158 158 return -ENODEV; 159 159 } 160 } 160 161 #ifndef TARGET_OS2 //code below from 3.13 crashes, using 3.8 code for now 161 162 new_fops = fops_get(mptr->f_ops); 162 163 mutex_unlock(&sound_mutex); 163 }164 164 if (!new_fops) 165 165 return -ENODEV; … … 171 171 #else 172 172 new_fops = file->f_op; 173 mutex_unlock(&sound_mutex);174 }175 173 file->f_op = fops_get(mptr->f_ops); 176 174 if (file->f_op == NULL) { -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_realtek.c
r767 r770 7855 7855 if (count_devindex > 0) 7856 7856 count = count_devindex; 7857 #endif7858 7857 match = devm_kasprintf(dev, GFP_KERNEL, "-%%s:00-%s.%%d", acpi_ids[i].name); 7859 7858 if (!match) … … 7861 7860 codec_info(cdc, "Found %d %s on %s (%s)\n", count, acpi_ids[i].hid, bus, match); 7862 7861 comp_generic_fixup(cdc, HDA_FIXUP_ACT_PRE_PROBE, bus, acpi_ids[i].hid, match, count); 7862 #else 7863 codec_dbg(cdc, "Cirrus Amp detection not supported on OS/2\n"); 7864 return; 7865 7866 #endif 7863 7867 } 7864 7868
Note:
See TracChangeset
for help on using the changeset viewer.