[pulseaudio-commits] r1466 - /trunk/src/utils/padsp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Jun 4 02:52:04 PDT 2007
Author: ossman
Date: Mon Jun 4 11:52:03 2007
New Revision: 1466
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1466&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Add support for the poorly documented SNDCTL_DSP_GETTRIGGER.
Modified:
trunk/src/utils/padsp.c
Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=3D1=
466&root=3Dpulseaudio&r1=3D1465&r2=3D1466&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Mon Jun 4 11:52:03 2007
@@ -2061,6 +2061,17 @@
*_errno =3D EIO;
break;
=
+ case SNDCTL_DSP_GETTRIGGER:
+ debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_GETTRIGGER\n");
+
+ *(int*) argp =3D 0;
+ if (!i->play_precork)
+ *(int*) argp |=3D PCM_ENABLE_OUTPUT;
+ if (!i->rec_precork)
+ *(int*) argp |=3D PCM_ENABLE_INPUT;
+
+ break;
+
case SNDCTL_DSP_SETTRIGGER:
debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_SETTRIGGER: 0x=
%08x\n", *(int*) argp);
=
More information about the pulseaudio-commits
mailing list