]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit71170fc2c4e621f6c2afca3d1b03bd04cee96f0c
treeaf08ffaaabd478080656a7fb8df149d37f66cdb8
parentaef8f2c3cf8796e1d35f6365c964336256e1c009
[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