summaryrefslogtreecommitdiffstats
path: root/sys/sunaudio
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2006-06-28 08:36:30 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-06-28 08:36:30 +0000
commit2657a246ea9e3fd8092c7800c260239c92b55f41 (patch)
treea0b5f26a598f95c2fc7534236f168e12299b1dee /sys/sunaudio
parentc00aec3f154737829a1fd002abb27223c871bd9c (diff)
sys/sunaudio/gstsunaudiosink.c: Do not modify the ports value. If the user has turned off the built-in speakers, then...
Original commit message from CVS: Patch by: Brian Cameron <brian dot cameron at sun dot com> * sys/sunaudio/gstsunaudiosink.c: (gst_sunaudiosink_prepare): Do not modify the ports value. If the user has turned off the built-in speakers, then we should not reset it in the prepare function, since this causes the built-in speakers to turn back on anytime the user changes a track in totem, rhythmbox, etc. (#346066).
Diffstat (limited to 'sys/sunaudio')
-rw-r--r--sys/sunaudio/gstsunaudiosink.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/sunaudio/gstsunaudiosink.c b/sys/sunaudio/gstsunaudiosink.c
index 7dd56d60..5c6e48f7 100644
--- a/sys/sunaudio/gstsunaudiosink.c
+++ b/sys/sunaudio/gstsunaudiosink.c
@@ -330,9 +330,6 @@ gst_sunaudiosink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
return FALSE;
ports = ainfo.play.port;
- if (!(ports & AUDIO_SPEAKER) && (ainfo.play.avail_ports & AUDIO_SPEAKER)) {
- ports = ports | AUDIO_SPEAKER;
- }
AUDIO_INITINFO (&ainfo);