summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Brabec <sbrabec@suse.cz>2003-01-08 14:55:20 +0000
committerStanislav Brabec <utx@src.gnome.org>2003-01-08 14:55:20 +0000
commitfa699c1c4f9eb26da1a0880afdef30c1468dee86 (patch)
treef410dd31fcd52c8ca2c62333273aa0703a675a6d
parent4b3afe391362f5e9db5359dc48270efb63ce70cf (diff)
Make SOUND_MIXER_SPEAKER change powerpc specific. Fixes bug #96639.multihead
2003-01-08 Stanislav Brabec <sbrabec@suse.cz> * mixer.c: Make SOUND_MIXER_SPEAKER change powerpc specific. Fixes bug #96639.
-rw-r--r--mixer/ChangeLog5
-rw-r--r--mixer/mixer.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/mixer/ChangeLog b/mixer/ChangeLog
index 745bf530f..58d631ffa 100644
--- a/mixer/ChangeLog
+++ b/mixer/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-08 Stanislav Brabec <sbrabec@suse.cz>
+
+ * mixer.c: Make SOUND_MIXER_SPEAKER change powerpc specific. Fixes
+ bug #96639.
+
2002-09-12 Kevin Vandersloot <kfv101@psu.edu>
* mixer.c, Makefile.am, .sever.in.in: add new set of larger
diff --git a/mixer/mixer.c b/mixer/mixer.c
index c8b2e695a..1940d0b6e 100644
--- a/mixer/mixer.c
+++ b/mixer/mixer.c
@@ -254,8 +254,11 @@ setMixer(gint vol)
tvol = (vol << 8) + vol;
/*g_message("Saving mixer value of %d",tvol);*/
ioctl(mixerfd, MIXER_WRITE(mixerchannel), &tvol);
+/* SOUND_MIXER_SPEAKER is output level on Mac, but input level on PC. #96639 */
+#ifdef __powerpc__
ioctl(mixerfd, MIXER_WRITE(SOUND_MIXER_SPEAKER), &tvol);
#endif
+#endif
#ifdef SUN_API
audio_info_t ainfo;
AUDIO_INITINFO (&ainfo);