mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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:
parent
0e53f939c0
commit
8e738ede9b
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue