Update of /cvsroot/alsa/alsa-kernel/core
In directory usw-pr-cvs1:/tmp/cvs-serv18464
Modified Files:
pcm_native.c
Log Message:
don't touch i_sem semaphore on 2.4 or later.
the recent kernels don't need this.
Index: pcm_native.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm_native.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- pcm_native.c 3 Oct 2002 10:16:21 -0000 1.24
+++ pcm_native.c 8 Oct 2002 14:54:34 -0000 1.25
@@ -2311,7 +2311,9 @@
snd_pcm_runtime_t *runtime;
snd_pcm_sframes_t result;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
up(&file->f_dentry->d_inode->i_sem);
+#endif
pcm_file = snd_magic_cast(snd_pcm_file_t, file->private_data, result = -ENXIO;
goto end);
substream = pcm_file->substream;
snd_assert(substream != NULL, result = -ENXIO; goto end);
@@ -2329,7 +2331,9 @@
if (result > 0)
result = frames_to_bytes(runtime, result);
end:
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
down(&file->f_dentry->d_inode->i_sem);
+#endif
return result;
}
@@ -2376,7 +2380,9 @@
void *bufs[128];
snd_pcm_uframes_t frames;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
up(&file->f_dentry->d_inode->i_sem);
+#endif
pcm_file = snd_magic_cast(snd_pcm_file_t, file->private_data, result = -ENXIO;
goto end);
substream = pcm_file->substream;
snd_assert(substream != NULL, result = -ENXIO; goto end);
@@ -2397,7 +2403,9 @@
if (result > 0)
result = frames_to_bytes(runtime, result);
end:
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
down(&file->f_dentry->d_inode->i_sem);
+#endif
return result;
}
#endif
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog