diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-07-31 16:51:51 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 10:39:50 +0200 |
commit | 548a648b98318e4b843b636dd2c7f42377e19a00 (patch) | |
tree | af08ffaaabd478080656a7fb8df149d37f66cdb8 /sound/core/pcm_compat.c | |
parent | 1c3985580445ef9225c1ea7714d6d963f7626eeb (diff) | |
download | kernel_samsung_espresso10-548a648b98318e4b843b636dd2c7f42377e19a00.zip kernel_samsung_espresso10-548a648b98318e4b843b636dd2c7f42377e19a00.tar.gz kernel_samsung_espresso10-548a648b98318e4b843b636dd2c7f42377e19a00.tar.bz2 |
[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>
Diffstat (limited to 'sound/core/pcm_compat.c')
-rw-r--r-- | sound/core/pcm_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_compat.c b/sound/core/pcm_compat.c index 2b8aab6..2b53979 100644 --- a/sound/core/pcm_compat.c +++ b/sound/core/pcm_compat.c @@ -478,7 +478,7 @@ static long snd_pcm_ioctl_compat(struct file *file, unsigned int cmd, unsigned l * mmap of PCM status/control records because of the size * incompatibility. */ - substream->no_mmap_ctrl = 1; + pcm_file->no_compat_mmap = 1; switch (cmd) { case SNDRV_PCM_IOCTL_PVERSION: |