Loading sound/core/pcm.c +8 −5 Original line number Diff line number Diff line Loading @@ -888,7 +888,8 @@ static int snd_pcm_free(struct snd_pcm *pcm) if (!pcm) return 0; list_for_each_entry(notify, &snd_pcm_notify_list, list) { if (!pcm->internal) { list_for_each_entry(notify, &snd_pcm_notify_list, list) notify->n_unregister(pcm); } if (pcm->private_free) Loading Loading @@ -1129,7 +1130,7 @@ static int snd_pcm_dev_disconnect(struct snd_device *device) mutex_lock(&pcm->open_mutex); wake_up(&pcm->open_wait); list_del_init(&pcm->list); for (cidx = 0; cidx < 2; cidx++) for (cidx = 0; cidx < 2; cidx++) { for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { snd_pcm_stream_lock_irq(substream); if (substream->runtime) { Loading @@ -1139,7 +1140,9 @@ static int snd_pcm_dev_disconnect(struct snd_device *device) } snd_pcm_stream_unlock_irq(substream); } list_for_each_entry(notify, &snd_pcm_notify_list, list) { } if (!pcm->internal) { list_for_each_entry(notify, &snd_pcm_notify_list, list) notify->n_disconnect(pcm); } for (cidx = 0; cidx < 2; cidx++) { Loading Loading
sound/core/pcm.c +8 −5 Original line number Diff line number Diff line Loading @@ -888,7 +888,8 @@ static int snd_pcm_free(struct snd_pcm *pcm) if (!pcm) return 0; list_for_each_entry(notify, &snd_pcm_notify_list, list) { if (!pcm->internal) { list_for_each_entry(notify, &snd_pcm_notify_list, list) notify->n_unregister(pcm); } if (pcm->private_free) Loading Loading @@ -1129,7 +1130,7 @@ static int snd_pcm_dev_disconnect(struct snd_device *device) mutex_lock(&pcm->open_mutex); wake_up(&pcm->open_wait); list_del_init(&pcm->list); for (cidx = 0; cidx < 2; cidx++) for (cidx = 0; cidx < 2; cidx++) { for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { snd_pcm_stream_lock_irq(substream); if (substream->runtime) { Loading @@ -1139,7 +1140,9 @@ static int snd_pcm_dev_disconnect(struct snd_device *device) } snd_pcm_stream_unlock_irq(substream); } list_for_each_entry(notify, &snd_pcm_notify_list, list) { } if (!pcm->internal) { list_for_each_entry(notify, &snd_pcm_notify_list, list) notify->n_disconnect(pcm); } for (cidx = 0; cidx < 2; cidx++) { Loading