summaryrefslogtreecommitdiffstats
path: root/src/utils/padsp.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-05-23 15:30:34 +0000
committerLennart Poettering <lennart@poettering.net>2007-05-23 15:30:34 +0000
commit8e738ede9b2050a29400d4218b96b68863290857 (patch)
tree24378741285eb0482ca3c7ae04dcb28e43216ec9 /src/utils/padsp.c
parent0e53f939c011a5f2ebc15658029f0a578e0bd68f (diff)
fix a few obvious copynpaste errors when handling volumes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1444 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/utils/padsp.c')
-rw-r--r--src/utils/padsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c
index fddd8fb4..0ac48254 100644
--- a/src/utils/padsp.c
+++ b/src/utils/padsp.c
@@ -1511,14 +1511,14 @@ static int mixer_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno
case SOUND_MIXER_WRITE_IGAIN: {
pa_cvolume v, *pv;
- if (request == SOUND_MIXER_READ_PCM)
+ if (request == SOUND_MIXER_WRITE_PCM)
debug(DEBUG_LEVEL_NORMAL, __FILE__": SOUND_MIXER_WRITE_PCM\n");
else
debug(DEBUG_LEVEL_NORMAL, __FILE__": SOUND_MIXER_WRITE_IGAIN\n");
pa_threaded_mainloop_lock(i->mainloop);
- if (request == SOUND_MIXER_READ_PCM) {
+ if (request == SOUND_MIXER_WRITE_PCM) {
v = i->sink_volume;
pv = &i->sink_volume;
} else {
@@ -1532,7 +1532,7 @@ static int mixer_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno
if (!pa_cvolume_equal(pv, &v)) {
pa_operation *o;
- if (request == SOUND_MIXER_READ_PCM)
+ if (request == SOUND_MIXER_WRITE_PCM)
o = pa_context_set_sink_volume_by_index(i->context, i->sink_index, pv, context_success_cb, i);
else
o = pa_context_set_source_volume_by_index(i->context, i->source_index, pv, context_success_cb, i);