summaryrefslogtreecommitdiff
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorAnish Kumar <kanish@codeaurora.org>2014-07-20 10:01:11 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:10:02 -0700
commit4b4b82dab418eb7f6e4ba93e4a103a9d6e264f9c (patch)
tree336a6646014cba3a9b81e70bed92aebd9016d665 /sound/soc/soc-pcm.c
parentc3b0e4c033a0e4e0d655aa3e9ef4623ee11f5736 (diff)
ASoC: pcm: Add support for compat mode
When kernel is compiled for 64 bit and userspace client is in 32 bit mode compat ioctl path will be taken.If platform driver supports compat mode asoc framework should call compat function pointers. Change adds support in asoc framework to call snd_pcm_lib_ioctl in compat mode. Change-Id: Ib4254648666aedfc2037a267cd7ffe4af4be398f Signed-off-by: Anish Kumar <kanish@codeaurora.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 295184565d1f..ee59de5c1ee1 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2226,8 +2226,7 @@ static int soc_pcm_compat_ioctl(struct snd_pcm_substream *substream,
if (platform->driver->ops->compat_ioctl)
return platform->driver->ops->compat_ioctl(substream,
cmd, arg);
- pr_debug("%s: compat mode not supported\n", __func__);
- return -ENOIOCTLCMD;
+ return snd_pcm_lib_ioctl(substream, cmd, arg);
}
static int soc_pcm_ioctl(struct snd_pcm_substream *substream,