[pulseaudio-commits] r1444 - /trunk/src/utils/padsp.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed May 23 08:30:36 PDT 2007


Author: lennart
Date: Wed May 23 17:30:34 2007
New Revision: 1444

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1444&root=3Dpulseaudio&vi=
ew=3Drev
Log:
fix a few obvious copynpaste errors when handling volumes

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=
444&root=3Dpulseaudio&r1=3D1443&r2=3D1444&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 Wed May 23 17:30:34 2007
@@ -1511,14 +1511,14 @@
         case SOUND_MIXER_WRITE_IGAIN: {
             pa_cvolume v, *pv;
 =

-            if (request =3D=3D SOUND_MIXER_READ_PCM)
+            if (request =3D=3D SOUND_MIXER_WRITE_PCM)
                 debug(DEBUG_LEVEL_NORMAL, __FILE__": SOUND_MIXER_WRITE_PCM=
\n");
             else
                 debug(DEBUG_LEVEL_NORMAL, __FILE__": SOUND_MIXER_WRITE_IGA=
IN\n");
 =

             pa_threaded_mainloop_lock(i->mainloop);
 =

-            if (request =3D=3D SOUND_MIXER_READ_PCM) {
+            if (request =3D=3D SOUND_MIXER_WRITE_PCM) {
                 v =3D i->sink_volume;
                 pv =3D &i->sink_volume;
             } else {
@@ -1532,7 +1532,7 @@
             if (!pa_cvolume_equal(pv, &v)) {
                 pa_operation *o;
 =

-                if (request =3D=3D SOUND_MIXER_READ_PCM)
+                if (request =3D=3D SOUND_MIXER_WRITE_PCM)
                     o =3D pa_context_set_sink_volume_by_index(i->context, =
i->sink_index, pv, context_success_cb, i);
                 else
                     o =3D pa_context_set_source_volume_by_index(i->context=
, i->source_index, pv, context_success_cb, i);




More information about the pulseaudio-commits mailing list