diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-06-20 15:45:10 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-06-20 15:45:10 +0000 |
commit | 1040b69cf2fc6175a1069226a93ec66f1a092ad0 (patch) | |
tree | 5b37b00cc5d555e5605df9fb7f2353b576249d07 /src | |
parent | 07edf591771e719a5616ca11319f644fbf66f576 (diff) |
Warn when applications use SNDCTL_DSP_GET[IO]PTR even when they shouldn't.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1047 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/padsp.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c index 3b8ecbf1..3b2294f7 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -1992,10 +1992,19 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno) break; } - + + case SNDCTL_DSP_GETIPTR: + debug(DEBUG_LEVEL_NORMAL, __FILE__": invalid ioctl SNDCTL_DSP_GETIPTR\n"); + goto inval; + + case SNDCTL_DSP_GETOPTR: + debug(DEBUG_LEVEL_NORMAL, __FILE__": invalid ioctl SNDCTL_DSP_GETOPTR\n"); + goto inval; + default: debug(DEBUG_LEVEL_NORMAL, __FILE__": unknown ioctl 0x%08lx\n", request); +inval: *_errno = EINVAL; goto fail; } |