[ALSA] Fix control/status mmap with shared PCM substream
authorTakashi Iwai <tiwai@suse.de>
Mon, 31 Jul 2006 14:51:51 +0000 (16:51 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:39:50 +0000 (10:39 +0200)
commit548a648b98318e4b843b636dd2c7f42377e19a00
treeaf08ffaaabd478080656a7fb8df149d37f66cdb8
parent1c3985580445ef9225c1ea7714d6d963f7626eeb
[ALSA] Fix control/status mmap with shared PCM substream

The flag to avoid 32bit-incompatible mmap for control/status records
should be outside the pcm substream instance since a substream can be
shared among multiple opens.  Now it's flagged in pcm_file list that
is directly assigned to file->private_data.
Also, removed snd_pcm_add_file() and remove_file() functions and
substream.files field that are not really used in the code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
include/sound/pcm.h
sound/core/pcm_compat.c
sound/core/pcm_native.c