diff options
author | Pierre Ossman <ossman@cendio.se> | 2007-06-04 09:52:03 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2007-06-04 09:52:03 +0000 |
commit | 13a4c5290a5a80025c72e9f40c28c2e6437c82e8 (patch) | |
tree | a182b78e9b0a032daf8fadb4d492e131402ddf13 /src | |
parent | 1e12e0ee8dfdda1632b9c082aba6fc1956813a5b (diff) |
Add support for the poorly documented SNDCTL_DSP_GETTRIGGER.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1466 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/padsp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c index 955bd2f1..b9c26f09 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -2061,6 +2061,17 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno) *_errno = EIO; break; + case SNDCTL_DSP_GETTRIGGER: + debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_GETTRIGGER\n"); + + *(int*) argp = 0; + if (!i->play_precork) + *(int*) argp |= PCM_ENABLE_OUTPUT; + if (!i->rec_precork) + *(int*) argp |= PCM_ENABLE_INPUT; + + break; + case SNDCTL_DSP_SETTRIGGER: debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_SETTRIGGER: 0x%08x\n", *(int*) argp); |