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
This commit is contained in:
Lennart Poettering 2007-05-23 15:30:34 +00:00
parent 0e53f939c0
commit 8e738ede9b

View file

@ -1511,14 +1511,14 @@ static int mixer_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno
case SOUND_MIXER_WRITE_IGAIN: { case SOUND_MIXER_WRITE_IGAIN: {
pa_cvolume v, *pv; 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"); debug(DEBUG_LEVEL_NORMAL, __FILE__": SOUND_MIXER_WRITE_PCM\n");
else else
debug(DEBUG_LEVEL_NORMAL, __FILE__": SOUND_MIXER_WRITE_IGAIN\n"); debug(DEBUG_LEVEL_NORMAL, __FILE__": SOUND_MIXER_WRITE_IGAIN\n");
pa_threaded_mainloop_lock(i->mainloop); pa_threaded_mainloop_lock(i->mainloop);
if (request == SOUND_MIXER_READ_PCM) { if (request == SOUND_MIXER_WRITE_PCM) {
v = i->sink_volume; v = i->sink_volume;
pv = &i->sink_volume; pv = &i->sink_volume;
} else { } 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)) { if (!pa_cvolume_equal(pv, &v)) {
pa_operation *o; 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); o = pa_context_set_sink_volume_by_index(i->context, i->sink_index, pv, context_success_cb, i);
else else
o = pa_context_set_source_volume_by_index(i->context, i->source_index, pv, context_success_cb, i); o = pa_context_set_source_volume_by_index(i->context, i->source_index, pv, context_success_cb, i);