summaryrefslogtreecommitdiff
path: root/src/modules/module-solaris.c
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2011-10-20 14:46:23 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-10-20 15:05:04 +0530
commit5bb9d52b7ec32b95ecfd2794f1050dac4177f0f1 (patch)
treee8276c1b624290cbeb61e3b068424651000fb6ff /src/modules/module-solaris.c
parent4ce0eb18c29f0834356d6dbd322cb32b4eda9b96 (diff)
solaris: Use real_volume for set/get volume
This got missed when other bits were updated. Patch submitted by Brian Cameron <brian.cameron@oracle.com>.
Diffstat (limited to 'src/modules/module-solaris.c')
-rw-r--r--src/modules/module-solaris.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c
index 61ea68c27..5081ceb7b 100644
--- a/src/modules/module-solaris.c
+++ b/src/modules/module-solaris.c
@@ -526,7 +526,7 @@ static void source_set_volume(pa_source *s) {
if (u->fd >= 0) {
AUDIO_INITINFO(&info);
- info.play.gain = pa_cvolume_max(&s->volume) * AUDIO_MAX_GAIN / PA_VOLUME_NORM;
+ info.play.gain = pa_cvolume_max(&s->real_volume) * AUDIO_MAX_GAIN / PA_VOLUME_NORM;
assert(info.play.gain <= AUDIO_MAX_GAIN);
if (ioctl(u->fd, AUDIO_SETINFO, &info) < 0) {
@@ -548,7 +548,7 @@ static void source_get_volume(pa_source *s) {
if (ioctl(u->fd, AUDIO_GETINFO, &info) < 0)
pa_log("AUDIO_SETINFO: %s", pa_cstrerror(errno));
else
- pa_cvolume_set(&s->volume, s->sample_spec.channels, info.play.gain * PA_VOLUME_NORM / AUDIO_MAX_GAIN);
+ pa_cvolume_set(&s->real_volume, s->sample_spec.channels, info.play.gain * PA_VOLUME_NORM / AUDIO_MAX_GAIN);
}
}