aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-06-10 17:47:01 +0200
committerTakashi Iwai <tiwai@suse.de>2011-06-10 17:47:01 +0200
commit15f1c9f97542bf08df66fb60e5dbbcacc879c995 (patch)
treedd671ffd4e22627d496b1451b62cca787788b135
parent09a695f10a70e47b8a966092be35c3ea42878af8 (diff)
downloadalsa-driver-build-unstable-15f1c9f97542bf08df66fb60e5dbbcacc879c995.tar.gz
Fix a build of soc-pcm.c with older kernels without mutex_lock_nested()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--soc/soc-pcm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/soc/soc-pcm.c b/soc/soc-pcm.c
index fa69edd30..ae7c63296 100644
--- a/soc/soc-pcm.c
+++ b/soc/soc-pcm.c
@@ -1,2 +1,8 @@
#include "adriver.h"
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
+#include <linux/mutex.h>
+#ifndef mutex_lock_nested
+#define mutex_lock_nested(a, b) mutex_lock(a)
+#endif
+#endif
#include "../alsa-kernel/soc/soc-pcm.c"