History

[ALSA] Remove bogus check of mmap_count in snd_pcm_release()

Removed a bogus check of mmap_count in snd_pcm_release(). This is no longer true for the shared streams.

Takashi Iwai committed 20 years ago

Commit 3758d4e1 parent 688956f1 file · +0 −1Browse files

Unified · Split

sound/core/pcm_native.c+0−1
@@ -2205,7 +2205,6 @@ static int snd_pcm_release(struct inode *inode, struct file *file) · 2204 unmodified lines
2205 pcm_file = file->private_data;2205 pcm_file = file->private_data;
2206 substream = pcm_file->substream;2206 substream = pcm_file->substream;
2207 snd_assert(substream != NULL, return -ENXIO);2207 snd_assert(substream != NULL, return -ENXIO);
2208 snd_assert(!atomic_read(&substream->mmap_count), );
2209 pcm = substream->pcm;2208 pcm = substream->pcm;
2210 fasync_helper(-1, file, 0, &substream->runtime->fasync);2209 fasync_helper(-1, file, 0, &substream->runtime->fasync);
2211 mutex_lock(&pcm->open_mutex);2210 mutex_lock(&pcm->open_mutex);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t